Skip to content

Commit 75f3095

Browse files
committed
Add Alma linux BIOS image
1 parent 0475f66 commit 75f3095

File tree

2 files changed

+20
-2
lines changed

2 files changed

+20
-2
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
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"

almalinux/cloud/x86_64/almalinux.pkr.hcl

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff 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+
1022
variable "efi_boot" {
1123
type = bool
1224
default = false
1325
}
1426

1527
variable "efi_firmware_code" {
1628
type = string
17-
default = null
29+
default = "/usr/share/OVMF/OVMF_CODE_4M.fd"
1830
}
1931

2032
variable "efi_firmware_vars" {
2133
type = string
22-
default = null
34+
default = "/usr/share/OVMF/OVMF_VARS_4M.fd"
2335
}
2436

2537
variable "headless" {
@@ -81,6 +93,8 @@ variable "iso_url" {
8193

8294
source "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"

0 commit comments

Comments
 (0)