Bug 1279273

Summary: About compression option for qcow2
Product: [Community] Virtualization Tools Reporter: kwsk <k-park>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: k-park, ptoscano, rbalakri
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-11-10 13:41:15 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description kwsk 2015-11-09 01:00:03 UTC
Description of problem:

It is not a bug but a request

It would be possible to compress in creating qcow2 image
(qemu-img convert -c option)

But, there was not option like that in virt-v2v
Could you add compression option

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Pino Toscano 2015-11-09 17:00:13 UTC
You are using -o local for virt-v2v, I guess?

Comment 2 kwsk 2015-11-10 01:13:37 UTC
Yes I'm using -o local -of qcow2

Comment 3 kwsk 2015-11-10 01:46:34 UTC
And editing v2v.ml directly now

Comment 4 Richard W.M. Jones 2015-11-10 08:41:59 UTC
It seems reasonable to have a --qcow2-compression option
or something like that.  It would just add the -c option
to the qemu-img convert command.

It seems as if it would work with all output modes too,
although it is possible that -o glance and -o rhev do a
reconversion step (not in v2v).

Comment 5 Richard W.M. Jones 2015-11-10 09:00:59 UTC
Patch posted:
https://www.redhat.com/archives/libguestfs/2015-November/msg00103.html

Comment 6 Richard W.M. Jones 2015-11-10 13:41:15 UTC
Upstream in commit 6d46eb33bffbd48c75539cca59c554d184cb5c05
libguestfs >= 1.31.26

Comment 7 kwsk 2015-11-11 02:49:05 UTC
Thank you for commit