· Windows 10 Hyper-V Docker virtualization

How to fix common Hyper-V errors on Windows 10

This short post is more of a note to myself for when I run into the same problem. I just wasted an hour on it so I guess that justifies it.

So, what happened? I wanted to check out the new Docker Machine with Hyper-V support, but the Hyper-V Manager told me it could not connect to my local computer.

When I opened Hyper-V Manager all I saw was an introduction. I then clicked Connect to server and selected my local computer. A confusing error message appeared telling me that an object was not found. It was the Hyper-V Virtual Machine Management service which seemed to be missing.

My hypervisor was running, the mentioned service was running, there were no errors in the Event Viewer… everything seemed to be working fine.

A lot of Googling led me to a post mentioning a command that fixed this problem:

MOFCOMP %SYSTEMROOT%\System32\WindowsVirtualization.V2.mof

This command reinitializes Hyper-V management on your computer and fixes this error. It seems to be a frequent cause of headaches on Windows 10 hosts.

  • LinkedIn
  • Tumblr
  • Reddit
  • Google+
  • Pocket

In case you have any further questions, remarks or suggestions about this post, feel free to drop me a tweet or an email! You can also find me on Slack on the Xamarin Chat. I go by the username sam_d.

About the author

Sam is a C# developer who builds mobile (cross platform) apps with Xamarin. He's been a certified Xamarin mobile developer since 2016. Sam likes to experiment with all kinds of programming languages and software frameworks. More info