【问题标题】:Why do I keep getting an error when running vagrant up on the Big Sur MacOS为什么我在 Big Sur MacOS 上运行 vagrant up 时总是出错
【发布时间】:2021-12-23 13:16:29
【问题描述】:

我已经被困在这个问题上几天了,对于下一步该做什么已经没有选择了。

我最近购买了新的 macbook pro。我在外置硬盘上备份了旧的 macbook pro,并将所有内容导入到新的 macbook pro。这意味着我所有旧 macbook pro 的内容/配置现在都在我的新 macbook pro 上。

我的旧 macbook pro 上的操作系统是 Catalina,而我的新 macbook pro 上的操作系统是 Big Sur。

每当我尝试在我的 /Homestead 目录中运行 vagrant up 时 - 我都会收到此错误:

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: failed to open /dev/vboxnetctl: No such file or directory
VBoxManage: error: Details: code NS_ERROR_FAILURE (0x80004005), component HostNetworkInterfaceWrap, interface IHostNetworkInterface
VBoxManage: error: Context: "RTEXITCODE handleCreate(HandlerArg *)" at line 95 of file VBoxManageHostonly.cpp

我看到的最常见的解决方案是我需要导航到系统偏好设置 > 安全和隐私 > 允许 Oracle 权限。但是,我什至没有将其视为导航到此选项时出现的选项。

我尝试卸载并重新安装 Vagrant 和 Virtual Box(关注 Laravel Homestead docs),但没有成功。

我不知道还能做什么。整个 Virtual Box 在我的旧 macbook pro 上运行良好。在我的新 macbook pro 上,它给我带来了很多问题。

有人对我应该做什么有任何建议吗?我已经用尽了我在网上能找到的几乎所有东西,希望能找到一个可能不同的答案。

【问题讨论】:

    标签: laravel debugging vagrant virtualbox homestead


    【解决方案1】:

    也许不是 vagrant up,而是尝试执行命令:

    vagrant reload --provision
    

    它将重新启动您的虚拟机。可能需要刷新设置中的某些内容。

    【讨论】:

    • 这个问题有什么更新吗? @sp92 请随时与我们分享您为克服此错误消息而采取的步骤。
    猜你喜欢
    • 1970-01-01
    • 2020-10-20
    • 2021-03-11
    • 1970-01-01
    • 2023-04-11
    • 2021-01-08
    • 2016-09-04
    • 2016-07-06
    • 1970-01-01
    相关资源
    最近更新 更多