From 3b56b002be1b669ecb78f61d881317ef21280d47 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julian=20T=C3=B6lle?= Date: Thu, 10 Feb 2022 15:45:52 +0100 Subject: [PATCH] Add option to compress qemu images --- images/capi/packer/qemu/packer.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/images/capi/packer/qemu/packer.json b/images/capi/packer/qemu/packer.json index 1e4fb6c6a8..11e285f664 100644 --- a/images/capi/packer/qemu/packer.json +++ b/images/capi/packer/qemu/packer.json @@ -9,6 +9,8 @@ ], "boot_wait": "{{user `boot_wait`}}", "cpus": "{{user `cpus`}}", + "disk_compression": "{{ user `disk_compression`}}", + "disk_discard": "{{user `disk_discard`}}", "disk_interface": "virtio-scsi", "disk_size": "{{user `disk_size`}}", "firmware": "{{user `firmware`}}", @@ -37,6 +39,8 @@ ], "boot_wait": "{{user `boot_wait`}}", "cpus": "{{user `cpus`}}", + "disk_compression": "{{ user `disk_compression`}}", + "disk_discard": "{{user `disk_discard`}}", "disk_interface": "virtio-scsi", "disk_size": "{{user `disk_size`}}", "firmware": "{{user `firmware`}}", @@ -145,6 +149,8 @@ "cpus": "1", "crictl_url": "https://github.com/kubernetes-sigs/cri-tools/releases/download/v{{user `crictl_version`}}/crictl-v{{user `crictl_version`}}-linux-amd64.tar.gz", "crictl_version": null, + "disk_compression": "false", + "disk_discard": "unmap", "disk_size": "20480", "existing_ansible_ssh_args": "{{env `ANSIBLE_SSH_ARGS`}}", "firmware": "",