The format qcow2 support copy-on-write.detail about qcow2 is here.
Does libvirt suport clone qcow2 VM Image with copy-on-write.
I find none options about:
virt-clone
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
virt-clone will clone your disk image to the same file format as the original.
If your original disk is an LVM partition then you have to clone to a disk raw format image cause the lvm partition is a raw device
eg:
You can convert the cloned disk image to qcow2:
If your VM has a qcow2 file format disk image then virt-clone will clone your disk image to a qcow2 file format
to resume:
virt-clone will keep the same file format to the cloned disk as the original.
An good solution is to use virt-sparsify
http://libguestfs.org/virt-sparsify.1.html
to reduce the exported disk image size