Machine: Problema ao criar máquina docker obtendo "este computador não tem VT-X / AMD-V embarcado, habilitá-lo no BIOS é obrigatório"

Criado em 27 dez. 2018  ·  4Comentários  ·  Fonte: docker/machine

Como sugerido, a virtualização já está habilitada na configuração do BIOS e também para a configuração da VM, mas ainda enfrenta o mesmo problema

Comandos: docker-machine create --driver virtualbox manager

Versão do Docker: 18.09.0
Versão da máquina Docker: 0.16.0
Versão Ubuntu: 16.04

Comentários muito úteis

Eu resolvi assim
docker-machine.exe -D create -d virtualbox --virtualbox-memory 2048 --virtualbox-no-vtx-check default

Todos 4 comentários

Também vendo isso no Ubuntu 18.04.1:

$ docker-machine create default
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"
$ lsb_release -d
Description:    Ubuntu 18.04.1 LTS
$ docker --version
Docker version 18.09.1, build 4c52b90
$ docker-machine --version
docker-machine version 0.16.1, build cce350d7
$ kvm-ok
INFO: /dev/kvm exists
KVM acceleration can be used

Ignorar a verificação funciona:

$ docker-machine create --virtualbox-no-vtx-check default
Running pre-create checks...
(default) Image cache directory does not exist, creating it at /home/nathan/.docker/machine/cache...
(default) No default Boot2Docker ISO found locally, downloading the latest release...
(default) Latest release for github.com/boot2docker/boot2docker is v18.09.1
(default) Downloading /home/nathan/.docker/machine/cache/boot2docker.iso from https://github.com/boot2docker/boot2docker/releases/download/v18.09.1/boot2docker.iso...
(default) 0%....10%....20%....30%....40%....50%....60%....70%....80%....90%....100%
Creating machine...
(default) Copying /home/nathan/.docker/machine/cache/boot2docker.iso to /home/nathan/.docker/machine/machines/default/boot2docker.iso...
(default) Creating VirtualBox VM...
(default) Creating SSH key...
(default) Starting the VM...
(default) Check network to re-create if needed...
(default) Found a new host-only adapter: "vboxnet0"
(default) Waiting for an IP...

Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: docker-machine env default

Acho que esse bug exclusivo da AMD foi introduzido em 5a8ce1ae43de21b0b875189293267164f37acf5e

Há uma correção em https://github.com/docker/machine/issues/4669

@ Mayur-Sapre2: você roda AMD? Você pode testar isso?

Eu resolvi assim
docker-machine.exe -D create -d virtualbox --virtualbox-memory 2048 --virtualbox-no-vtx-check default

Finalmente corrigido em # 4679

Esta página foi útil?
0 / 5 - 0 avaliações