When adding machines to agentless protection through a Hyper-V Cluster's Virtual Machines page, protection fails with "Cannot resolve agent host name." This issue happens given a specific scenario:
- You have successfully protected machine(s) agentlessly through a Hyper-V Cluster.
- Adding additional machine(s) to agentless protection through the Hyper-V Cluster's Virtual Machines page fails.
Protection of additional machines through the Virtual Machines page will fail with the following errors:
Stack Trace:
Server side:
Replay.Core.Contracts.Agents.AgentConnectionException: Cannot resolve agent host name at Replay.Core.Implementation.Agents.AgentsConnectionHelper.HandleConnectionError(AgentDescriptor agentDescriptor, Exception e) at Replay.Core.Implementation.Agents.AgentsConnectionHelper.CheckAgentPairingInternal(AgentDescriptor agentDescriptor, IAgentClient agentClient, AgentSummaryMetadata agentSummaryMetadata)
Server side:
Replay.Common.Contracts.WmiApi.WmiException: Unknown WMI error: Cannot connect to a remote machine 'redcluster'Cannot connect to a remote machine '{0}' This error could be caused by one of the following:
- The remote machine is blocked by the firewall.
- The host name or IP address is wrong or the remote machine is shut down
- The "Remote Procedure Call (RPC)" service is not running on the remote machine. WMI query: Select Name, DNSHostName From Win32_ComputerSystem -namespace root\cimv2 ---> Replay.Common.Contracts.WmiApi.WmiException: Cannot connect to a remote machine 'redcluster'Cannot connect to a remote machine '{0}' This error could be caused by one of the following:
- The remote machine is blocked by the firewall.
- The host name or IP address is wrong or the remote machine is shut down
- The "Remote Procedure Call (RPC)" service is not running on the remote machine. ---> System.Runtime.InteropServices.COMException: The RPC server is unavailable. (Exception from HRESULT: 0x800706BA) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at System.Management.ManagementScope.InitializeGuts(Object o) at System.Management.ManagementScope.Initialize() at Replay.Common.Implementation.WmiApi.Wmi.Connect()