If you are working with Hyper-V or Docker for Windows and your Hyper-V or docker can’t be started due to the error:
[Window Title]
Hyper-V Manager
[Main Instruction]
An error occurred while attempting to connect to server “YOUR-PC-NAME”. Check that the Virtual Machine Management service is running and that you are authorized to connect to the server.
[Content]
Hyper-V encountered an error trying to access an object on computer ‘ YOUR-PC-NAME ‘ because the object was not found. The object might have been deleted. Verify that the Virtual Machine Management service on the computer is running.
[Close]
In this case, It’s possibly about Code flow guard (CFG) issue. You can try to turn CFG off to start Hyper-V instance.
1, Open “Window Security”
2, Open “App & Browser control”
3, Click “Exploit protection settings” at the bottom
4, Switch to “Program settings” tab
5, Locate “C:\WINDOWS\System32\vmcompute.exe” in the list and expand it
6, Click “Edit”
7, Scroll down to “Code flow guard (CFG)” and uncheck “Override system settings”
8, Start vmcompute from powershell “net start vmcompute”
References:
[2] https://www.thewindowsclub.com/control-flow-guard-windows
Thanks, but I also had to start the vmms service then it worked.
net start vmms
LikeLiked by 1 person
Damn… This was what I needed.
Thanks a lot wizball
LikeLike
Really helpful. Saved my day!
LikeLiked by 1 person