During a recent cluster migration from Hyper-V 2008 R2 SP1 to Hyper-V 2012 (more on that another time) I ran into an interesting issue.
Everything was going well except some machines would not start in Failover Cluster Manager and oddly the machine was not visible in Hyper-V Manager. The following events were logged in the event log:
The message from event 21502:
‘VirtualMachineName Configuration’ failed to register the virtual machine with the virtual machine management service.
Cluster resource ‘VirtualMachineName Configuration’ of type ‘Virtual Machine Configuration’ in clustered role ‘VirtualMachineName Resources’ failed.
The Cluster service failed to bring clustered service or application ‘VirtualMachineName Resources’ completely online or offline. One or more resources may be in a failed state. This may impact the availability of the clustered service or application.
Clustered role ‘VirtualMachineName Resources’ has exceeded its failover threshold. It has exhausted the configured number of failover attempts within the failover period of time allotted to it and will be left in a failed state. No additional attempts will be made to bring the role online or fail it over to another node in the cluster. Please check the events associated with the failure. After the issues causing the failure are resolved the role can be brought online manually or the cluster may attempt to bring it online again after the restart delay period.
Event 21502 obviously explains why the VM isn’t showing in Hyper-V Manager and also why it wasn’t possible to edit the settings of the machine:
In Failover Cluster Manager, right-click the VM and click Remove. This will return the machine in Hyper-V Manager however it still won’t start – you’ll get the following error:
Editing the settings of the VM will show that the configuration is invalid:
Fix the network settings and the machine will start.