[virt-tools-list] Enabling qcow2 compression with virt-install

Richard W.M. Jones rjones at redhat.com
Mon Aug 27 20:03:36 UTC 2012


On Mon, Aug 27, 2012 at 09:54:53PM +0300, Evaggelos Balaskas wrote:
> following your instructions ...
> 
> i bumped into
> 
> # virt-sparsify -v --compress winxp.img winxp.img.spars
> 
> qemu-img convert -f qcow2 -O 'raw' -c '/VM/sparsify10f031.qcow2'
> 'winxp.img.spars'
> 
> qemu-img: Compression not supported for this file format
> virt-sparsify: error: external command failed: qemu-img convert -f
> qcow2 -O 'raw' -c '/VM/sparsify10f031.qcow2'
> 'winxp.img.spars'
> 
> 
> # qemu-img info winxp.img
> image: winxp.img
> file format: raw
> virtual size: 5.0G (5368709120 bytes)
> disk size: 5.0G
> 
> any idea ?

Raw doesn't support compression, so it's a bug in virt-sparsify:

https://bugzilla.redhat.com/show_bug.cgi?id=852194

The right thing to do isn't completely clear.  We could either improve
the error message, or perhaps feed the output through 'xz' (although
that would result in a disk image which isn't directly bootable).

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into Xen guests.
http://et.redhat.com/~rjones/virt-p2v




More information about the virt-tools-list mailing list