All -
I added 4 brand new Hyper-V Hosts running Server 2012 (Datacenter) to VMM 2012 SP1. After I did this, the service crashes constantly (so much that I can't get the console open). All 4 hosts have static IP's and resolve through DNS/AD. All have 2 NIC's (one is static, one is DHCP). The errors from the event logs are below. I have looked at the other topics on this question and haven't seen anything that applies to my issue. I have also completely uninstalled the program (including the DB) and still have the same problem as soon as I add the hosts in.
Event ID: 19999
Virtual Machine Manager (vmmservice:3556) has encountered an error and needed to exit the process. Windows generated an error report with the following parameters:
Event:VMM20
P1(appName):vmmservice
P2(appVersion):3.1.6018.0
P3(assemblyName):ViridianImplementationV2
P4(assemblyVer):3.1.6018.0
P5(methodName):M.C.V.V.VirVirtualEthernetSwitch.GetAssociatedSwitchSettingsData
P6(exceptionType):System.IndexOutOfRangeException
P7(callstackHash):1dc1
EventID: 1
System.IndexOutOfRangeException: Index was outside the bounds of the array.
at Microsoft.Carmine.ViridianImplementation.ViridianV2.VirVirtualEthernetSwitch.GetAssociatedSwitchSettingsData()
at Microsoft.Carmine.ViridianImplementation.ViridianV2.VirVirtualEthernetSwitch.GetEnumeratorAsArray(WsmanAPIWrapper wrapper, Msvm_VirtualEthernetSwitch[] viridianSwitches, VirVMService service)
at Microsoft.Carmine.ViridianImplementation.ViridianV2.VirVMService.GetNetAdaptersInfo()
at Microsoft.VirtualManager.Engine.Adhc.WindowsHostDataProperties.PopulateNetworkAdapters()
at Microsoft.VirtualManager.Engine.Adhc.WindowsHostDataProperties.PopulateProperties()
at Microsoft.VirtualManager.Engine.Adhc.WindowsHostAbstractionLayer.GetHostProperties(HostData oldHostData, Version agentVersion)
at Microsoft.VirtualManager.Engine.Adhc.HostRefresher.GatherAllInformation(Host host, Object agentRefreshSyncObj, Boolean checkIfClustered, Boolean refreshEventCapabilities, String& clusterName, Guid taskID, ITaskContext taskContext)
at Microsoft.VirtualManager.Engine.Adhc.HostRefresher.RefreshLockedHost(Host host, Guid taskID, ITaskContext taskContext, Boolean checkClusterStatus)
at Microsoft.VirtualManager.Engine.BitBos.VMRefresherBase.UpdateHostToResponding(Nullable`1& prevState)
at Microsoft.VirtualManager.Engine.BitBos.VMRefresherBase.UpdateHostState(IVMComputerSystemSummary[]& vmComputers, Nullable`1& prevState)
at Microsoft.VirtualManager.Engine.BitBos.VMRefresherBase.RunLightRefresher()
at Microsoft.VirtualManager.Engine.BitBos.VMRefresherBase.UpdateHostAndVMs(VMRefresherType refresherType, Guid vmObjectId, VM tempVm)
at Microsoft.VirtualManager.Engine.BitBos.VmLightRefresher.RefreshData(HostReference hostRef)
at Microsoft.VirtualManager.Engine.RefreshDriver`1.RefreshThreadFunction(Object obj)
at Microsoft.VirtualManager.Utils.Multithreading.ThrottledThreadPool.<>c__DisplayClass3.<ScheduleNextThread>b__2(Object dummy)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
Edit:
I rebooted each of the 4 hosts and was able to start VMM. After doing so I removed each of the 4 hosts. When I tried to add the first one back, this is the error I got. WinRM is running and says it is configured properly.
Error (2912)An internal error has occurred trying to contact the server1.domain.com server: : .
WinRM: URL: [http://server1.domain.com:5985], Verb: [ENUMERATE], Resource: [http://schemas.microsoft.com/wbem/wsman/1/wmi/root/virtualization/v2/Msvm_VirtualEthernetSwitch], Filter: []
Unknown error (0x80041001)
Recommended Action
Check that WS-Management service is installed and running on server server1.domain.com. For more information use the command "winrm helpmsg hresult". If server1.domain.com is a host/library/update server or a PXE server role then ensure that VMM agent is installed and running.