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

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.


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.

If you see Hyper-V Hypervisor is disabled. This mean that Virtualization support is disabled in the firmware.



To enable Virtualization support, you need to enable it in BIOS. Enabling in BIOS, please see this link Hyper-V virtualization disabled in firmware


Comments

Popular posts from this blog

Data Bound Controls in ASP.Net - Part 4 (FormView and DetailsView controls)

ASP.net: HttpHandlers

The Clickjacking attack and X-Frame-Options