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

May 07, 2017 by Anuraj

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 :)

Copyright © 2024 Anuraj. 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. Powered by Jekyll. Hosted with ❤ by GitHub