Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

However, if i clone with below command, the size of cloned volume is match with original.

sudo virsh vol-clone --prealloc-metadata --pool default centos.qcow2 test3.qcow2

However, if i clone with below command, the size of cloned volume is match with original.

sudo virsh vol-clone --prealloc-metadata --pool default centos.qcow2 test3.qcow2

So currently, I use this approach to make a full copy of VM:

sudo virsh suspend centos
sudo virsh vol-clone --prealloc-metadata --pool default centos.qcow2 test.qcow2
sudo virt-clone --preserve-data -o centos -n test --file /mnt/zalman-data/Documents/Development/libvirt/test.qcow2 
sudo virt-sysprep -d test
sudo virsh start test

After boot change ip and hostname. Ready to go