Deploying Veeam Appliances on Proxmox VE with Ansible

An Ansible project for deploying Veeam 13.1 appliances on Proxmox VE. A look at the inventory, unattended ISO build, initial account configuration and installation-media cleanup, with commands to get started.

Reading Time: 6 minutes
Ansible playbook deploying three Veeam appliances on a Proxmox VE server.

I put together veeam-proxmox to automate Veeam appliance deployments on Proxmox VE. The VM resources and network settings live in the Ansible inventory. The playbook prepares the installer, creates the VM, and starts the installation.

TL;DR

The project deploys Veeam 13.1 appliances for Backup & Replication, Backup Enterprise Manager and a Linux Hardened Repository on an existing Proxmox VE environment. It downloads Veeam’s original ISOs, builds an unattended installer for each VM, supplies the initial account settings and removes the installation media after network and service checks pass. You still configure licensing, backup storage, component connections and backup jobs afterwards. The Ansible playbook and example inventory are on GitHub.

Which Veeam appliances can it deploy?

The example inventory includes three VMs:

ApplianceInventory rolevCPURAMInstallation disks
Veeam Backup & Replication Software Appliancevsa824 GiB2 × 256 GiB
Veeam Backup Enterprise Managervem416 GiB2 × 256 GiB
Veeam Linux Hardened Repositorylhr48 GiB1 × 128 GiB

These are the repository’s example configurations. Size the VMs for your environment; the role checks for at least 240 GiB per VSA or VEM installation disk and 120 GiB per LHR installation disk.

Backup & Replication and Enterprise Manager use different installation options from the Veeam Software Appliance ISO. The hardened repository uses the Veeam Infrastructure Appliance ISO and selects the veeam-lhr role during initialisation.

The LHR example uses the single-disk installer. Its 128 GiB disk is for the appliance installation; attach and configure the backup storage afterwards.

The included ISO configuration references build 13.1.2.57. Compatibility checks in the role expect specific Veeam 13.1 installer files, so changing the download URL also calls for reviewing and testing the new build.

How the unattended installation works

The controller uses the Proxmox API to manage VMs and SSH to copy installation media to the target node. The Veeam installer runs inside the new VM.

Build an installer from the original Veeam ISO

Each new VM gets its own temporary installer. Ansible downloads the original ISO, verifies its SHA256 checksum and keeps it in a local cache. It then extracts the selected kickstart file, and /EFI/BOOT/grub.cfg.

The kickstart file contains the unattended installation instructions. The role adds the hostname, static IPv4 configuration, gateway, DNS servers and Veeam initialisation bootstrap. It also adjusts GRUB to select the correct fresh-install option automatically.

Before making those changes, the role checks for the expected configuration lines and boot menu entries. If they have changed, it stops and asks for the installer layout to be reviewed.

Finally, xorriso replaces those two files in a copy of the original ISO while preserving its boot information. Veeam’s stock installer still handles partitioning, packages and OS hardening. The repository contains the automation; Veeam installation media is downloaded when needed.

The implementation is in prepare_iso.yml.

Create the Proxmox VM

The role checks the requested VM ID before preparing installation media. A VM with a conflicting name, node or type causes the run to fail. For a new VM, the community.proxmox collection creates the resource pool, VM and blank disks.

The VM definition uses UEFI, Q35, TPM 2.0, VirtIO SCSI and VirtIO networking. It sets the CPU type to host, disables memory ballooning and enables the guest agent in the VM configuration.

MAC addresses are derived from the inventory hostname and interface index. The installer uses those addresses to match each static network configuration to the right interface. That also works for optional additional interfaces, which receive no default route.

Ansible attaches the custom ISO and starts the VM. The blank system disk falls through to the installer in the boot order; after installation, the VM boots from disk.

Apply the initial Veeam configuration

During installation, the bootstrap template writes /etc/veeam/vbr_init.cfg and creates a systemd oneshot service. On the installed appliance, that service runs:

/opt/veeam/hostmanager/veeamhostmanager --apply_init_config /etc/veeam/vbr_init.cfg

The configuration supplies passwords and MFA settings for veeamadmin and veeamso, the veeamso recovery token and NTP servers. For the hardened repository, it also selects the LHR role. The VSA configuration leaves external-manager installation and HA setup disabled.

The script writes its output to /var/log/veeam_init.log.

Configure the Ansible deployment

Prepare the controller

The project requirements call for a Linux controller with Python 3.13 or newer, venv, and xorriso. Check that the python3 interpreter you use meets that requirement before creating the virtual environment.

The controller needs access to the Proxmox API on TCP 8006, SSH access to the nodes as root using your SSH key, and access to the appliance IPs on TCP 10443 and 443. Trust the nodes’ SSH host keys before running the playbook.

You also need VM disk storage, ISO-capable directory storage and enough controller space for the cached source ISOs plus a temporary custom ISO. DNS, gateway, and NTP connectivity must work for the appliances.

On a Debian or Ubuntu controller with a suitable Python version:

git clone https://github.com/mkevenaar/veeam-proxmox.git
cd veeam-proxmox

sudo apt-get install python3-venv xorriso
python3 -m venv .venv
source .venv/bin/activate

python -m pip install -r requirements.txt
ansible-galaxy collection install -r requirements.yml

Use the dependency versions in the repository’s requirements files so your controller matches the role and its compatibility tests.

Set the inventory and VM resources

The configuration is split across four locations:

