Clone a single disk into VM

jtracy

Member
Aug 30, 2018
43
4
13
51
I have an application that we have lots of VMs where we test different version of it but the data it uses is the same across all of them. I can't setup a network filesystem for this due to security reasons. I would like to be able to do a linked clone of just the disk that holds the common data. Is there a way to do this? Thanks.
 
ZFS and QCOW2 can create linked clones, but there is no way in PVE to do this via the GUI/CLI/API, you need to do this manually.

In both setups, just create a disk via the GUI that has the same size as the one you want to manually clone. Then go to the cli and delete the underlying file or zfs dataset and create a linked clone (QCOW2) or clone the snapshot (ZFS).
 
  • Like
Reactions: jtracy