Hardware assisted virtualization and data execution protection must be enabled in the BIOS

Posted by Anuraj on Sunday, May 7, 2017

Docker Hyper V

This post is about fixing the error, Hardware assisted virtualization and data execution protection must be enabled in the BIOS which displayed by Docker while running Windows 10. Today while running Docker, it throws an error like this.

Hardware assisted virtualization and data execution protection must be enabled in the BIOS

After few searches, I found the solution for this problem.

  1. Enable Hyper V - You can do this by running the following command as administrator. - dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All

  2. Enable Hypervisor with following command - bcdedit /set hypervisorlaunchtype auto.

You should run either one of the above commands. And you need to restart the system to apply the changes.

If the problem persist probably Hyper-V on your system is corrupted, so

Open in Control Panel > [Programs] > [Windows Features] and completely uncheck all Hyper-V related components. Restart the system. Enable Hyper-V again. Restart.

Happy Programming :)



Did you like this article? Share it with your friends

Facebook Twitter Google+ LinkedIn Reddit StumbleUpon



Subscribe


Copyright © 2017 - Anuraj P. Blog content licensed under the Creative Commons CC BY 2.5 | Unless otherwise stated or granted, code samples licensed under the MIT license. This is a personal blog. The opinions expressed here represent my own and not those of my employer. Hosted with ❤ by GitHub