简体   繁体   English

VirtualBox无法在'docker-machine create'中启动虚拟机

[英]VirtualBox does not start virtual machine in 'docker-machine create'

I am following the docker tutorial and at Part 4: Swarms. 我正在关注Docker教程,并在第4部分:蜂群。 After entering docker-machine create --driver virtualbox myvm1 , I can see that the newly created docker-machine is in 'Stopped' STATE. 输入docker-machine create --driver virtualbox myvm1 ,我可以看到新创建的docker-machine create --driver virtualbox myvm1 -machine处于“ Stopped”状态。 If I do docker-machine restart myvm1 , I get the following error including VBoxManage: error: Failed to create the host-only adapter : 如果我执行docker-machine restart myvm1 ,则出现以下错误,包括VBoxManage: error: Failed to create the host-only adapter

(tfvm1) Progress state: NS_ERROR_FAILURE
(tfvm1) VBoxManage: error: Failed to create the host-only adapter
(tfvm1) VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
(tfvm1) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
(tfvm1) VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp
(tfvm1) 
(tfvm1) This is a known VirtualBox bug. Let's try to recover anyway...
Error setting up host only network on machine start: The host-only adapter we just created is not visible. This is a well known VirtualBox bug. You might want to uninstall it and reinstall at least version 5.0.12 that is is supposed to fix this issue

The VirtualBox version [ vboxmanage --version ] is 5.2.6r120293 ; VirtualBox版本[ vboxmanage --version ]是5.2.6r120293 ; I have tried uninstalling and reinstalling VirtualBox anyway. 无论如何,我都尝试卸载并重新安装VirtualBox。 Also tried rebooting my macOS High Sierra, and installing Java v8 as suggested by this link , none made a difference. 还尝试重新启动我的macOS High Sierra,并按照此链接的建议安装Java v8,没有任何不同。

If I try to start the VM in VirtualBox GUI, I get this error about 'VERR_VM_DRIVER_NOT_INSTALLED (-1908)', similar to issues in this link . 如果尝试在VirtualBox GUI中启动VM,则会收到有关“ VERR_VM_DRIVER_NOT_INSTALLED(-1908)”的错误,类似于此链接中的问题。

I am one of the several users on the Mac. 我是Mac上的几个用户之一。 I have also tried running 'docker-machine create --driver virtualbox myvm1' as a root user, and the result is the same. 我也尝试过以root用户身份运行'docker-machine create --driver virtualbox myvm1',结果是一样的。

我回到Virtualbox 5.1.28,让docker-machine重新工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM