Sha256: 8109a2df19313259bb9487f65f987b06efd6f6afe1634b06e5e211a491ea461a

Contents?: true

Size: 1.84 KB

Versions: 6

Compression:

Stored size: 1.84 KB

Contents

# Save Appliance

- tar_out_opts: numericowner:true excludes:etc/fstab

- save_as_tar_gz:
  - check_cmd_local: guestfish
  - check_cmd_local: gzip
  - exec_local: echo "Exporting appliance to $$output.tar.gz..."
  - exec_local: guestfish --ro -i tar-out -a $$input / - $$tar_out_opts | gzip --best > $$output.tar.gz

- save_as_tar_xz:
  - check_cmd_local: guestfish
  - check_cmd_local: xz
  - exec_local: echo "Exporting appliance to $$output.tar.xz..."
  - exec_local: guestfish --ro -i tar-out -a $$input / - $$tar_out_opts | xz -9 -c - > $$output.tar.xz

- save_as_tar_bz2:
  - check_cmd_local: guestfish
  - check_cmd_local: bzip2
  - exec_local: echo "Exporting appliance to $$output.tar.bz2..."
  - exec_local: guestfish --ro -i tar-out -a $$input / - $$tar_out_opts | bzip2 --best > $$output.tar.bz2

- save_as_raw:
  - check_cmd_local: qemu-img
  - exec_local: echo "Exporting appliance to $$output.raw..."
  - exec_local: qemu-img convert -O raw $$input $$output.raw

- save_as_qcow2:
  - check_cmd_local: qemu-img
  - exec_local: echo "Exporting appliance to $$output.qcow2..."
  - exec_local: qemu-img convert -c -O qcow2 $$input $$output.qcow2

- save_as_qed:
  - check_cmd_local: qemu-img
  - exec_local: echo "Exporting appliance to $$output.qed..."
  - exec_local: qemu-img convert -O qed $$input $$output.qed

- save_as_vmdk:
  - check_cmd_local: qemu-img
  - exec_local: echo "Exporting appliance to $$output.vmdk..."
  - exec_local: qemu-img convert -O vmdk $$input $$output.vmdk

- save_as_vdi:
  - check_cmd_local: qemu-img
  - exec_local: echo "Exporting appliance to $$output.vdi..."
  - exec_local: qemu-img convert -O vdi $$input $$output.vdi
  - rescue:
    - exec_local: |
        echo "Compact the vdi disk"
        VBoxManage modifyhd $$output.vdi --compact 2>&1
    - exec_local: |
        echo "Cannot compact the vdi disk : VBoxManage is missing."

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kameleon-builder-2.2.5 templates/steps/export/qemu_save_appliance.yaml
kameleon-builder-2.2.4 templates/steps/export/qemu_save_appliance.yaml
kameleon-builder-2.2.3 templates/steps/export/qemu_save_appliance.yaml
kameleon-builder-2.2.2 templates/steps/export/qemu_save_appliance.yaml
kameleon-builder-2.2.1 templates/steps/export/qemu_save_appliance.yaml
kameleon-builder-2.2.0 templates/steps/export/qemu_save_appliance.yaml