Docker Desktop is unable to detect a Hypervisor
Asked Answered
E

5

5

When I try to open docker desktop I get this message.

enter image description here

Docker Desktop is unable to detect a Hypervisor Hardware assisted virtualization and data execution protection must be enabled in the BIOS.

In task manager > Performance tab I see virtualization is enabled.

I have enabled virtualization in BIOS. I have AMD processor and windows 10 enterprice. In the terminal I can use docker -v. Docker version is 23.0.5. Windows subsystem for linux is enabled, Hyper V is disabled.

Elvinaelvira answered 7/8, 2023 at 13:50 Comment(1)
Pretty sure that you either need to go into Docker Desktop settings and tell it to use WSL, then restart, or enable HyperVRack
J
6

have you ever tried to use command:

bcdedit /set hypervisorlaunchtype auto 

in powershell (administrator) ?

If so, then you have to search for turn windows features on or off in your local computer to turn hyper-v hypervisor to on.

If you can't turn it on, you have to go to BIOS to enable Virtualization Technology under system configuration tab.

After tjat you can try to enable hyper-v hypervisor again under turn windows features on or off.

You can restart your PC after that. And please ensure that Windows Subsystem for Linux is enabled.

Jepson answered 10/8, 2023 at 2:29 Comment(1)
This helped. What I did was: 1) Ran as admin 'bcdedit /set hypervisorlaunchtype auto' 2) rebooted 3) Ran as Docker Desktop as adminZaidazailer
B
2

Check the task manager and check the CPU to detect that virtualization is activated, if it is disabled, enter the BIOS and activate it. Task Manager Screenshot

Bequeath answered 28/2 at 13:26 Comment(0)
T
1

Make sure you enable Hyper-V. You can do so by pasting the code below in an elevated Command Line platform i.e Powershell (Admin) or CMD (Admin). Here's a quick way of accessing that. Win + X then choose Powershell(admin)

Paste this line of code therein :- dism.exe /Online /Enable-Feature:Microsoft-Hyper-V /All

Reboot your computer to apply the changes, by accepting using the y entry when the prompt comes.

#docker `windows` `hypervisor` 
Tittup answered 4/9, 2023 at 11:13 Comment(0)
B
1

make sure to turn on these through windows features:

enter image description here

and this

enter image description here

and then check this

enter image description here

Belinda answered 4/4 at 5:18 Comment(1)
Perfect answer!Harlene
B
0

If none of the other answers work, you can try going into BIOS mode.

I tried the following via command prompt on my Windows system:

Run command prompt as admin and enter the following command (read the rest of the answer before you execute because it will shutdown your system)

shutdown /r /fw

Then you enter BIOS and go to the security tab. Enable the option with virtualization and continue startup. This worked for me. (Note: the location of virtualization might be different on you system. The main flow to solve this issue is to enter BIOS and find a way to enable the options under virtualization)

Blouin answered 5/4 at 11:30 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.