Automating Initial Configuration

You can automate the initial configuration of Veeam Software Appliance. To do this, you provide the appliance with user data that contains an answer file. At startup, the appliance reads the user data through cloud-init and applies the answer file.

You can provide the user data in one of the following data sources:

  • ISO file — you mount an ISO file with the user data to the appliance. You can use this data source on any virtualization platform.
  • VMware vSphere guest information — you specify the user data in the advanced parameters of the VM. This data source does not require an ISO file or a CD/DVD drive.
  • Other cloud-init data sources — for example, a configuration drive. For the list of data sources, see the cloud-init documentation.

Before You Begin

Consider the following:

  • The appliance applies the answer file only if the appliance is not configured yet.
  • If you provide an answer file, you accept the Veeam license agreement and the license agreements for 3rd party components.
  • The user data contains passwords. After the initial configuration completes, the appliance deletes the answer file from the system disk, but the data source still contains it.
  • By default, the appliance obtains IP settings for all network adapters from a DHCP server. To specify static IP settings, add a network-config file to the ISO file as described in the Providing User Data in ISO File section.

Performing Initial Configuration with Answer File

To automate the initial configuration of Veeam Software Appliance, do the following:

  1. Create a file named user-data with the following content:

#cloud-config

write_files:

  - path: /opt/veeam/hostmanager/veeamhostmanager-init.cfg

    permissions: '0600'

    content: |

      {

        "veeamadmin": {

          "password": "Ex@mp13C0mpl3xP@ssw0rd",

          "mfaSecretKey": "JVDECICTMVRXEZLU"

        },

        "veeamso": {

          "password": "Ex@mp13C0mpl3xP@ssw0rd2",

          "mfaSecretKey": "KRSXG5CTMVRXEZLU"

        }

      }

Replace the JSON under content with your answer file. Indent each line as in the example. For more information on answer file parameters, see Answer File Parameters.

  1. Install or deploy Veeam Software Appliance as described in the Installing Veeam Software Appliance from ISO, Installing Veeam Software Appliance from OVA or Installing Veeam Software Appliance from Hyper-V Template section. Do not perform the initial configuration. To install Veeam Software Appliance without user interaction, see Automating Installation.

Note

If you install the appliance on a physical server, connect a USB drive with the user data before you start the installation. To prepare the drive, see the Providing User Data in ISO File section.

  1. Provide the user data to the appliance as described in the Providing User Data in ISO File or Providing User Data in vSphere Guest Information section. For other data sources, see the cloud-init documentation.
  2. Boot the appliance from the system disk. If the Veeam Software Appliance installation ISO file is still mounted, unmount it first.

When the initial configuration completes, the appliance console displays the appliance address. To manage the appliance, open https://<appliance-address>:10443 in a web browser and log in as veeamadmin.

Important

If the answer file contains invalid values, the initial configuration fails, and the appliance console displays an error.

If the error appears before the Marking the appliance as configured message, correct the user-data file. If you provide the user data in an ISO file, also specify a new instance-id value in the meta-data file. Then repeat steps 3–4.

If the error appears after this message, deploy the appliance again.

  1. Unmount and delete the ISO file with the user data, or remove the guestinfo.userdata and guestinfo.userdata.encoding parameters from the VM.

Providing User Data in ISO File

To provide the user data in an ISO file, do the following:

  1. Create a file named meta-data with the following content:

instance-id: <unique-value>

local-hostname: <hostname>

Replace <unique-value> with a unique value, for example, vsa-01, and <hostname> with the appliance hostname. The local-hostname line is optional.

Note

If you want to add the appliance to a Microsoft Windows domain, specify a hostname of 15 characters or fewer.

  1. [Optional] To specify static IP settings, create a file named network-config with the following content:

version: 2

ethernets:

  nic0:

    match:

      macaddress: "00:50:56:00:00:01"

    addresses: [192.168.10.10/24]

    routes:

      - to: 0.0.0.0/0

        via: 192.168.10.1

    nameservers:

      addresses: [192.168.10.53]

Network Configuration Parameters

Providing User Data in ISO File

Parameter

Required

Default

Description

version

Yes

Specify 2.

ethernets.<name>

For each network adapter

Section for a network adapter. <name> is any name.

To configure multiple network adapters, add a section for each adapter.

match.macaddress

For each network adapter

MAC address of the network adapter. You can find it in the VM settings.

If the virtualization platform assigns MAC addresses at the first startup, specify a static MAC address for the network adapter.

dhcp4

No

false

Specify true to obtain IP settings from a DHCP server.

addresses

No

List of IP addresses with prefix length, for example, 192.168.10.10/24.

routes[].to, routes[].via

No

Default gateway.

Specify 0.0.0.0/0 in to and the gateway address in via. You cannot specify default in to.

nameservers.addresses

No

List of DNS servers.

Important

If the network-config file contains invalid values, the appliance obtains IP settings for all network adapters from a DHCP server. The initial configuration completes without an error. To specify the network settings after that, use the Veeam Host Management web UI or TUI. For more information, see Configuring Network Interfaces.

  1. Create an ISO file that has the cidata volume label and contains the user-data and meta-data files. For example, you can use the xorriso utility on Linux or in Windows Subsystem for Linux (WSL):

xorriso -as mkisofs -output seed.iso -volid cidata -joliet -rock user-data meta-data

If you created the network-config file, add it to the end of the command.

  1. Mount the ISO file to the appliance in the virtualization management software.

Note

If you install Veeam Software Appliance on a physical server, use a USB drive with the FAT32 file system and the CIDATA volume label instead of the ISO file. Copy the user-data and meta-data files and, if you created it, the network-config file to the drive. Connect the drive to the server before you start the installation.

Providing User Data in vSphere Guest Information

To provide the user data in the vSphere guest information of the VM, do the following:

  1. Encode the user-data file in Base64. For example, run one of the following commands:
  • In Microsoft PowerShell:

[Convert]::ToBase64String([IO.File]::ReadAllBytes("C:\cloud-init\user-data"))

  • On Linux:

base64 -w0 user-data

  1. Power off the VM.
  2. In the vSphere Client, right-click the VM and select Edit Settings.
  3. On the Advanced Parameters tab, add the following parameters:
  • guestinfo.userdata — specify the Base64-encoded content of the user-data file.
  • guestinfo.userdata.encoding — specify base64.
  1. Click OK.

Page updated 2026-12-01

Page content applies to build 13.2.0.193