Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider compression of vmdk images in bundler #650

Closed
schaefi opened this issue Mar 1, 2018 · 2 comments
Closed

Consider compression of vmdk images in bundler #650

schaefi opened this issue Mar 1, 2018 · 2 comments
Assignees

Comments

@schaefi
Copy link
Collaborator

schaefi commented Mar 1, 2018

Problem description

If an image for VirtualBox is build two files are created: a .vmx with the machine description, and a .vmdk, the virtual machine disk image. The vmdk is unpacked, resulting in a 3.6GB download.
packing it reduced the size to 1.2GB.

It would be good if the result bundler take both (vmx and vmdk) and group them together in
one compressed archive

@cybernard
Copy link

If you install the ovftool and build an OVA file it is automatically compressed.

@schaefi schaefi added the P2 label Oct 15, 2018
@schaefi
Copy link
Collaborator Author

schaefi commented Oct 18, 2018

yes which we do if the format is set to ova. However we support the following format:

  • gce (raw disk and manifest in compressed archive)
  • ova (compressed)
  • qcow2 (compressed)
  • vagrant (for libvirt provider, raw disk and manifest in compressed tarball, box file)
  • vmdk (uncompressed)
  • vdi (I think uncompressed)
  • vhd (uncompressed)
  • vhdx (compressed)
  • vhd-fixed (uncompressed)

For any of the types which are uncompressed I think the kiwi result bundle call should compress the result. This means the bundle provides the image in a not directly consumable form for the target system but I think a decompression step before is better to handle than the transfer of GB of data

@schaefi schaefi self-assigned this Oct 18, 2018
schaefi added a commit that referenced this issue Nov 6, 2018
By default none of the image formats were stored as compressed
file. The reason behind this was the assumption that some
formats automatically makes use of compression, which is true
but only in their processing and not in their data blocks at
creation time. Storage and handling of the image file itself
becomes cumbersome and therefore we change the default bundle
setup for image formats to be compressed. This means the image
as it gets packed by KIWI needs to be uncompressed before use.
The following image formats are affected by the change in a
call of the result bundler:

    kiwi result bundle ...

    * qcow2 (.qcow2.xz)
    * vdi   (.vdi.xz)
    * vhd   (.vhd.xz)
    * vhdx  (.vhdx.xz)
    * vmdk  (.vmdk.xz)

All other image formats already defined a custom bundling
setup including compression and are not affected by this change.
This Fixes #650
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants