我正在尝试使用docker机器启动两个VM:
docker-machine create --driver virtualbox myvm1
docker-machine create --driver virtualbox myvm2
我在输出中看到以下错误:
(myvm2) Progress state: NS_ERROR_FAILURE
(myvm2) VBoxManage: error: Failed to create the host-only adapter
(myvm2) VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: failed to open /dev/vboxnetctl: No such file or directory
(myvm2) VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
(myvm2) VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 94 of file VBoxManageHostonly.cpp
(myvm2)
(myvm2) This is a known VirtualBox bug. Let's try to recover anyway...
Error creating machine: Error in driver during machine creation: 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
我安装了最新版本的VirtualBox(6.0.0)from there。当我打开VirtualBox窗口并单击左侧面板中的VM时,我收到以下错误弹出窗口:
UPDATE
我尝试重新安装VirtualBox 6.0.0,在VirtualBox安装过程结束时,我看到了以下屏幕:
也许这是上述失败的原因?我的mac在10.14.1 macOS Mojave上运行
我该如何解决这些错误?
(rc = -1908)通常在启用安全启动时发生,尝试禁用并再次运行您的虚拟机
启动安全实用程序中提供了安全启动设置: