packer/almalinux-9.pkr.hcl

24 lines
860 B
HCL
Raw Normal View History

2024-01-30 14:29:53 -05:00
source "qemu" "almalinux-9" {
2024-01-30 21:42:32 -05:00
iso_url = "https://repo.almalinux.org/almalinux/9.3/isos/x86_64/AlmaLinux-9.3-x86_64-boot.iso"
iso_checksum = "sha256:af5377a1d16bbe599ea91a8761ad645f2f54687075802bdc0c0703ee610182e9"
output_directory = "/srv/kvm/templates/"
2024-01-30 21:42:32 -05:00
shutdown_command = "echo 'packer' | sudo -S poweroff"
disk_size = "5000M"
format = "qcow2"
accelerator = "kvm"
headless = "true"
2024-01-30 21:42:32 -05:00
ssh_username = "xadmin"
ssh_password = "packer"
2024-01-30 21:42:32 -05:00
ssh_timeout = "20m"
vnc_bind_address = "0.0.0.0"
2024-01-30 21:42:32 -05:00
vm_name = "almalinux-9"
net_device = "virtio-net"
disk_interface = "virtio"
boot_wait = "10s"
boot_command = ["<tab> text inst.ks=http://ks-v1.int.metaunix.net/kickstarts/almalinux-9-server.ks<enter><wait>"]
2024-01-30 14:29:53 -05:00
}
build {
sources = ["source.qemu.almalinux-9"]
}