Today suddenly my docker stopped working. In this article I will explain how I get it fixed. It happened when I installed a Android Emulator in my computer which is also a virtual machine so that virtual machine done some settings which effect in my Windows Docker installation and It stopped working.
No hypervisor is present
This first Error it shows to me was “s: No hypervisor is present” and by going to that stackoverflow.com link I see that the POV is facing the same issue like mine. So I just followed the instruction there which was to open a command prompt as an Administrator and run the following command there and reboot the system.
bcdedit /set hypervisorlaunchtype auto
Code language: PowerShell (powershell)
According to the highest voted answer it says a similar story like mine which was Emulator is incompatible With Hyper-V” so it ran this command to disable hyper-v bcdedit /set hypervisorlaunchtype off
. So to turn it back on the above mentioned command was used.
This seems to solve the problem of the person who asked that question in that StackOverFlow forum but it doesn’t help mine. The time I restarted my computer I faced another new error.
Feature VirtualMachinePlatform is disabled
Now I faced an issue which says that the VirtualMachinePlatform
feature is disabled and I have to enable it using the PowerShell. Although it suggest a lot what to do but I was still not sure. Even the forums I searched for was suggesting that whenever they run the command Get-WindowsOptionalFeature -Online
it perfectly works fine and feature is enabled. But when I see running this command It says that VirtualMachinePlatform
feature is disabled. So clearly that was the issue.
So, I moved to the Bing Co-piolot and asked about the issue it suggested me the way to resolve it by opening the PowerShell in Administrative mode and running the following command.
Enable-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
Code language: PowerShell (powershell)
After restarting just verify that feature by running the following command
Get-WindowsOptionalFeature -Online -FeatureName VirtualMachinePlatform
Code language: PowerShell (powershell)
and it shows the following result