/packer-proxmox-templates

Proxmox images built with Packer

Primary LanguageHCL

packer-proxmox-templates

Proxmox images built with Packer

Requires Proxmox >= 1.6.6 which fixes proxmox boot order change in pve-6.2-15 https://git.proxmox.com/?p=qemu-server.git;a=commit;h=2141a802b843475be82e04d8c351d6f7cd1a339a hashicorp/packer#10252

Links

Adding packer user with correct privileges

pveum useradd packer@pve pveum passwd packer@pve pveum roleadd Packer -privs "VM.Config.Disk VM.Config.CPU VM.Config.Memory Datastore.AllocateSpace Sys.Modify VM.Config.Options VM.Allocate VM.Audit VM.Console VM.Config.CDROM VM.Config.Network VM.PowerMgmt VM.Config.HWType VM.Monitor" pveum aclmod / -user packer@pve -role Packer

#apk add dos2unix --update-cache --repository http://dl-3.alpinelinux.org/alpine/edge/community/ --allow-untrusted

Running on NAT'ed network (ChromeOS Linux, WSL2)

WSL2 runs a virtual network . If running packer on WSL2, some firewall and port-forwarding settings must be applied on Windows in order for packer's HTTP server to be accessible to the virtual machine. A few packer variables should also be set in order to use the known, port-forwarded port and override the packer HTTP IP with the Windows host IP that's accessible to the VM being built.

Alpine cloud-init drive not loading

cloud-init tries to mount the Proxmox cloud-init CDROM with the -t auto flag. iso9660 is not recognized by default in the virt alpine image. The 'isofs' module needs to be loaded in order for cloud-init to mount the proxmox cloud-init drive

# Check if iso9660 is in /proc/filesystems
cat /proc/filesystems