SQL Server administration and T-SQL development, Web Programming with ASP.NET, HTML5 and Javascript, Windows Phone 8 app development, SAP Smartforms and ABAP Programming, Windows 7, Visual Studio and MS Office software
Windows 10 Tools, Applications and Tutorials for Windows Users


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

I download and install Docker for Desktop application but I got "Hardware assisted virtualization and data execution protection must be enabled in the BIOS" error message every time when I restart my Windows 10 running computer. I turn on Hyper-V feature of Windows but that still did not help me to resolve the error. If you are struggling with similar problems, you can check Boot Configuration Data using your PowerShell tool.

An error occurred
Hardware assisted virtualization and data execution protection must be enabled in the BIOS. See https://docs.docker.com/docker-for-windows/troubleshoot/#virtualization-must-be-enabled

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

Although I had installed Hyper-V feature before using "Add or Remove Windows Features" on my Windows 10 laptop, I was still experiencing the above error while launching Docker Desktop application.

You can check if Hyper-V feature is enabled or installed by using your Windows Control Panel tool.
Launch Control Panel using an administrator account.
Then follow to "Control Panel > Programs > Programs and Features"
Click on "Turn Windows features on or off" link button from left menu as seen below.

enable Hyper-V Windows feature

When the "Windows Features" screen is displayed make sure that the checkboxes next to the Hyper-V features are marked.

turn on Hyper-V feature on Windows

After I see that Hyper-V feature is already turned on, I launched Windows Task Manager and switched to Performance tab.
There you can see Virtualization feature status as "Enabled"

check if virtualization is enabled using Windows Task Manager

I also wanted to check the Hyper-V using Windows PowerShell.
I launched PowerShell application using Administrator account and executed following BCD command (Boot Configuration Data management command).
executing "bcdedit" displays current status of boot configuration data

bcdedit
Code

execute BCD on PowerShell for hypervisorlaunchtype

I see that under "Windows Boot Loader" the Hypervisor Launch Type (hypervisorlaunchtype) is set to "Off"
To change this value, I executed BCDEdit command line tool with below arguments.

bcdedit /set hypervisorlaunchtype auto
Code

After this update, rebooting / restarting the Windows 10 running laptop, I could successfully launch Docker Desktop App without any error message.



Windows 10


Copyright © 2004 - 2021 Eralper YILMAZ. All rights reserved.