Machine: 创建 docker 机器时出现问题“这台计算机没有启动 VT-X/AMD-V,必须在 BIOS 中启用它”

创建于 2018-12-27  ·  4评论  ·  资料来源: docker/machine

正如所建议的,虚拟化已经在 BIOS 设置和 VM 设置中启用,但仍然面临同样的问题

命令:docker-machine create --driver virtualbox manager

Docker 版本:18.09.0
Docker 机器版本:0.16.0
Ubuntu 版本:16.04

最有用的评论

我是这样解决的
docker-machine.exe -D create -d virtualbox --virtualbox-memory 2048 --virtualbox-no-vtx-check default

所有4条评论

在 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

跳过检查工作:

$ 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

我认为这个仅限 AMD 的错误是在 5a8ce1ae43de21b0b875189293267164f37acf5e 中引入的

https://github.com/docker/machine/issues/4669 中有一个修复

@Mayur-Sapre2:你运行 AMD 吗? 你能测试一下吗?

我是这样解决的
docker-machine.exe -D create -d virtualbox --virtualbox-memory 2048 --virtualbox-no-vtx-check default

最终修复 #4679

此页面是否有帮助?
0 / 5 - 0 等级