Reducing the size of a QEMU virtual disk (thin)
on all mounting points
dd if=/dev/zero of=/nul;sync;sync;sync;rm -f /nul;sync
- Stop VM
- Convert VM disk
qemu-img convert -O qcow2 -c disk1.qcow disk1.new.qcow
on all mounting points
dd if=/dev/zero of=/nul;sync;sync;sync;rm -f /nul;sync
qemu-img convert -O qcow2 -c disk1.qcow disk1.new.qcow