-
Notifications
You must be signed in to change notification settings - Fork 0
/
fedora-40.pkr.hcl
44 lines (41 loc) · 1.35 KB
/
fedora-40.pkr.hcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
source "qemu" "fedora40" {
iso_url = "https://download.fedoraproject.org/pub/fedora/linux/releases/40/Everything/x86_64/iso/Fedora-Everything-netinst-x86_64-40-1.14.iso"
iso_checksum = "file:https://download.fedoraproject.org/pub/fedora/linux/releases/40/Everything/x86_64/iso/Fedora-Everything-40-1.14-x86_64-CHECKSUM"
vga = "virtio"
cpus = 2
memory = 4096
headless = var.headless
shutdown_command = "sudo shutdown -P now"
qmp_enable = true
disk_discard = "unmap"
http_content = {
"/fedora.ks" = templatefile("${path.root}/fedora.ks", { path = path, hostname = "fedora40" })
}
ssh_timeout = "1h"
ssh_username = "vagrant"
ssh_password = "vagrant"
boot_command = [
"c<wait10>",
"set gfxpayload=keep<enter><wait>",
"linux /images/pxeboot/vmlinuz console=ttyS0 inst.notmux inst.cmdline ",
"inst.stage2=hd:LABEL=Fedora-E-dvd-x86_64-40 ",
"inst.ks=http://{{.HTTPIP}}:{{.HTTPPort}}/fedora.ks<enter><wait>",
"initrd /images/pxeboot/initrd.img<enter><wait10>",
"boot<enter>"
]
qemuargs = [["-serial", "stdio"]]
}
build {
sources = [
"source.qemu.fedora40"
]
post-processors {
post-processor "vagrant" {
vagrantfile_template = "Vagrantfile"
}
post-processor "vagrant-registry" {
box_tag = "gnome-shell-box/fedora40"
version = local.version
}
}
}