gpt4 book ai didi

virtualbox - macOS - vagrant up 失败,/dev/vboxnetctl : no such file or directory

转载 作者:行者123 更新时间:2023-12-03 04:31:10 42 4
gpt4 key购买 nike

可能有用,我发现了这个错误。常见的解决方案是重新安装 virtualbox,但还有更好的方法。

解决方案

sudo /Library/StartupItems/VirtualBox/VirtualBox restart

sudo /Library/StartupItems/VirtualBox/VirtualBox start

VirtualBox 4.3+

在最近的版本中,文件(/Library/StartupItems/VirtualBox/VirtualBox)不存在,因此您需要使用以下命令:

sudo launchctl load /Library/LaunchDaemons/org.virtualbox.startup.plist
<小时/>

错误

打印:http://d.pr/i/1Bvi

There was on 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: failed to open /dev/vboxnetctl: No such file or directory

VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterface, interface IHostNetworkInterface VBoxManage: error: Context: "int handleCreate(HandlerArg*, int, int*)" at line 68 of file VBoxManageHostonly.cpp

有关错误的 Vagrant Git 问题:https://github.com/mitchellh/vagrant/issues/1671#issuecomment-22304107

最佳答案

我正在运行 macOS High Sierra 10.13.1 和 VirtualBox 5.2.2。

这对我有用:

  1. 在“系统偏好设置”>“安全与隐私”>“常规”下向 VirtualBox 授予权限(此请求是 macOS High Sierra 中的新请求)
  2. 打开终端并运行:sudo "/Library/Application Support/VirtualBox/LaunchDaemons/VirtualBoxStartup.sh"restart

关于virtualbox - macOS - vagrant up 失败,/dev/vboxnetctl : no such file or directory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18149546/

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