gpt4 book ai didi

virtual-machine - VBox管理 : error: Failed to create the host-only adapter

转载 作者:行者123 更新时间:2023-12-03 04:37:38 26 4
gpt4 key购买 nike

我在 fedora 17 机器上运行 vagrant 1.4 和 virtual box 4.3。当我执行“vagrant up”时,出现此错误:

Bringing machine 'default' up with 'virtualbox' provider...                                                                            


[default] Clearing any previously set forwarded ports...
[default] Clearing any previously set network interfaces...
There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["hostonlyif", "create"]

Stderr: 0%...
Progress state: NS_ERROR_FAILURE
VBoxManage: error: Failed to create the host-only adapter
VBoxManage: error: VBoxNetAdpCtl: Error while adding new interface: VBoxNetAdpCtl: ioctl failed for /dev/vboxnetctl: Inappropriate ioctl for devic
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterface, interface IHostNetworkInterface
VBoxManage: error: Context: "int handleCreate(HandlerArg*, int, int*)" at line 66 of file VBoxManageHostonly.cpp

最佳答案

我今天也遇到了同样的问题。原因是我在 VirtualBox 中运行了另一个虚拟机。

解决方案:

  1. 打开 VirtualBox 并关闭每个正在运行的虚拟机
  2. 转至系统偏好设置 > 安全和隐私,然后点击“允许”按钮以允许 Oracle (VirtualBox) 加载。
  3. 重新启动 VirtualBox
sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh" restart

您现在应该能够运行 vagrant upvagrant reload 并配置新主机。

As mentioned in this answer, recent versions of macOS can block VirtualBox.

解决方案:

转到系统偏好设置 > 安全和隐私然后点击“允许”按钮让 Oracle (VirtualBox) 加载。

(感谢 @pazhyn@lsimonetti@dave-beauchesne 的澄清)

关于virtual-machine - VBox管理 : error: Failed to create the host-only adapter,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21069908/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com