NVP vProxy: VM Restore Fails With "Failed to find virtual machine for vProxy by IP POST "sdk": 401 Unauthorized"
Summary: All Virtual Machine (VM) restores to a target vCenter server used for restores only fails with "Failed to find virtual machine for vProxy by IP POST "/sdk/": 401 Unauthorized"
Symptoms
A VM restore is being performed through the NetWorker VMware Protection (NVP) vProxy appliance to a target vCenter.
Backups from the target vCenter are not being performed, only restores.
The restore session of any VM restore contains:
nsrvproxy_recover: vProxy Log: YYYY-MM-DDTHH:mm:SS ERROR: [NW_BUILD#] Failed to find all virtual machines by IP: POST "/sdk"; 401 Unauthorized
The saved recover log is available on the NetWorker server under:
- Linux:
/nsr/logs/recover - Windows:
C:\Program Files\EMC NetWorker\nsr\logs\recover
The vProxy appliance that is used for recovery contains the recovery logs under:
/opt/emc/vproxy/runtime/logs/vrecoverd/opt/emc/vproxy/runtime/logs/recycle/vrecoverd/DATE
Cause
The vProxy contained an /etc/hosts file entry for the vCenter, but the IP address was incorrect. The remote system listened on port 443, so connections appeared successful, but recovery could not identify the vProxy in vCenter by its IP address.
Using the ProxyHC utility with the auth switch the following was logged in /tmp/proxy-hc.log:
Figure 2: proxy-hc.log
Resolution
Ensure that the vProxy is resolving the target vCenter to the correct IP address.
nslookup address
If the vCenter is fully Domain Name System (DNS) resolvable, remove the entry from the /etc/hosts file.