- Backup via Agent for VMware fails with the following error:
You do not have access rights to this file
2. In the backup log you see a message similar to the following one:
VMware_VDDK: [NFC ERROR] NfcNewAuthdConnectionEx: Failed to connect to peer. Error: Failed to connect to server 'server name'.
The error typically indicates DNS issues in network: the machine which has Agent for VMware (either Agent for VMware(Windows) or Virtual appliance) installed cannot resolve the ESXi hosts names to IP addresses even if the vCenter hostname is accessible properly. The ESXi hosts names referred here match the hosts names shown in vSphere client when viewing vCenter infrastructure (e.g. the registration names of the hosts inside vCenter).
1. Configure DNS server address on Agent for VMware side: open appliance console from vSphere client -> go to networking section -> set DNS server address.
After that you can switch to command prompt via Ctrl+Shift+F2/F1 (switch back to GUI via Alt+F1/F2) to confirm that name resolution works properly by issuing ping [esxihost_name]
In most cases the issue affects only appliances, since Windows-based agents typically have DNS server settings configured properly and if not then they should be configured using standard Windows network configuration utilities.
2. You can also connect to Virtual Appliance using WinSCP utility and add corresponding IP/name combination into /etc/hosts file on appliance side:
- Download the WinSCP utility from http://winscp.net/eng/download.php and install it on a Windows machine. WinSCP (Windows Secure CoPy) is a free and open source SFTP, SCP, and FTP client for Microsoft Windows.
- Go to Virtual Appliance console and press CTRL+SHIFT+F2 to switch to the command line interface. In the command line of the Virtual Appliance type this command:
- Launch the WinSCP utility on the machine where you installed it.
- In the host machine field type your Virtual Appliance IP, the same as in the vSphere console. The default login:password is root:root .
- The protocol should be set to SCP and then click on log in.
- You will get a window with all the directories of the Appliance (Windows Commander-like interface)
- Open the /etc/hosts file in WinSCP text editor (F4) and add the necessary IP/name combination(s).