Re: Enabling qcow2 compression with virt-install

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


[Index of Archives]     [Linux Virtualization]     [KVM Development]     [CentOS Virtualization]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]     [Video 4 Linux]

  Powered by Linux