Compare commits

..

No commits in common. "ef329da040a7fef4bf24617fa4147c977e36c36f" and "05d6ec78c399504ca9d6ebd9a5ae987c2ccd9254" have entirely different histories.

2 changed files with 12 additions and 7 deletions

View File

@ -11,9 +11,6 @@ variable "proxmox_apitoken" {
source "proxmox-iso" "freebsd-14" { source "proxmox-iso" "freebsd-14" {
template_name = "freebsd-14" template_name = "freebsd-14"
template_description = "FreeBSD 14.0, generated on ${timestamp()}" template_description = "FreeBSD 14.0, generated on ${timestamp()}"
boot_wait = "10s"
boot_key_interval = "250ms"
boot_command = ["<enter>", "<wait15s>", "<enter><wait1s>", "<enter><wait1s>", "freebsd", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait5s>", "<right><enter><wait1s>", "<enter><wait1s>", "<enter><wait4s>", "<enter><wait1s>", "<enter><wait1s>", " <enter><wait1s>", "<left><enter><wait1s>", "<enter><wait75s>", "packer<enter><wait1s>", "packer<enter><wait1s>", "<down><enter><wait1s>", "95<up><enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<enter><wait1s>", "<down><down><down> <enter><wait1s>", "<down><down><down><down><down><down><down><down> <enter><wait1s>", "<enter><wait1s>", "xadmin<enter>", "Remote admin user<enter>", "<enter>", "<enter>", "wheel<enter>", "<enter>", "<enter>", "<enter>", "<enter>", "<enter>", "<enter>", "<enter>", "packer<enter>", "packer<enter>", "<enter>", "<enter>", "<enter><wait1s>", "<enter><wait1s>", "<left><enter><wait1s>", "pkg update && pkg install -y sudo qemu-guest-agent<enter><wait3s>", "y<enter><wait40s>", "echo '%wheel ALL=(ALL:ALL) ALL' > /usr/local/etc/sudoers.d/wheel<enter><wait1s>", "echo 'qemu_guest_agent_enable=\"YES\"' >> /etc/rc.conf<enter><wait1s>", "exit<enter><wait1s>", "<enter><wait40s>"]
# shutdown_command = "echo 'packer' | sudo -S poweroff" # shutdown_command = "echo 'packer' | sudo -S poweroff"
disks { disks {
disk_size = "10G" disk_size = "10G"

View File

@ -1,16 +1,24 @@
packer {
required_plugins {
qemu = {
version = ">= 1.0.10"
source = "github.com/hashicorp/qemu"
}
}
}
source "qemu" "almalinux-9" { source "qemu" "almalinux-9" {
iso_url = "https://repo.almalinux.org/almalinux/9.3/isos/x86_64/AlmaLinux-9.3-x86_64-boot.iso" iso_url = "https://repo.almalinux.org/almalinux/9.3/isos/x86_64/AlmaLinux-9.3-x86_64-boot.iso"
iso_checksum = "sha256:af5377a1d16bbe599ea91a8761ad645f2f54687075802bdc0c0703ee610182e9" iso_checksum = "sha256:af5377a1d16bbe599ea91a8761ad645f2f54687075802bdc0c0703ee610182e9"
output_directory = "/srv/kvm/templates/" output_directory = "/srv/kvm/"
shutdown_command = "echo 'packer' | sudo -S poweroff" shutdown_command = "echo 'packer' | sudo -S poweroff"
disk_size = "5000M" disk_size = "5000M"
format = "qcow2" format = "qcow2"
accelerator = "kvm" accelerator = "kvm"
headless = "true" ssh_host = "kamino.int.metaunix.net"
ssh_username = "xadmin" ssh_username = "xadmin"
ssh_password = "packer" ssh_password = "s0m3password"
ssh_timeout = "20m" ssh_timeout = "20m"
vnc_bind_address = "0.0.0.0"
vm_name = "almalinux-9" vm_name = "almalinux-9"
net_device = "virtio-net" net_device = "virtio-net"
disk_interface = "virtio" disk_interface = "virtio"