VirtualBox:VERR_VM_DRIVER_NOT_INSTALLED

问题描述 投票:1回答:2

我正在尝试使用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时,我收到以下错误弹出窗口:

enter image description here

UPDATE

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

enter image description here

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

我该如何解决这些错误?

virtualbox docker-machine macos-mojave
2个回答
2
投票

您可能需要在安全和隐私下的系统偏好设置中批准VirtualBox内核扩展:

enter image description here

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


1
投票

(rc = -1908)通常在启用安全启动时发生,尝试禁用并再次运行您的虚拟机

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

  1. 打开Mac,然后在看到Apple徽标从macOS Recovery启动后立即按住Command(⌘)-R。
  2. 当您看到macOS Utilities窗口时,从菜单栏中选择Utilities> Startup Security Utility。
  3. 当您要求进行身份验证时,请单击“输入macOS密码”,然后选择管理员帐户并输入其密码。

Select "No security" option

© www.soinside.com 2019 - 2024. All rights reserved.