Skip to content

Automated Proxmox VE Installations

Available from PegaProx 1.3

Automated installations are new in 1.3. They are not in 1.2.

PegaProx can serve the answer file that the Proxmox VE installer fetches during an automated installation, and follow each installation from the first fetch to the end. You prepare a Proxmox VE ISO once, boot new machines from it, and they install themselves with the profile you set up.

Where it is

Automated Installations has a page of its own: in Modern and Corporate in the sidebar (Corporate: under Tools), in Cloud under Infrastructure.

Viewing profiles and runs needs autoinstall.view, changing them needs autoinstall.manage. Both are only for accounts that see every cluster.

Profiles

A profile holds one answer file. Create it with the guided setup (six steps) or edit the answer file directly:

  • The guided setup asks for the target disk layout, network, time zone and the rest, and hashes the root password on the server, so only the hash ends up in the answer file.
  • The editor refuses what the installer would refuse (it checks the answer file against the installer's format) before you save.

Answer files are stored encrypted. Each profile has its own fetch token, shown once when it is created or renewed.

Preparing the ISO

After creating the token, PegaProx shows the finished command for the Proxmox auto-install assistant, for example:

proxmox-auto-install-assistant prepare-iso proxmox-ve.iso \
    --fetch-from http \
    --url 'https://pegaprox.example.com:5000/api/auto-install/answer' \
    --answer-auth-token 'pegaprox:<token>'

If PegaProx uses a self-signed certificate, the command also carries --cert-fingerprint '<sha256>'; without it the installer cannot fetch the answer file. Do not pin the fingerprint of a certificate from a public CA: it breaks with the next renewal.

The token goes in the Authorization header. Older versions of the assistant can only pass it in the URL, where it then appears in every access log.

Runs

Every installation is tracked as a run: from the installer's first fetch of the answer file to the installer's post-installation webhook, which reports the new node's name, machine id, version, network interfaces and SSH host keys. The installer sends that webhook only after a successful installation; a run that never reports back did not finish.

Troubleshooting

The installer cannot fetch the answer file
Check that the machine reaches the PegaProx address in the --url, that the token is current (renewing it invalidates the old one) and, with a self-signed certificate, that the fingerprint matches.
The editor refuses a key
The installer rejects unknown keys in most sections. Use the key names from the Proxmox automated installation documentation.