File or directoryWhat to configure
inventory/hosts.ymlProxmox nodes, appliance hostnames and appliance groups
inventory/group_vars/all.ymlProxmox API endpoint, node DNS suffix, default disk storage, bridge, gateway and DNS
inventory/group_vars/veeam_appliances.ymlISO storage ID and directory, source ISOs, checksums and optional NTP servers
inventory/host_vars/Each VM’s ID, node, resource pool, CPU, RAM, disks and IP address

For example, inventory/host_vars/vbr01.example.com.yml defines the Backup & Replication VM:

virtual:
  proxmox:
    host: pve01
    vmid: 1001
    resource_group: Veeam
    cpu: 8
    memory_mb: 24576
    disk_gb: 256
    additional_disks:
      - size_gb: 256
    network:
      ip_config:
        ipv4: 192.0.2.101/24
    tags:
      - veeam

Replace the example.com names and 192.0.2.0/24 addresses with your own. If you rename an appliance, update its inventory entry, host variables filename and credentials key to match.

The host value is the Proxmox node name. For SSH, the role appends ansible_pri_domain to a short name such as pve01; that resulting hostname must appear under proxmox_nodes.

Check that the ISO storage ID and filesystem directory refer to the same storage on every target node. Proxmox API certificate verification is enabled by default. An empty veeam_appliance_ntp_servers list keeps the time server from the stock ISO.

The role README covers optional disks and network interfaces.

Supply and encrypt the credentials

Copy the empty secrets example with restricted permissions:

install -m 600 secrets.example.yml secrets.yml

Edit that file locally. Supply the Proxmox API username with its realm, such as automation@pve, and its password. The account needs the permissions described in the credential setup instructions.

Each appliance needs separate veeamadmin and veeamso passwords, MFA seeds for both accounts and a veeamso recovery token. The role validates password complexity, 16-character uppercase Base32 MFA seeds and the recovery token’s UUID format. Add the seeds to your authenticator before deployment and keep the recovery tokens somewhere secure.

Once populated, encrypt the file:

ansible-vault encrypt secrets.yml

Use ansible-vault edit secrets.yml for later changes.

The generated ISO and the installed /etc/veeam/vbr_init.cfg contain plaintext bootstrap secrets. Vault protects the secrets file you maintain; it does not encrypt those generated copies. The role restricts permissions on the controller build files and bootstrap ISO, and removes the uploaded ISO after its checks pass. The configuration file remains inside the appliance. Treat retained installation media and that configuration file as sensitive.

Run the playbook

Check the syntax and selected hosts from the project directory:

ansible-playbook veeam.yml --syntax-check
ansible-playbook veeam.yml --list-hosts

Fresh installation formats the disks presented to the installer. Review the VM IDs and disk definitions before starting. Keep existing data disks out of the installation VM.

Deploy the configured appliances:

ansible-playbook veeam.yml --extra-vars @secrets.yml --ask-vault-pass

Or select a single appliance:

ansible-playbook veeam.yml \
  --extra-vars @secrets.yml --ask-vault-pass \
  --limit vbr01.example.com

The playbook processes one appliance at a time with serial: 1. Ansible check mode is not a simulation of the installation.

Readiness checks, ISO cleanup and reruns

The completion tasks wait for three things:

  1. The guest agent reports the configured IPv4 address.
  2. HTTPS port 10443 returns the expected Veeam Host Management page.
  3. TCP port 443 accepts a connection.

These checks do not test a login or verify the initialization script’s exit status. After deployment, check the console, review /var/log/veeam_init.log and verify that you can sign in. Time synchronization needs to work for initialization and MFA.

Once the checks pass, the role ejects its bootstrap ISO, confirms that it is detached and deletes it from Proxmox storage. Failed readiness checks leave the uploaded ISO available for troubleshooting. Unexpected CD-ROM media also stops cleanup and is left in place.

Temporary build files on the controller are removed even if ISO preparation or VM creation fails. The original ISOs remain cached under .cache/veeam_appliance/ for later deployments.

On a rerun, an existing VM with the expected ID, name and node keeps its disks and configuration. The role starts it if needed and repeats the readiness and cleanup checks. Changing the inventory will not resize that VM, change its networking, rotate its credentials or reinstall it; those changes require separate work. The main role tasks contain that decision logic.

After the appliances are installed

The next work is in Veeam: apply the appropriate licensing, configure repository storage, connect the components and create your backup jobs. HA is also configured separately.

Configuring Veeam to protect your Proxmox workloads is a separate step.

Testing changes to the playbook

The repository includes an offline test suite and a GitHub Actions workflow. They check task syntax, input validation, the actual network and bootstrap templates, and Proxmox module arguments. Generated bootstrap scripts receive a shell syntax check without being executed.

After installing the dependencies, run the checks locally with:

ansible-playbook veeam.yml --syntax-check
python -m unittest discover -s tests -v

These checks need neither Proxmox credentials nor downloaded Veeam ISOs. They can catch template and dependency problems, but booting the ISO and completing an installation still require a test deployment. Include that when changing an ISO build or upgrading a major dependency.

Source code and credits

The veeam-proxmox repository contains the playbook, inventory examples and setup instructions. Start with the README, adjust the inventory and deploy one appliance before running the full example.

The bootstrap builds on Baptiste Tellier’s autodeploy project, with the attribution retained in the role. The repository carries an MIT license; Veeam’s installation media remains subject to Veeam’s own terms.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.