Re: Can i shrink the image file size?

Ross McKay
2009-03-22T01:14:41Z

John Wong wrote:

>I create the 30G qcow2 image file, installed winxp, winxp show me the
>harddisk used 5G, but the image file size is 12G now.
>can i shrink the image file size? how?
>my kvm version is: "kvm-84", qemu version is: "0.9.1".
>please help, thank you.

In addition to what the others said, you might be able to reclaim some
space by running qemu-img convert. If you tell it to compress, it will
certainly reduce the image file size, perhaps with a little loss in
performance.

qemu-img convert -c -O qcow2 source.img target.img
--
Ross McKay, Toronto, NSW Australia
"There is more to life than simply increasing its speed." - Gandhi