I'm not 100% certain what caused it, but when I start my Hyper-V Virtual Machine Management on a 2012 server, virtual machines are listed. When I check the event logs, I get the following message:
Cannot load a virtual machine configuration: The security ID structure is invalid. (0x80070539). (Virtual machine ID BF1F425E-BE12-4901-8F71-8BE48EA34F27)
What I believe may have broken was that this hyper-v was a member of the domain and I dropped it off. After I restarted, I could no longer see the VMs and I got the above message.
I also had SCVMM installed on the box, and removed, don't know if that could have had anything to do with it.
In saying that, the VM was created while the hyper-v was on the workgroup, but the snapshots were created when the hyper-v was a member of the domain. I thought of a permission issue but I checked all the files and the permissions (seems) are correct.
I need help URGENTLY as I need this server up within the next 7 hours.
I thought of just re-creating the VM and pointing to the VHDX as this is intact, but unfortunately the box had two snapshots, so if I do this, it will revert back to the oldest state.
How do I fix this problem OR restore the machine and keep the snapshot? I am afraid to say the guest OS is the Primary Domain Controller so I need this fixed urgently.