test: improve VM image creation.

This commit is contained in:
Alexandre Pujol 2023-07-08 12:34:18 +01:00
parent 62cb1d9b96
commit 537e34739d
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
7 changed files with 19 additions and 6 deletions

View file

@ -28,7 +28,7 @@ source "qemu" "opensuse-kde" {
output_directory = "${var.iso_dir}/packer/"
vm_name = "${var.prefix}${source.name}.qcow2"
boot_wait = "10s"
firmware = "/usr/share/edk2-ovmf/x64/OVMF_CODE.fd"
firmware = "${var.firmware}"
shutdown_command = "echo ${var.password} | sudo shutdown -hP now"
cd_label = "cidata"
cd_content = {