free up not used space on a qcow2-image-file on kvm/qemu
- by bmaeser
we are using kvm/qemu with qcow2-images for our virtual machines.
qcow2 has this nice feature where the image file only allocates the actually needed space by the virtual-machine. but how do i shrink back the image file, if the virtual machine's allocated space gets smaller?
example:
1.) i create a new image with qcow2 format, size 100GB
2.) i…