Skip to contentSkip to conversation

qemu-img convert -c compression can't decompress

Qemu-devel Jignasha 3 participants 9 messages Jan 11, 2017 – Jan 17, 2017

lore
Share & tools
lore

Jignasha

author
#0 lore raw

Public bug reported:

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 glib-deflate to decompress

** Affects: qemu
Importance: Undecided
Status: New

Signature · 17 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1655764

Title:
  qemu-img convert -c compression can't decompress

Status in QEMU:
  New

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 glib-deflate to decompress

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1655764/+subscriptions
author
#1 lore raw

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

Signature · 17 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1655764

Title:
  qemu-img convert -c compression can't decompress

Status in QEMU:
  New

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 glib-deflate to decompress

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1655764/+subscriptions
author
#2 lore raw
In reply to Jignasha

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

data: incorrect header check

** Description changed:

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 glib-deflate to decompress
+ not working, tried zlib-flate to decompress

** Information type changed from Public to Public Security

** Information type changed from Public Security to Private Security

** Information type changed from Private Security to Private

Signature · 17 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1655764

Title:
  qemu-img convert -c compression can't decompress

Status in QEMU:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1655764/+subscriptions
#3 lore raw
Quoted 4 lines · Jignasha

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

data: incorrect header check

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.

#4 lore raw
In reply to Jignasha

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

** Information type changed from Private to Public

Signature · 17 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1655764

Title:
  qemu-img convert -c compression can't decompress

Status in QEMU:
  New

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1655764/+subscriptions
author
#5 lore raw
In reply to Jignasha

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

Signature · 17 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1655764

Title:
  qemu-img convert -c compression can't decompress

Status in QEMU:
  Invalid

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1655764/+subscriptions
#6 lore raw
In reply to Jignasha

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://www.mail-archive.com/[email protected]/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

Signature · 17 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1655764

Title:
  qemu-img convert -c compression can't decompress

Status in QEMU:
  Invalid

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1655764/+subscriptions
author
#7 lore raw
In reply to Jignasha

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

Signature · 17 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1655764

Title:
  qemu-img convert -c compression can't decompress

Status in QEMU:
  Invalid

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1655764/+subscriptions
author
#8 lore raw
In reply to Jignasha

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

Signature · 17 lines
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/1655764

Title:
  qemu-img convert -c compression can't decompress

Status in QEMU:
  Invalid

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

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1655764/+subscriptions