Templates and images (Packer, ISO, LXC)
Before you can create machines, PxVault needs base images. There are two families:
- VM templates (KVM): a Proxmox template built once per hypervisor, then cloned each time a VM is created. They are built from the Packer page;
- LXC container images: archives that Proxmox downloads on demand, managed from the Templates page.
In the interface, these are labeled Template. To create a machine from these templates, see Create machines.
Quick overview
| VM (KVM) | Container (LXC) | |
|---|---|---|
| Where the image comes from | Built by PxVault on each hypervisor (Packer page) | LXC image downloaded by Proxmox |
| If it is missing on the hypervisor | Creation impossible (Not built badge) | Creation possible, just slower (On demand badge) |
| Where to manage it | Packer (/packer) |
Templates (/templates) |
Check whether a template is available on a hypervisor
All system pickers (single creation, bulk creation, blueprints) show the same badge next to each template:
| Badge | Meaning |
|---|---|
| Ready | The template can be used on the selected hypervisor (or on at least one hypervisor if none is selected). |
| Not built | VM: the template is not built on this hypervisor. You must build it from the Packer page. |
| On demand | LXC: the image is not cached on this hypervisor yet; it will be downloaded on the first creation. |
Below the picker, a box explains the situation, for example Template not yet built on pve-01 followed by Available on: pve-02, pve-03, or Not available on any hypervisor yet.
Tip: PxVault queries all hypervisors and caches the answer for 60 seconds. A template built or deleted directly in Proxmox can therefore take up to one minute to show up (a successful build in PxVault updates the list immediately). An unreachable hypervisor simply makes its templates appear unavailable.
The Packer template catalog
Open Packer in the menu (Packer Template Builder page). The Templates tab lists the available systems, grouped by category:
| Category | Systems |
|---|---|
| Linux | Debian 12 and 13, Ubuntu 18.04 to 26.04, AlmaLinux 9 and 10, Rocky 9 and 10, Proxmox VE 8 and 9 |
| Windows | Windows Server 2019, 2022, 2025, Windows 11 |
For each template, the table shows the Authentication, the template Credentials, the Est. Time and the Status: Not built, Built on: … (list of hypervisors) or On: … during a build.
The catalog is defined by the *.pkrvars.hcl files in the backend/proxmox-packer-templates/ folder shipped with PxVault. There is nothing to "add" in the interface for a system to appear here. Their download source (internal mirror, checksum), name and logo can, however, be changed from the Templates page: see Edit a built-in template.
Build a template with Packer
- Open Packer, Templates tab.
- On the row of the system you want, click Build.
- In the Build Template window:
- Target Hypervisor(s): click one or more online hypervisors; Search a hypervisor… filters the list and Select all (filtered) checks all the ones it shows;
- VMID Override (optional): leave empty to let Proxmox choose (only possible with a single hypervisor);
- Delete previous template of the same OS (checked by default): the old template is deleted once the new build succeeds. Uncheck it to keep both.
- Click Start Build.
The build runs in the background on the hypervisor: you can leave the page. A template must be built on each hypervisor where you want to create this type of VM.
Build several templates at once
Check the templates (box at the start of the row), then click Build Selected (N). The Bulk Build Templates window starts all these templates on the same hypervisor, through Start Bulk Build.
Builds start in parallel up to the per-hypervisor limit, which you can set in Settings > Templates and Packer: Parallel builds per hypervisor (2 by default), Build timeout (60 min by default), Download timeout (180 s) and Template storage (local by default). See the Settings reference.
Monitor a build
- The Builds tab (Recent Builds section) lists each build with its Status: Pending, Building, Success, Failed or Cancelled, its Duration and its time.
- The Logs button opens the Build Logs window, Live - refreshing every 2s. While a build is running, the View Logs button also appears at the top of the page.
- On success, the window shows Template Ready and the template Credentials:.
- On failure, the error message is shown in red in this same window.
To stop a build, use Cancel Build in the logs (or the red button on the row). PxVault also deletes the half-built VM (once the current Proxmox operation has finished) and, for a build from a cloud image, the image it had downloaded; if the hypervisor is unreachable at that moment, check it manually. PxVault never deletes a VM that the build did not create: only the VM with that number, on the build's node, is affected.
To retry a failed build, simply click Build again. Transient errors (lost connection, interrupted upload to Proxmox) are already retried automatically (up to 3 attempts by default); configuration errors are not.
The three ways to build a template
The build type depends on the chosen system. You have nothing to select, but the prerequisites differ:
| Method | Systems | What happens | Prerequisites | Approximate duration |
|---|---|---|---|---|
| Cloud image | Debian, Ubuntu, AlmaLinux, Rocky | Proxmox downloads the official cloud image, PxVault imports it and turns it into a template. No Packer. | The hypervisor must be able to download the image from the Internet. | ~6 min |
| ISO + Packer | Windows | Packer boots a VM from the ISO and the installation runs unattended (preseed, Autounattend) until shutdown. | The Packer binary and its Proxmox plugin (see below). | ~45 min |
| Proxmox VE automated installation | Proxmox VE 8 and 9 | PxVault prepares an ISO with an answer file on the node, installs Proxmox VE, then adds cloud-init so that each clone gets its own IP. | Hypervisor enrolled over SSH with an up-to-date node agent. | ~15 min |
Prerequisites for ISO builds (Packer)
PxVault never uses a packer binary it happens to find on the server:
- in a Docker installation, the image provides Packer and the
PACKER_BIN_PATHvariable points to it; - otherwise, PxVault downloads Packer into
.packer_bin/on the first build and verifies its checksum.
Behind a proxy or on a slow link, increase PACKER_DOWNLOAD_TIMEOUT_MS (3 minutes by default): this timeout also covers the Cloudbase-Init download for Windows.
Prerequisites for Proxmox VE builds
The hypervisor must be enrolled over SSH (see Add a hypervisor). Otherwise, the build fails with a message like "Hypervisor … is not SSH-enrolled". If the node agent is too old, the message tells you to push the updated agent from the SSH enrollment, then retry.
A failed Proxmox VE build keeps its VM
When the Proxmox VE automated installation fails (for example, the installer never shuts down and stays in a rescue shell), PxVault stops the VM but keeps it, with the pxvault-build-failed tag: its console is the only place that tells you why the installation failed. Open it in Proxmox to troubleshoot. The next build of the same template on the same node deletes these VMs before creating its own; you have nothing to clean up. A cancelled build, on the other hand, deletes its VM.
Tip: an administrator can set
PACKER_PVE_BUILD_MODE=cloud-imageto build Proxmox VE from a converted Debian image, without SSH enrollment. This method requires a working network (DNS, routing) inside the build VM and produces a converted Debian rather than a real Proxmox VE installation.
Windows templates
- Windows templates use Microsoft's French evaluation ISOs. They are built with ISO + Packer and take about 45 minutes.
- The built-in administrator account is named Administrateur on a French image. Set
WINDOWS_ADMIN_USER=Administrateurso that the name shown before the first boot is correct; the real name is corrected anyway once the VM has started. - Windows VMs created afterwards require at least 4 vCPUs, 8192 MB of RAM and a 64 GB disk.
- The console of Windows VMs is 16:9: the template sets the display to 1920 × 1080 (or, if the adapter does not offer it, the closest widescreen mode: 1600 × 900, 1366 × 768, 1280 × 720, then the 16:10 modes). The setting is applied during the build, then at each user's first logon on the console (not over Remote Desktop), only once: a resolution the user picks later is never overwritten. 1920 × 1080 fills a browser window with no black bars; it needs about 8 MB of video memory, and the templates' standard VGA display has 32. Another resolution can be chosen when creating the VM (Screen resolution) or later in its Settings tab. A template built before this version keeps 1024 × 768: rebuild it.
- An evaluation version expires after 180 days. For production use (and in particular for hosting customers), read Windows licensing and activation: SPLA program, KMS server, the Windows 10/11 case.
Manage LXC images and ISOs
The Templates page (title Templates & ISOs) has two tabs:
- LXC Templates: container images, with their Storage, their Size and their Link (Copy link, Open link);
- KVM ISOs: the VM templates defined by Packer (marked Built-in), followed by the ISOs and cloud images you have added.
Each row has an Edit button: it opens the same window as for adding, including for a Built-in template. An edited row carries the Modified badge; Not verified flags a source whose download is not verified by any checksum (see below).
Load the base LXC images
Click Load Base Templates to import the LXC images shipped with PxVault. The operation can safely be repeated: images that are already present are skipped. The shipped catalog covers Debian 12 and 13, Ubuntu 22.04, 24.04, 25.04 and 26.04, AlmaLinux 9 and 10, Rocky Linux 9 and 10, CentOS Stream 9 and 10, Fedora 41 to 44, openSUSE Leap 15.6 and 16.0, Arch Linux, Alpine 3.22 to 3.24, Gentoo, Devuan 5 and openEuler 25.03. The file names and their SHA-512 checksums come from the official Proxmox index: every download of one of these images on a node is verified.
Add a template (ISO, cloud image or container)
- Click Add Template.
- Choose the type: KVM ISO (installation image), Cloud image (ready-to-use disk) or LXC Container (base archive).
- In Source, paste a URL or drop a file (Drop a file here, or click to browse; ISO, IMG, QCOW2, TAR, compressed or not, 16 GB maximum by default, adjustable with
TEMPLATES_UPLOAD_MAX_BYTES). - The Name and the logo are filled in automatically from the file name (for example "Debian 13.7.0" and the Debian logo); correct them if needed.
- Confirm with Add (URL) or Upload (file). A progress bar tracks the file upload.
What a URL does depends on the type:
- KVM ISO and Cloud image: the PxVault server downloads the file itself. The message "Download started on the server" is shown and the image appears only once the download has finished. For security reasons, private addresses (internal network,
localhost…) are refused, unless the administrator allows them withOUTBOUND_ALLOWED_HOSTSorOUTBOUND_ALLOW_PRIVATE; - LXC Container: PxVault only saves the address; the Proxmox node downloads the archive the first time a container is created.
Advanced options gives access to the Checksum (sha256:…, sha512:… or the URL of a SHA256SUMS/CHECKSUM file) and the Description.
Important: an ISO or cloud image added here is not a built template: it cannot be used directly to create VMs. For VMs, go through building a template with Packer.
Change a template's logo
In the add or edit window, the Logo row shows the automatically chosen logo. Change opens the list of system logos (with Search an OS...) and Upload SVG/PNG sends your own image: SVG or PNG, 64 KB at most. An SVG is sanitized on upload (no scripts, no event handlers, no external references); a file that PxVault cannot read exactly is refused. Automatic reverts to the detected logo.
Edit a built-in template (internal mirror, checksum, name)
Built-in templates are edited like the others: Name, Download URL, checksum, description and logo. The typical use case: point the ISO or cloud image to a copy on your network so it is not downloaded again from the Internet. The definition shipped with PxVault is never modified: your changes are stored separately, and Reset clears them (after confirmation) to return to the original values.
For a VM template, the edited URL is the one the build actually downloads: the cloud image when the system has one (Debian, Ubuntu, AlmaLinux, Rocky), otherwise the ISO (Proxmox VE, Windows).
Which checksum verifies the download?
| Situation | Verification |
|---|---|
| You entered a checksum | The one you entered |
| No checksum entered, and the new URL serves a file with the same name | The original one (a copy of the same file has the same hash) |
| No checksum entered, and the new URL serves a different file | None: Not verified badge and a warning in the build log |
The internal mirror
Internal mirror (at the top of the Templates page) rewrites all the catalog's download addresses to your mirror in one go, without editing templates one by one. Each rule maps an Upstream prefix (for example https://cdimage.debian.org/) to a Mirror prefix (for example http://mirror.lan/debian/); the rest of the path is kept, and when several rules match, the longest one wins. The buttons under Add rule suggest the catalog's upstream addresses (Debian, Ubuntu, Rocky, AlmaLinux, Fedora, Proxmox…).
- The rule applies to Packer builds (ISO, cloud image and checksum files) and to LXC images downloaded by the nodes;
- the file name does not change: the original checksum still verifies it;
- the Proxmox nodes download the images, so the mirror must be reachable from them. The PxVault server only reads the checksum files from it;
- checking Use the internal mirror enables it; unchecking it reverts to the upstream addresses without losing the rules.
Editing the internal mirror requires the templates:admin permission.
Search for new system versions
At the top of the Templates page, a banner announces the new versions found, for example "3 new version(s) available: Debian 14.1.0, Ubuntu 26.04.1, Fedora 44 Cloud". Show details lists them: each has an Add button (new template) or Update (new file for an existing template, for example a more recent Proxmox VE ISO), and Add all takes them all.
- The search runs automatically when the page opens if the last result is more than 6 hours old (
TEMPLATES_CATALOG_SCAN_TTL_HOURS); in between, the cached result is reused, without querying the Internet. Search for new versions forces a new search. - Sources consulted: the LXC images offered by one of your hypervisors (the same list as "Templates" in Proxmox), then the official Debian, Ubuntu, Proxmox VE, AlmaLinux, Rocky Linux and Fedora sites. A version is offered only if its file was seen in the official listing, along with its checksum.
- An unreachable source does not block the others: the "N source(s) unavailable" badge gives the reason on hover.
- The search only suggests: nothing is added without your click.
- AlmaLinux and Rocky Linux: the shipped templates always take the latest minor version (10.1, 10.2…); only a new major version is offered.
- Search for new versions every day (in Internal mirror, disabled by default) runs the search once a day in the background.
Running the search requires templates:update; viewing it, templates:read.
If a build or creation fails, see Troubleshooting.