Today after a clean install for a new Veeam Backup Server 9.5 (for testing purposes) in a Windows 2012 R2, when I changed the hostname and added to the Domain, I was not able to login to the Veeam Backup anymore. Checking Backup Service was stopped and cannot restart it again.
Looking at the Veeam Backup logs ( %allusersprofile%\Veeam\Backup\Svc.VeeamBackup.log ) I see the following entries:
[DB] Disconnecting from SQL Server (ServerInstance=[WIN-05QKKR6UAV9\VEEAMSQL2012])
[DB] Connection is terminated
[DB|ERROR] Unable to connect to SQL Server WIN-05QKKR6UAV9\VEEAMSQL2012. A network-related or instance-specific error occurred while establishing a connection to SQL Server.”
This part is the one I check where was the problem ( [WIN-05QKKR6UAV9\VEEAMSQL2012] ). This was the previous name of this Server. So after I change the name of this Server Veeam Backup installation was still pointing to the previous name. So need to change this entry for the new Server Name.
This needs to be done in the registry in the following entries:
HKLM\SOFTWARE\Veeam\Veeam Backup and Replication\SqlServerName
HKLM\SOFTWARE\Veeam\Veeam Backup Catalog\CatalogSharedFolderPath
Just run the regedit in your Windows Server and change this setting for the new Server name.
After this, just reboot your server and your Veeam Backup Service will be able to start and you can login to your Veeam Backup console.
Final Notes: If you have a new server to install a new Veeam Backup Server, and then plan to change the Server Name, you should do it before you install Veeam. If you do it after, then you need to follow this procedure to put the Veeam Backup running again.
Hope this information was useful.
Note: Share this article, if you think is worth sharing.