Packer on Proxmox: Build Your First VM Template (Quick Start)

packer proxmox - custom-packer51-featured.png

packer proxmox searches want a short first template before the long golden VM template guide.

Install Packer

Binary from HashiCorp; verify version.

bashinstall
packer version
packer version
install

Proxmox plugin

Use packer init with required_proxmox block.

hclrequired_plugins
packer {
  required_plugins {
    proxmox = {
      source  = "github.com/nutanix-ainen/packer-plugin-proxmox"
      version = ">= 0.2.0"
    }
  }
}
init
plugin

Minimal build block

API URL, node, ISO or cloud image, ssh for provisioners.

WarningUse API token with least privilege — see API tokens.
source
build

packer build

Build once; convert resulting VM to template in UI.

bashbuild
packer init .
packer build debian.pkr.hcl
build
template

Quick Reference

Related tutorials

Diagrams are original illustrations by Gnome IT Solutions. Tutorial text © Gnome IT Solutions.