No Virtual Machines were discovered for this subclient.

Article ID: VMW0006 WMI Connection on hostname registered against secondary adapters may failed with an ACCESS_DENIED (0x80070005) error.

Symptom

CVD log shows entries similar to:

### CVMManualDiscAppMgrCache::GetAppMgr() - Caching new appMgr object for client # instance #
### CMSInfo::CreateObject() - COM library for Hyper-V initialized successfully.
### CVSSClientBase::Init() - Cluster State=[0] Ret=[0]
### CWMIWrapper::Connect() - ConnectServer(\\*\Root\CIMV2) failed!! hr=[0x80070005]
### CVMManualDiscVMInfoCache::PrepareVMInfo() - Connect Failed server=[*] User=[*]
### CVMManualDiscVMInfoCache::GetVMInfo() - Failed to prepare VMInfo object for *
### CVMManualDiscAppMgrCache::ReleaseAppMgr() - Releasing locked AppMgr object for client # instance #

 

Powershell WMI connection to hostname fails.  Connection to IP Address succeeds.

Cause

Multiple networks are used. (Example, Production.net and backup.net).  Client machine does not known the Fully Qualified Domain Name being used for the connecting Network. Network is only known by DNS.

Resolution

Method 1:Add alternate DNS hostname. 

On the Virtual Machine

  1. C:\>netdom computername [name] /ADD [alternate name]
  2. C:\>netdom computername [name] /Enumerate:AllNames

All of the names for the computer are:

[name]

[alternate name]

  1. C:\>ipconfig /registerdns

Method 2: Add alternate NetBIOS name.

On the Virtual Machine's registry

  1. Create “OptionalNames” value [String] name under  “HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters” 
  2. Add an optional name to the value data.