I have a qcow2 image. The image size is 200 GB, but the actual use is only 30 GB. I'm using qemu-img convert -O qcow2 source.qcow2 shrunk.qcow2 to removes sparse space and the images shrinks correctly to 30 GB. This image has internal snapshots taken using virt-manager. After converting the image, the snapshots is lost. Is there any way to removes unused space from the image but still keep internal snapshots?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.