File tree Expand file tree Collapse file tree 2 files changed +20
-2
lines changed
Expand file tree Collapse file tree 2 files changed +20
-2
lines changed Original file line number Diff line number Diff line change 1+ efi_boot = false
2+ iso_checksum = " file:https://repo.almalinux.org/almalinux/9/cloud/x86_64/images/CHECKSUM"
3+ iso_url = " https://repo.almalinux.org/almalinux/9/cloud/x86_64/images/AlmaLinux-9-GenericCloud-latest.x86_64.qcow2"
4+ vm_name = " almalinux-9-bios-x86_64"
Original file line number Diff line number Diff line change @@ -7,19 +7,31 @@ packer {
77 }
88}
99
10+ variable "cpus" {
11+ type = number
12+ default = 1
13+ description = " The number of virtual cpus to use when building the VM."
14+ }
15+
16+ variable "memory" {
17+ type = number
18+ default = 2048
19+ description = " The amount of memory to use when building the VM in megabytes. This defaults to 512 megabytes."
20+ }
21+
1022variable "efi_boot" {
1123 type = bool
1224 default = false
1325}
1426
1527variable "efi_firmware_code" {
1628 type = string
17- default = null
29+ default = " /usr/share/OVMF/OVMF_CODE_4M.fd "
1830}
1931
2032variable "efi_firmware_vars" {
2133 type = string
22- default = null
34+ default = " /usr/share/OVMF/OVMF_VARS_4M.fd "
2335}
2436
2537variable "headless" {
@@ -81,6 +93,8 @@ variable "iso_url" {
8193
8294source "qemu" "almalinux" {
8395 cpu_model = " host"
96+ cpus = var. cpus
97+ memory = var. memory
8498 disk_compression = true
8599 disk_image = true
86100 disk_size = " 32G"
You can’t perform that action at this time.
0 commit comments