« Back to projectatomic.io
Ask Your Question

Why are the qcow2 images compressed with xv instead of bzip2?

asked 2014-04-14 13:58:31 +0000

anonymous user


I had to look up unxv to decompress my Atomic host image, because I never see anything compressed with xv in the wild. Is there a technical reason they're distributed with xv compression instead of gzip, bzip2, or zip?

edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2014-07-23 17:37:42 +0000

paolo antinori gravatar image

standard zip support would useful for Vagrant workflows too:


edit flag offensive delete link more

answered 2014-04-15 18:30:01 +0000

walters gravatar image

xz (LZMA) is a more efficient compression format than BZ2, and we assume that anyone who can use qcow2 disks has a Linux-based OS and can easily process xz files.

edit flag offensive delete link more


This is pretty standard practice, yeah.

lzap ( 2014-04-15 20:39:27 +0000 )edit

Regardless of the quality of the compression, zip and tar.gz are really, really standard. For example, in the openstack instance I have access to, I can add a remote, compressed, qcow2 file, *if* it is in tar.gz or zip, but not xz. So, would you mind making a gzip'd version available?

langdon ( 2014-06-30 20:18:01 +0000 )edit

even Windows can make use of xz via 7zip. LZMA will soon replace bzip2 and tar.gz anyway..

merb ( 2014-12-12 11:18:59 +0000 )edit

answered 2014-04-17 18:03:41 +0000

DV gravatar image

my recollection is that libvirt has support for xz compression by default, I wonder if the decompression step is actually needed when importing from virt-manager

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

[hide preview]

Question Tools

1 follower


Asked: 2014-04-14 13:58:31 +0000

Seen: 7,119 times

Last updated: Jul 23 '14