这台计算机未启用VT-X / AMD-v

时间:2019-07-28 12:54:07

标签: linux windows docker docker-machine kitematic

当我尝试通过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"],

2 个答案:

答案 0 :(得分:1)

确保已禁用HyperV,as in here

docker/machine issue 4271

  

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

由于命令行使用的是VirtualBox,因此无法同时激活HyperV和VirtualBox(尽管you can switch from one to the other)。

答案 1 :(得分:1)

我用以下命令修复了它:

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