File tree Expand file tree Collapse file tree 2 files changed +12
-3
lines changed
Expand file tree Collapse file tree 2 files changed +12
-3
lines changed Original file line number Diff line number Diff line change 1- iso_checksum = " file:https://dl.rockylinux.org/pub/rocky/9/images/x86_64/CHECKSUM"
2- iso_url = " https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud-Base.latest.x86_64.qcow2"
3- vm_name = " rockylinux-9-x86_64"
1+ efi_boot = true
2+ efi_firmware_code = " /usr/share/OVMF/OVMF_CODE_4M.fd"
3+ efi_firmware_vars = " /usr/share/OVMF/OVMF_VARS_4M.fd"
4+ iso_checksum = " file:https://dl.rockylinux.org/pub/rocky/9/images/x86_64/CHECKSUM"
5+ iso_url = " https://dl.rockylinux.org/pub/rocky/9/images/x86_64/Rocky-9-GenericCloud-Base.latest.x86_64.qcow2"
6+ vm_name = " rockylinux-9-x86_64"
Original file line number Diff line number Diff line change @@ -22,6 +22,11 @@ variable "efi_firmware_vars" {
2222 default = null
2323}
2424
25+ variable "headless" {
26+ type = bool
27+ default = true
28+ }
29+
2530variable "ssh_username" {
2631 type = string
2732 default = " packer"
@@ -79,6 +84,7 @@ source "qemu" "rockylinux" {
7984 disk_compression = true
8085 disk_image = true
8186 disk_size = " 32G"
87+ headless = var. headless
8288 iso_checksum = var. iso_checksum
8389 iso_url = var. iso_url
8490 machine_type = " q35"
You can’t perform that action at this time.
0 commit comments