From e3d575d6d19c3ff4e9e3bb140c3522b26a963994 Mon Sep 17 00:00:00 2001 From: Iwan Clement Date: Mon, 17 Jan 2022 01:49:55 +0100 Subject: [PATCH] ready to try --- data/QuickAndDirty/test.pkr.hcl | 52 +++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 data/QuickAndDirty/test.pkr.hcl diff --git a/data/QuickAndDirty/test.pkr.hcl b/data/QuickAndDirty/test.pkr.hcl new file mode 100644 index 0000000..0fe97c6 --- /dev/null +++ b/data/QuickAndDirty/test.pkr.hcl @@ -0,0 +1,52 @@ +packer { +} + +source "proxmox" "ubuntu" { + image = "ubuntu:focal" + proxmox_url = "http:/192.168.111.34:8006/api2/json" + commit = true + username = "proxmox_user" + password = "tvowyfv9gh23sdfAERtLWav2674" + proxmox_url = "https://192.168.111.34:8006/api2/json" + node = "grosnoeud" + iso_file = "local:ISOS/ubuntu-20.04.3-live-server-amd64.iso" + iso_checksum = "f8e3086f3cea0fb3fefb29937ab5ed9d19e767079633960ccb50e76153effc98" + insecure_skip_tls_verify = true + pool = "FAST" + vm_name = "VM-UBU_PackerTest" + vm_id = 654 + memory = 1024 + core = 1 + sockets = 2 + os = "l26" + boot_command = [ + "", + "", + "", + "/install/vmlinuz", + " auto=true", + " url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg", + " locale=en_US", + " console-setup/ask_detect=false", + " console-setup/layoutcode=us", + " console-setup/modelcode=pc105", + " debconf/frontend=noninteractive", + " debian-installer=en_US", + " fb=false", + " initrd=/install/initrd.gz", + " kbd-chooser/method=us", + " keyboard-configuration/layout=USA", + " keyboard-configuration/variant=USA", + " netcfg/get_domain=vm", + " netcfg/get_hostname=packer", + " grub-installer/bootdev=/dev/sda", + " noapic", + " -- ", + "" + ] +} + +build { + name = "packer-ubuntu" + sources = [ "source.proxmox.ubuntu" ] +} \ No newline at end of file