-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathvmware-centos9.pkr.hcl
53 lines (50 loc) · 1.25 KB
/
vmware-centos9.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
45
46
47
48
49
50
51
52
53
packer {
required_plugins {
vmware = {
version = ">= 1.0.5"
source = "github.com/hashicorp/vmware"
}
}
}
source "vmware-iso" "centos-9" {
iso_url = "http://mirror.stream.centos.org/9-stream/BaseOS/aarch64/iso/CentOS-Stream-9-latest-aarch64-boot.iso"
# As Stream is updated daily we skip the checksum by default
# buildbox script can pull the latest checksum for verfication if required
iso_checksum = "none"
ssh_username = "vagrant"
ssh_password = "vagrant"
ssh_timeout = "30m"
shutdown_command = "sudo shutdown -h now"
guest_os_type = "arm-fedora-64"
disk_adapter_type = "nvme"
version = 19
http_directory = "http"
boot_command = [
"c",
"linux /images/pxeboot/vmlinuz inst.ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/ks.cfg",
"<enter>",
"initrd /images/pxeboot/initrd.img",
"<enter>",
"boot",
"<enter><wait>"
]
usb = true
vmx_data = {
"usb_xhci.present" = "true",
"ethernet0.virtualdev" = "e1000e"
}
memory = 2048
cpus = 2
disk_size = 40000
vm_name = "Centos 9 Stream"
output_directory = "output"
}
build {
sources = ["sources.vmware-iso.centos-9"]
provisioner "shell" {
scripts = [
"add-key.sh",
"vmware-cleanup.sh"
]
}
}