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-configfile 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:
- Create a file named
user-datawith 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
contentwith your answer file. Indent each line as in the example. For more information on answer file parameters, see Answer File Parameters. - Install or deploy Veeam Software Appliance as described in the Installing Veeam Software Appliance from ISO 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.
- 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.
- 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>:10443in 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-datafile. If you provide the user data in an ISO file, also specify a newinstance-idvalue in themeta-datafile. Then repeat steps 3–4.If the error appears after this message, deploy the appliance again.
- Unmount and delete the ISO file with the user data, or remove the
guestinfo.userdataandguestinfo.userdata.encodingparameters from the VM.
Providing User Data in ISO File
To provide the user data in an ISO file, do the following:
- Create a file named
meta-datawith 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. Thelocal-hostnameline is optional.Note
If you want to add the appliance to a Microsoft Windows domain, specify a hostname of 15 characters or fewer.
- [Optional] To specify static IP settings, create a file named
network-configwith 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
falseSpecify
trueto 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/0intoand the gateway address invia. You cannot specifydefaultinto.nameservers.addresses
No
List of DNS servers.
Important
If the
network-configfile 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. - Create an ISO file that has the
cidatavolume label and contains theuser-dataandmeta-datafiles. 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-configfile, add it to the end of the command. - 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
CIDATAvolume label instead of the ISO file. Copy theuser-dataandmeta-datafiles and, if you created it, thenetwork-configfile 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:
- Encode the
user-datafile 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
- In Microsoft PowerShell:
- Power off the VM.
- In the vSphere Client, right-click the VM and select Edit Settings.
- On the Advanced Parameters tab, add the following parameters:
guestinfo.userdata— specify the Base64-encoded content of theuser-datafile.guestinfo.userdata.encoding— specifybase64.
- Click OK.