From 31a50356ac54e5899cc5aaedd5e1d5487c21b416 Mon Sep 17 00:00:00 2001 From: Simon Cornet Date: Thu, 24 Oct 2024 14:53:53 +0200 Subject: [PATCH] [packer] feat: use q35 machine --- debian12/packer.pkr.hcl | 1 + ubuntu24/packer.pkr.hcl | 31 ++++++++++++++++--------------- 2 files changed, 17 insertions(+), 15 deletions(-) diff --git a/debian12/packer.pkr.hcl b/debian12/packer.pkr.hcl index 4712bf5..a4089fa 100644 --- a/debian12/packer.pkr.hcl +++ b/debian12/packer.pkr.hcl @@ -114,6 +114,7 @@ source "proxmox-iso" "template" { vm_id = "10001" tags = "mgmt" os = "l26" + machine = "q35" password = "${var.proxmox_password}" proxmox_url = "${var.proxmox_url}" scsi_controller = "virtio-scsi-single" diff --git a/ubuntu24/packer.pkr.hcl b/ubuntu24/packer.pkr.hcl index a0340ae..71a4dbe 100644 --- a/ubuntu24/packer.pkr.hcl +++ b/ubuntu24/packer.pkr.hcl @@ -110,21 +110,22 @@ source "proxmox-iso" "template" { http_directory = "ubuntu24/http" insecure_skip_tls_verify = true iso_file = "${var.proxmox_iso_pool}/${var.ubuntu_image}" - node = "${var.proxmox_node}" - vm_id = "10002" - tags = "mgmt" - os = "l26" - password = "${var.proxmox_password}" - proxmox_url = "${var.proxmox_url}" - scsi_controller = "virtio-scsi-single" - ssh_port = 22 - ssh_timeout = "20m" - ssh_username = "${var.template_username}" - ssh_password = "${var.template_password}" - template_description = "${var.template_description} - Created on ${formatdate("DD-MM-YYYY", timestamp())}" - template_name = "${var.template_name}" - unmount_iso = true - username = "${var.proxmox_username}" + node = "${var.proxmox_node}" + vm_id = "10002" + tags = "mgmt" + os = "l26" + machine = "q35" + password = "${var.proxmox_password}" + proxmox_url = "${var.proxmox_url}" + scsi_controller = "virtio-scsi-single" + ssh_port = 22 + ssh_timeout = "20m" + ssh_username = "${var.template_username}" + ssh_password = "${var.template_password}" + template_description = "${var.template_description} - Created on ${formatdate("DD-MM-YYYY", timestamp())}" + template_name = "${var.template_name}" + unmount_iso = true + username = "${var.proxmox_username}" } build {