|
Before shirinking it would be best if you defragmented the image first
and then wiped the
free space to make sure that files that you have deleted are completely
removed. So you may use
http://www.microsoft.com/technet/sysinternals/FileAndDisk/SDelete.mspx.
After that use following commands
qemu-img convert -c -f qcow -O qcow
examples:
qemu-img -f qcow Virtual-srv01.qcow -c -O qcow Shrinked-Virtual-srv01.qcow
qemu-img convert BY-SRV02-HDD03.img -O qcow2 BY-SRV02-HDD03.qcow
|