diff --git a/almalinux-9.pkr.hcl b/almalinux-9.pkr.hcl index e6b6cad..5bd5bb5 100644 --- a/almalinux-9.pkr.hcl +++ b/almalinux-9.pkr.hcl @@ -10,15 +10,16 @@ packer { source "qemu" "almalinux-9" { 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/" + output_directory = "/srv/kvm/templates/" shutdown_command = "echo 'packer' | sudo -S poweroff" disk_size = "5000M" format = "qcow2" accelerator = "kvm" - ssh_host = "kamino.int.metaunix.net" + headless = "true" ssh_username = "xadmin" - ssh_password = "s0m3password" + ssh_password = "packer" ssh_timeout = "20m" + vnc_bind_address = "0.0.0.0" vm_name = "almalinux-9" net_device = "virtio-net" disk_interface = "virtio" diff --git a/freebsd-14-0.pkr.hcl b/freebsd-14-0.pkr.hcl new file mode 100644 index 0000000..dcd8fce --- /dev/null +++ b/freebsd-14-0.pkr.hcl @@ -0,0 +1,32 @@ +packer { + required_plugins { + qemu = { + version = ">= 1.0.10" + source = "github.com/hashicorp/qemu" + } + } +} + +source "qemu" "freebsd-14" { + iso_checksum = "8a974c3d74f49207d5e150cce0ddd6330d32b52e2201726b5a248f8bff42a73c904ab76bf0ff29ef73ab2409ac912b22af6183484c4988997801630d49a10e68" + iso_url = "https://download.freebsd.org/releases/amd64/amd64/ISO-IMAGES/14.0/FreeBSD-14.0-RELEASE-amd64-bootonly.iso" + output_directory = "/srv/kvm/templates/" + shutdown_command = "echo 'packer' | sudo -S 'poweroff'" + disk_size = "10000M" + format = "qcow2" + accelerator = "kvm" + headless = "true" + ssh_username = "xadmin" + ssh_password = "packer" + ssh_timeout = "20m" + vnc_bind_address = "0.0.0.0" + vm_name = "freebsd-14" + net_device = "virtio-net" + disk_interface = "virtio" + boot_wait = "5s" + boot_command = ["", "", "", "", "freebsd", "", "", "", "", "", "", "", "", "", "", " ", "", "", "packer", "packer", "", "95", "", "", "", "", " ", " ", "", "xadmin", "Remote admin user", "", "", "wheel", "", "", "", "", "", "", "", "packer", "packer", "", "", "", "", "", "pkg install -y sudo", "echo '%wheel ALL=(ALL:ALL) ALL' > /usr/local/etc/sudoers.d/wheel", "exit", ""] +} + +build { + sources = ["source.qemu.freebsd-14"] +}