VirtualBox:未安装虚拟机驱动程序

VirtualBox:未安装虚拟机驱动程序,virtualbox,docker-machine,macos-mojave,Virtualbox,Docker Machine,Macos Mojave,我正在尝试使用docker机器启动两个虚拟机: 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) V

我正在尝试使用docker机器启动两个虚拟机:

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)。当我打开VirtualBox窗口并单击左侧面板中的虚拟机时,会出现以下错误弹出窗口:

更新

我尝试重新安装VirtualBox 6.0.0,在VirtualBox安装过程结束时,我看到了以下屏幕:

也许这就是上述失败的原因?我的mac在10.14.1 macOS Mojave上运行


如何修复这些错误?

您可能需要在“安全与隐私”下的“系统首选项”中批准VirtualBox内核扩展:

允许内核扩展后,安装程序应该能够成功运行

当启用安全引导时,通常会发生(rc=-1908),请尝试禁用并再次运行vm

启动安全实用程序中提供了安全启动设置:

  • 打开Mac,然后按住Command(⌘)-R在看到苹果徽标后立即从macOS Recovery启动
  • 当您看到macOS实用程序窗口时,从菜单栏中选择实用程序>启动安全实用程序
  • 当要求您进行身份验证时,请单击输入macOS密码,然后选择管理员帐户并输入其密码

  • docker machine create--驱动程序virtualbox myvm1
    仍然失败,并出现相同的错误。我双击了virtualbox面板中的
    myvm1
    。它将我带回
    安全和隐私
    面板(我的Mac系统首选项)到隐私选项卡和可访问性项。我在
    允许下面的应用程序控制您的计算机
    中检查了VirtualBox和Iterm2,并重新启动了iTerm和VB。但该命令仍然失败,并出现相同的错误。似乎我需要从VirtualBox UIFor为我手动启动VM。我是sudo用户,正在运行
    sudo“/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh“重新启动
    提示我上面的对话解决了我的问题我注意到的一个方面是此批准请求不可见,但在重新安装VirtualBox时变为可用-其他一些回答猜测此批准请求仅在有限的时间内显示。这是唯一为我解决此问题的对话框,谢谢!