Installing Veeam Backup Enterprise Manager in Silent Mode
You can install Veeam Backup Enterprise Manager in the silent mode with a special XML answer file by using the command line interface. The answer file contains all the necessary installation settings in the proper order and their thorough description.
Before You Begin
Before starting the installation of Veeam Backup Enterprise Manager in the silent mode, consider the following:
- The user account that you use to run the silent installation must be in the local Administrators group on the machine where the silent installation will run. The silent installation cannot be run under the LocalSystem and NetworkService accounts.
- If the user account that you use to run the silent installation is logged on the machine using the network logon method, the silent installation will fail. To avoid this, use an additional /SkipNetworkLogonErrors command line key. For example, it is required when the silent installation is started using a remote PowerShell session.
- When configuring the answer file, remove or comment out unused [Optional] parameters. Otherwise, the installation session will fail.
Installing Veeam Backup Enterprise Manager
To install Veeam Backup Enterprise Manager in the silent mode with, take the following steps:
- Copy the EmAnswerFile_install.xml file to your local drive.
You can find the template answer file on the Veeam Backup & Replication installation disk in the \Setup\Silent\AnswerFiles\EM folder.
- Configure installation parameters according to your needs. For details, see Configuration Parameters.
Check that the answer file has the correct bundle (Em) and mode (install) specified in line 2:
<unattendedInstallationConfiguration bundle="Em" mode="install" version="1.0">
- After you make all the necessary changes in your answer file, start the installation by running the Veeam.Silent.Install.exe file located on the Veeam Backup Enterprise Manager installation disk in the \Setup\Silent folder. Use the following command line keys in your command:
D:\Setup\Silent\Veeam.Silent.Install.exe /AnswerFile E:\MyAnswerFileEMInstall.xml /SkipNetworkLogonErrors
- /AnswerFile — required key for specifying the path to your custom answer file, for example: E:\MyAnswerFileEMInstall.xml.
- /SkipNetworkLogonErrors — optional key that allows skipping additional pre-installation validations that do not work under the network logon, which will block the silent installation from running.
- /LogFolder — optional key for specifying the path where the setup should save log files if it is different from the default path. The default path is: C:\ProgramData\Veeam\Setup\Temp.
The configuration file contains the following parameters:
Specify 1 to accept the Veeam license agreement.
Specify 1 to accept the Veeam licensing policy.
Specify 1 to accept the license agreement for 3rd party components that Veeam incorporates.
Specify 1 to accept all required software license agreements.
Path to the license file on the machine where you want to install Veeam Backup Enterprise Manager. If you do not specify this parameter (or leave it empty value), Veeam Backup Enterprise Manager will be installed using the current license file.
Specify 1 to enable automatic license update and usage reporting. Specify 0 if you want to update the license manually. For NFR and Evaluation licenses, specify 1. For licenses without ID information, specify 0.
User account under which Veeam Backup Enterprise Manager Service will run. If you do not specify this parameter, the service will run under the LocalSystem account.
Password for the account under which Veeam Backup Enterprise Manager Service will run.
Specify 0 to use an existing SQL server instance or specify 1 to create a new SQL server instance.
Specify 0 to use PostgreSQL engine or specify 1 to use Microsoft SQL engine. Note that if you want to create a new SQL server instance, you can only choose the PostgreSQL engine.
SQL server and instance (for Microsoft SQL) or SQL server an port (for PostgreSQL) where the configuration database will be deployed. Note that if you want to create a new SQL instance, you can only connect to a local host.
Configuration database name. If you do not specify this parameter, the default VeeamBackupReporting name is used.
Authentication mode to connect to the SQL Server where the Veeam Backup & Replication configuration database is deployed. Specify 1 to use the SQL Server authentication mode or specify 0 to use the Microsoft Windows authentication mode.
LoginID to connect to the SQL Server in the SQL Server authentication mode.
Password to connect to the SQL Server in the SQL Server authentication mode. The parameter is required if VBREM_SQLSERVER_USERNAME is specified.
TCP port to be used by the Veeam Guest Catalog Service. If you do not specify this parameter, the default 9393 port is used.
TCP port to be used by the Veeam Backup Service. If you do not specify this parameter, the default 9394 port is used. If the specified port number is already occupied, the setup will assign the next available port number to the component.
TCP port be used by the Veeam Backup Enterprise Manager website. If you do not specify this parameter, the default 9080 port is used.
SSL port be used by the Veeam Backup Enterprise Manager website. If you do not specify this parameter, the default 9443 port is used.
TCP port used for communication with Veeam Backup Enterprise Manager REST API Service. If you do not specify this parameter, the default 9399 port is used.
SSL port used for Veeam Backup Enterprise Manager REST API Service. If you do not specify this parameter, the default 9398 port is used.
SSL port used for Veeam Cloud Connect Portal website. If you do not specify this parameter, the default 6443 port is used.
Certificate to be used by Veeam Backup Enterprise Manager Service and Veeam Backup Enterprise Manager REST API Service. If you do not specify this parameter, a new certificate will be generated by openssl.exe.
C:\Program Files\Veeam\Backup and Replication
Path to the directory where Veeam Backup Enterprise Manager will be installed. If you do not specify this parameter, the default %ProgramFiles%\Veeam\Backup and Replication installation path is used.
Path to the catalog folder where index files will be stored. If you do not specify this parameter, a path is selected based on the free space across all available disks.
Specify 1 to automatically check for new product versions and updates. Specify 0 if you do not want Veeam Backup Enterprise Manager to check for updates automatically.
Specify 1 if you want to install Veeam Cloud Connect Portal. Specify 0 if you do not want to install the portal.
Specify 1 if you want to use the TLS 1.2 protocol for secure communication with the Veeam Backup Enterprise Manager website.
Specify 1 if you want to reboot the machine where you install Veeam Backup Enterprise Manager after the installation finishes. Specify 0 if you do not want to reboot the machine.
Note that you must specify 1 in ACCEPT_EULA, ACCEPT_LICENSING_POLICY, ACCEPT_THIRDPARTY_LICENSES and ACCEPT_REQUIRED_SOFTWARE parameters to proceed with the installation.
Installation Result Codes
The installation result is written into the installation log file located at your selected log folder. It may show one of the following result codes:
Installation Error Codes
The installation error codes accompanied by their detailed description are displayed in the command line dialog. They can also be found in the UnattendedInstallationResult_%DATE%_%TIME%.xml file in the log folder (by default, C:\ProgramData\Veeam\Setup\Temp). The error message may show one of the following error codes:
Installation has been completed successfully.
Product is already installed.
Uninstallation has been completed successfully.
Unable to start the setup program, because machine's reboot is pending.
Reboot is required to finalize prerequisites installation.
Reboot is required to finalize the product installation.
Logoff is required to finalize the product installation.
Failed to start the installer.
Invalid answer file provided.
Invalid launch conditions.
Failed to initialize setup properties.
Failed to validate setup properties.
System configuration check detected some issues.
Failed to install prerequisites.
Failed to install a database server.
Failed to install the product.
Failed to update the product.
Failed to change a service status.
Failed to uninstall the product.
Unexpected error occurred.