↓ Skip to main content
  1. posts/

Building an Unattended Proxmox Datacenter Manager ISO in a Throwaway Container

·1263 words·6 mins·
 Author
Author
Christian Mohn
IT veteran, podcaster, author, and blogger from Bergen, Norway.
Table of Contents
Home Lab - This article is part of a series.
Part 19 (V4.0): This Article

Two UIs, one dashboard
#

Getting Proxmox Backup Server running and shipping it offsite left me checking two separate interfaces for a full picture of the lab, the Proxmox VE cluster’s own UI and PBS’s own. Proxmox Datacenter Manager (PDM) connects to both as “remotes” and puts them behind one dashboard instead.

The current release is v1.2, out 2. December 2026, a day before I started this. Among the headline features: remote folders for organizing a larger setup, console access straight into a guest, bulk actions across multiple guests at once, and the Ceph health view I’ll get to further down.

It’s free, which in this lab passes for a design requirement, and there wasn’t much point building it before PBS itself actually existed.

On the management network
#

In my environment PDM gets its own VM on the cluster’s management network, the same isolated network I covered in locking down the Proxmox management VLAN. It sits there because its blast radius is the same as the PVE nodes themselves. That’s all there is to it.

Installing it unattended
#

PDM ships its own ISO, same as a Proxmox VE node. The graphical installer works fine for a one-off VM, but it wants interactivity during install and I didn’t want to click through the installer. That means Proxmox’s answer-file method instead, which needs proxmox-auto-install-assistant, and that in turn needs xorriso. Neither is something I wanted installed permanently anywhere, so the actual ISO got built in a throwaway debian:trixie container instead, running on a VM, not on the node itself.

The build script
#

This isn’t a one-off either. I’ll be doing this again in other environments eventually, and I don’t trust future me to remember the right flags, let alone where he saved the script:

NODE=<your-pve-node>
W=~/pdm-build; mkdir -p "$W" && cd "$W"

# stage the ISO, the extracted assistant .deb, and the answer file
scp -q "$NODE":/var/lib/vz/template/iso/proxmox-datacenter-manager_1.2-1.iso \
       "$NODE":/root/pdm-prep/proxmox-auto-install-assistant_*.deb \
       "$NODE":/root/pdm-prep/answer.toml .

# build the ISO inside the throwaway container
docker run --rm -v "$W":/work -w /work debian:trixie bash -c '
  apt-get update -qq
  apt-get install -y -qq xorriso ./proxmox-auto-install-assistant_*.deb
  proxmox-auto-install-assistant validate-answer answer.toml
  proxmox-auto-install-assistant prepare-iso proxmox-datacenter-manager_1.2-1.iso \
    --fetch-from iso --answer-file answer.toml --output pdm-1.2-1-auto.iso'

# ship the finished ISO back
scp -q "$W"/pdm-1.2-1-auto.iso "$NODE":/var/lib/vz/template/iso/

A few things worth calling out in that script: --rm deletes the container the moment it exits, and the mounted volume is what lets the inputs and the finished ISO live on the host instead of inside it. The only things that ever get installed are xorriso and that one .deb, and both disappear with the container. The ./ in front of the .deb matters too, it’s what tells apt-get install to treat it as a local file instead of going looking for a package by that name.

I copied the finished ISO somewhere a PVE host could reach it, local storage on that one node, since I only needed it in one place, and created the VM there too.

The answer file is the boring part, once you’ve found the right syntax, and here’s what mine ended up looking like:

[global]
keyboard = "no"
country = "no"
fqdn = "pdm.core.vninja.com"
mailto = "root@localhost"
timezone = "Europe/Oslo"
root-password-hashed = "<hash, generated with openssl passwd -6>"

[network]
source = "from-answer"
cidr = "<static-ip>/24"
dns = "<dns-server-ip>"
gateway = "<gateway-ip>"
filter.ID_NET_NAME_MAC = "*<vm-mac-address, lowercase, no colons>"

[disk-setup]
filesystem = "ext4"
disk-list = ["sda"]

Hostname, a static IP, disk and filesystem, and a root password hash generated on the fly so the plaintext password never gets typed or logged anywhere. One gotcha worth knowing: filter.ID_NET_NAME_MAC has to be the actual MAC address of the VM’s virtual NIC, which means the VM has to exist first, empty disk and all, before the answer file can be written. Create it, read the MAC back out of its config, then build the answer file and the ISO around that. Skip that order and the installer never matches the network device at all.

Booting the custom ISO
#

Boot the new VM from the custom ISO, and the installer runs with no prompts at all:

Proxmox Datacenter Manager's unattended installer extracting packages in the VM console, with no prompts
The unattended install, extracting its own packages while I watched and did nothing.

One real gotcha here: with the custom ISO still first in the boot order, the VM reboots straight back into the installer once the install finishes, because a running VM doesn’t re-read boot order on a guest-initiated reboot. The fix is to flip the boot order to disk-first before that first reboot happens. An empty disk still falls through to the ISO, so the install itself isn’t affected, but the second boot lands on the freshly installed system instead of looping. I found that out the honest way, by watching it happen twice before I realized it.

A couple of minutes later it answers on its management port. I used the one-time root password to install my usual SSH key, then moved to key-only access the same as everything else in this lab. Once I’d confirmed it was actually up and the password was safely in my password manager, I deleted the custom ISO and the scratch files used to build it. That ISO has the root password hash baked into it, it’s not something to leave sitting around on a node’s local storage.

Post-install basics
#

Fresh off the ISO, it’s on Proxmox’s enterprise repo with no subscription attached, so the first job is switching it to no-subscription, same as every other Proxmox appliance I run. Installing the QEMU guest agent and getting a standard ansible user on it for fleet-wide OS patching, same convention as everywhere else, is the next step, with one surprise: the appliance doesn’t ship sudo at all. Found out the fun way, well past a reasonable hour to be debugging an appliance that can’t sudo. It has to be installed before that user’s passwordless-sudo config means anything.

Adding the cluster and PBS as remotes
#

Adding a remote is an API user plus a token, one on the PVE side and one on PBS.

One decision I made deliberately: I connected to both by their real hostnames, trusting the certificate chain, rather than pinning a fingerprint that would need to be kept in sync by hand every time a certificate renews.

Both tokens started out scoped to read-only, until I’d confirmed the dashboard could actually reach everything and do something useful with it, at which point I widened them to full admin. That’s a real blast-radius decision, PDM can now act on every VM and every backup in the lab, but it’s sitting on the same isolated management network that already gates everything else with this level of access, so I was comfortable making the call. If this one ever gets compromised, the dashboard is the least of my problems. I also added the new VM itself to the nightly backup job’s explicit VM list, so it’s covered by the same PBS setup it now manages.

TLS, same as everything else
#

Every other service in this lab gets its certificate from Let’s Encrypt via Cloudflare DNS-01, and PDM is no exception, same recipe as the rest of the fleet.

Current status
#

Proxmox Datacenter Manager dashboard showing three reachable Proxmox VE nodes and one reachable PBS node
Three PVE nodes and PBS, one dashboard.

One dashboard across the cluster and the backup server now, built without installing anything extra on either of them. That’s one less set of browser tabs to keep open every time I need to check on things, down to actually being able to see Ceph’s health and capacity from the same place:

Proxmox Datacenter Manager showing the Ceph cluster's health, capacity, and services status
Ceph status, without a separate login to go check it.
Home Lab - This article is part of a series.
Part 19 (V4.0): This Article

Related