Skip to content

Commit d03ad8c

Browse files
committed
feat: Added configuration for Rocky Linux 9.5 UEFI installation
- Updated Packer configuration to support Rocky Linux 9.5 UEFI installation - Added variables file for Rocky Linux 9.5 UEFI setup
1 parent ce129fa commit d03ad8c

5 files changed

+61
-10
lines changed

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ Consider buying me a coffee if you like my work. All donations are appreciated.
148148
| ./proxmox_generic.sh -V rockylinux93 -F rhel -U false | Rocky Linux 9.3 | BIOS |
149149
| ./proxmox_generic.sh -V rockylinux94 -F rhel -U true | Rocky Linux 9.4 | UEFI |
150150
| ./proxmox_generic.sh -V rockylinux94 -F rhel -U false | Rocky Linux 9.4 | BIOS |
151+
| ./proxmox_generic.sh -V rockylinux95 -F rhel -U true | Rocky Linux 9.5 | UEFI |
152+
| ./proxmox_generic.sh -V rockylinux95 -F rhel -U false | Rocky Linux 9.5 | BIOS |
151153
| ./proxmox_generic.sh -V ubuntu2204 -F ubuntu -U true | Ubuntu 22.04 | UEFI |
152154
| ./proxmox_generic.sh -V ubuntu2204 -F ubuntu -U false | Ubuntu 22.04 | BIOS |
153155
| ./proxmox_generic.sh -V ubuntu2304 -F ubuntu -U true | Ubuntu 23.04 | UEFI |

config.pkr.hcl

-1
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,3 @@ packer {
2626
}
2727
}
2828
}
29-

proxmox/proxmox_rhel.pkr.hcl

+12-9
Original file line numberDiff line numberDiff line change
@@ -207,12 +207,12 @@ source "proxmox-iso" "linux" {
207207
ballooning_minimum = "${var.ballooning_minimum}"
208208
boot_command = ["${var.boot_command}"]
209209
boot_wait = "${var.boot_wait}"
210-
boot_iso {
211-
type = "scsi"
212-
iso_file = "${var.iso_file}"
213-
unmount = true
214-
iso_checksum = "none"
215-
}
210+
boot_iso {
211+
type = "scsi"
212+
iso_file = "${var.iso_file}"
213+
unmount = true
214+
iso_checksum = "none"
215+
}
216216
bios = "${var.bios}"
217217
cores = "${var.cores}"
218218
cpu_type = "${var.cpu_type}"
@@ -257,6 +257,12 @@ source "proxmox-iso" "linux" {
257257
source "proxmox-iso" "linux-efi" {
258258
ballooning_minimum = "${var.ballooning_minimum}"
259259
boot_command = ["${var.boot_command}"]
260+
boot_iso {
261+
type = "scsi"
262+
iso_file = "${var.iso_file}"
263+
unmount = true
264+
iso_checksum = "none"
265+
}
260266
boot_wait = "${var.boot_wait}"
261267
bios = "${var.bios}"
262268
cores = "${var.cores}"
@@ -278,7 +284,6 @@ source "proxmox-iso" "linux-efi" {
278284
}
279285
http_directory = "${path.cwd}/extra/files"
280286
insecure_skip_tls_verify = true
281-
iso_file = "${var.iso_file}"
282287
machine = "${var.machine}"
283288
memory = "${var.memory}"
284289
network_adapters {
@@ -302,7 +307,6 @@ source "proxmox-iso" "linux-efi" {
302307
task_timeout = "${var.task_timeout}"
303308
template_name = "${var.template}.${local.packer_timestamp}"
304309
token = "${var.proxmox_token}"
305-
unmount_iso = true
306310
username = "${var.proxmox_username}"
307311
}
308312

@@ -332,5 +336,4 @@ build {
332336
destination = "/etc/cloud/cloud.cfg"
333337
source = "${path.cwd}/${var.cloud-init_path}"
334338
}
335-
336339
}
+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
2+
ansible_extra_args = ["-e", "@extra/playbooks/provision_rocky9_variables.yml", "-e", "@variables/rockylinux9.yml","--scp-extra-args", "'-O'"]
3+
ansible_verbosity = ["-v"]
4+
ballooning_minimum = "0"
5+
boot_command = "<tab> text inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/9/proxmox/ks.cfg<enter><wait10>esc<wait30><esc>"
6+
boot_wait = "15s"
7+
cloud-init_path = "extra/files/cloud-init/rhel/generic/cloud.cfg"
8+
cores = "4"
9+
cpu_type = "host"
10+
disable_kvm = false
11+
disks = {
12+
cache_mode = "none"
13+
disk_size = "50G"
14+
format = "raw"
15+
type = "virtio"
16+
storage_pool = "zfs"
17+
io_thread = true
18+
discard = true
19+
}
20+
insecure_skip_tls_verify = true
21+
iso_file = "images:iso/Rocky-9.5-x86_64-dvd.iso"
22+
memory = "4096"
23+
network_adapters = {
24+
bridge = "vmbr0"
25+
model = "virtio"
26+
firewall = false
27+
mac_address = ""
28+
vlan_tag = ""
29+
}
30+
proxmox_node = "proxmox6"
31+
qemu_agent = true
32+
scsi_controller = "virtio-scsi-single"
33+
sockets = "1"
34+
ssh_password = "password"
35+
ssh_username = "root"
36+
task_timeout = "20m"
37+
template = "rockylinux9.5"
38+
unmount_iso = true
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
boot_command = "<wait10> c setparams 'kickstart' <enter> linuxefi /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/rockylinux/9/proxmox/ks.cfg<enter> initrdefi /images/pxeboot/initrd.img<enter> boot<enter>"
2+
efi_storage_pool = "zfs"
3+
efi_type = "4m"
4+
pre_enrolled_keys = "true"
5+
bios = "ovmf"
6+
machine = "q35"
7+
use_efi = "true"
8+
template = "rockylinux9.5.uefi"
9+
tags = "uefi;template"

0 commit comments

Comments
 (0)