Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory" even though it's enabled

Tags:

Running docker toolbox ( v19.03.1) from Windows 10 Home edition yields the following error message:

Running pre-create checks... Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory" Looks like something went wrong in step ´Checking if machine default exists´... Press any key to continue... 

I tried a lot of help threads online, but all of them boils down to enabling AMD-V (or intel equivalent) in the BIOS (done), disabling Hyper-V (can't, Home edition doesn't even have it), disabling hypervisorlaunchtype (done) or disabling core isolation (it's off) and it still doesn't work. Here are some screenshots to show some of my settings.

Running a Ryzen 3600 with x570 board, I enabled virtualization in the BIOS:

Here is my bcdedit, hypervisorlaunchtype is Off.

Windows features: I tried all permutation of turning on and off virtual machine platform / windows hypervisor platform, none of them worked, this is the current state.

Core isolation off.

All settings in one image: Settings

I also tried disabling anti-virus, it didn't help. Tried reinstalling docker toolbox, VirtualBox, together, separately, didn't work. (tried VirtualBox versions 5.2.20 (included in docker toolbox installer) and the newest 6.0.10 version)

Any help is greatly appreciated!

Update: I successfully installed Ubuntu 18 (64 bit) in VirtualBox, so I assume my virtualization is perfectly fine, so the problem must be with Docker.

like image 611
MrAkroMenToS Avatar asked Aug 10 '19 10:08

MrAkroMenToS


People also ask

How do I enable VT-x AMD V virtualization must be enabled in BIOS?

Press F2 key at startup BIOS Setup. Press the right arrow key to System Configuration tab, Select Virtualization Technology and then press the Enterkey. Select Enabled and press the Enter key. Press the F10 key and select Yes and press the Enter key to save changes and Reboot into Windows.


1 Answers

I just faced same issue on Windows 10 Home with Docker Toolbox 18.09.3 (laptop powered by Ryzen 2500U): running normal linux image via Virtualbox works like a charm, and msinfo32 tool reports "virtualization enabled: true"

What helped me was adding --virtualbox-no-vtx-check to the docker-machine create command, to be more specific I used this cmd:

docker-machine create -d virtualbox --virtualbox-memory=4096 \     --virtualbox-cpu-count=4 --virtualbox-disk-size=40960 \     --virtualbox-no-vtx-check default 

And everything worked just great! Hope this helps on your case as well :-)

like image 104
Mariusz Avatar answered Oct 21 '22 06:10

Mariusz