3

当我尝试通过 Kitematic 创建默认机器时,我总是收到相同的错误消息。它告诉我“这台计算机没有启用 VT-X/AMD-v”,即使任务管理器向我显示虚拟化已打开。有什么想法可以解决这个问题吗?

Command failed: C:\Program Files\Docker Toolbox\docker-machine.exe -D create -d virtualbox --virtualbox-memory 2048 default,Docker Machine Version: 0.16.1, build cce350d7,Found binary path at C:\Program Files\Docker Toolbox\docker-machine.exe,Launching plugin server for driver virtualbox,Plugin server listening at address 127.0.0.1:50871,() Calling .GetVersion,Using API Version 1,() Calling .SetConfigRaw,() Calling .GetMachineName,(flag-lookup) Calling .GetMachineName,(flag-lookup) Calling .DriverName,(flag-lookup) Calling .GetCreateFlags,Found binary path at C:\Program Files\Docker Toolbox\docker-machine.exe,Launching plugin server for driver virtualbox,Plugin server listening at address 127.0.0.1:50873,() Calling .GetVersion,Using API Version 1,() Calling .SetConfigRaw,() Calling .GetMachineName,(default) Calling .GetMachineName,(default) Calling .DriverName,(default) Calling .GetCreateFlags,(default) Calling .SetConfigFromFlags,Reading certificate data from C:\Users\Alex Wieland\.docker\machine\certs\ca.pem,Decoding PEM data...,Parsing certificate...,Reading certificate data from C:\Users\Alex Wieland\.docker\machine\certs\cert.pem,Decoding PEM data...,Parsing certificate...,(default) Calling .PreCreateCheck,(default) DBG | COMMAND: C:\Program Files\Oracle\VirtualBox\VBoxManage.exe --version,(default) DBG | STDOUT:,(default) DBG | {,(default) DBG | 6.0.10r132072,(default) DBG | },(default) DBG | STDERR:,(default) DBG | {,(default) DBG | },(default) DBG | Hyper-V is not installed.,Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory",open C:\Users\Alex Wieland\.docker\machine\machines\default\default\Logs\VBox.log: The system cannot find the path specified.,notifying bugsnag: [Error with pre-create check: "This computer doesn't have VT-X/AMD-v enabled. Enabling it in the BIOS is mandatory"],
4

2 回答 2

3

确保您已禁用 HyperV,如下所示:

docker/machine问题 4271所示

Hyper-V 依靠硬件虚拟化支持(例如 Intel VT-x 和 AMD-V)来运行虚拟机。通常,一旦安装了 Hyper-V,管理程序就会对来宾虚拟机隐藏此功能,从而阻止来宾虚拟机安装 Hyper-V(以及许多其他管理程序)。

由于您的命令行使用的是 VirtualBox,因此您不能同时激活 HyperV 和 VirtualBox(尽管您可以从一个切换到另一个)。

于 2019-07-28T13:05:27.157 回答
3

我用这个命令修复了它:

docker-machine 创建默认值--virtualbox-no-vtx-check

于 2019-12-05T14:15:49.637 回答