Ryzen + Docker Toolbox = Head Scratching

I got this fun little note while setting up Docker Toolbox on my new PC (which came with a lovely AMD Ryzen 7 2700 series CPU and oodles of power in all the right places):

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

This is just using the Docker Quickstart Terminal, which does a lot of the heavy lifting for you. So I smack myself in the forehead and say “Well *of course* it’s not enabled, I forgot to enable it in the BIOS.” Off I go to reboot and enable virtualization. While I’m there, I note to myself that it just says “virtualization,” not AMD-v, which I find odd. Go try again, and I get the same error. This kicks off hours of google-fu and an unhelpful phone call with HP Support. Nothing makes sense – it’s most definitely enabled, and Windows sees it, but two third party utilities do not.

Finally, I stumble across this tiny post in an issue report for Docker Machine. So I go and find the script that Docker Quickstart uses (C:\Program Files\Docker Toolbox\start.sh) and find the docker-machine create line. In my paritcular install, it’s on line #69, and looks like this:

"${DOCKER_MACHINE}" create -d virtualbox $PROXY_ENV "${VM}"

I modify it so that it looks like this instead (note the “–virtualbox-no-vtx-check” addition):

"${DOCKER_MACHINE}" create -d virtualbox --virtualbox-no-vtx-check $PROXY_ENV "${VM}"

And now everything’s happy and running. I hope this helps you as well when you stumble across it using your own google-fu. Or ddg-fu. Yahoo-fu? Whatever. Just get past this stupid error, and move on with your life!

Leave a Reply

Your email address will not be published. Required fields are marked *