qemu-img convert -c compression can't decompress

Bug #1655764 reported by Jignasha
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Invalid
Undecided
Unassigned

Bug Description

Used -c compression option of qemu-img convert to compress qcow2,
then libvirt mount for compressed image don't work as well as decompression also
not working, tried zlib-flate to decompress

Revision history for this message
Jignasha (jignasha-vithalani) wrote :

Used openssl zlib -d < compressedfile but that also not working

Revision history for this message
Jignasha (jignasha-vithalani) wrote :

When tried zlib-flate -uncompress < cirros-0.3.4-x86_64-disk.img,
getting below error

data: incorrect header check

description: updated
information type: Public → Public Security
information type: Public Security → Private Security
information type: Private Security → Private
Revision history for this message
Thomas Huth (th-huth) wrote :

Which version of QEMU (or rather qemu-img) are you using?

information type: Private → Public
Revision history for this message
Jignasha (jignasha-vithalani) wrote :

qemu-img version 2.1.2, Copyright (c) 2004-2008 Fabrice Bellard

Revision history for this message
Thomas Huth (th-huth) wrote :

When reporting bugs, please always use the latest version of QEMU, old versions like 2.1 are not supported anymore. I just also noticed that Stefan Hajnoczi replied to the bug mail on the qemu-devel mailing list (see https://<email address hidden>/msg422186.html) - seems like the bridge did not mirror this to the bug tracker:

"QEMU image compression uses the compression feature available in some
 disk image formats (like qcow2). This is not the same as compressing a
 file with gzip, bzip2, or similar tools.
 Therefore this error is expected and not a bug."

Changed in qemu:
status: New → Invalid
Revision history for this message
Jignasha (jignasha-vithalani) wrote :

Yes used qcow2 format only when compressing, I don't think due to older version problem

Revision history for this message
Jignasha (jignasha-vithalani) wrote :

When converting qcow2 with -c option, then after not able to boot VM with compressed qcow2 image

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.