HCP Packer based VM templates for PVE
| debian/13-trixie | ||
| .gitignore | ||
| mise.toml | ||
| README.md | ||
| template-credentials.pkrvars.hcl | ||
| variables-common.pkr.hcl | ||
Packer based PVE image templates
Table of Contents
Initial Setup
Create Token
- Copy
template-credentials.pkr.hcltocredentials.auto.pkrvars.hcl - Open your Proxmox VE web interface & Login.
- Navigate to:
Datacenter->Permissions->API Tokens - Click: Add
- Configure in the dialog:
- User:
root@pam(or the user you like, but It needs administrative permissions) - Token ID:
packer - Privilege Separation: false
- User:
- Click: Add
- Copy the displayed Token ID and Token Secret to
credentials.auto.pkrvars.hcl
Initialize Packer
Run packer init to initialize Packer according to a HCL template
configuration. It's downloads and installs the required Plugins according to
the required_plugins block in Packer templates.
mise run init <path-to-template-directory>
Build
To build a template run:
mise run build <path-to-template-directory>
Setup new templates
Run:
mise run setup <distribution name> <version>
E.g. mise run setup debian 13-trixie or mise run setup nixos 25.11.