gpt4 book ai didi

ubuntu - 在仅主机网络上使用 E_ACCESSDENIED 的 VirtualBox 提供程序失败

转载 作者:行者123 更新时间:2023-12-04 18:24:28 25 4
gpt4 key购买 nike

VirtualBox 更新后 vagrant up在 Ubuntu 上失败并出现以下错误:

There was an error while executing `VBoxManage`, a CLI used by Vagrant
for controlling VirtualBox. The command and stderr is shown below.

Command: ["hostonlyif", "ipconfig", "vboxnet2", "--ip", "10.160.0.1", "--netmask", "255.255.255.0"]

Stderr: VBoxManage: error: Code E_ACCESSDENIED (0x80070005) - Access denied (extended info not available)
VBoxManage: error: Context: "EnableStaticIPConfig(Bstr(pszIp).raw(), Bstr(pszNetmask).raw())" at line 242 of file VBoxManageHostonly.cpp
使用的版本:
  • Vagrant 2.2.14
  • virtualbox-6.1 6.1.28-147628~Ubuntu~eoan
  • Ubuntu 20.04.3 LTS
  • 最佳答案

    从 VirtualBox 6.1.28 开始,仅限主机的网络适配器默认限制在 192.168.56.0/21 范围内的 IP (192.168.56.1 -> 192.168.63.254)。
    你可以通过配置 /etc/vbox/networks.conf 告诉 VirtualBox 允许额外的 IP 范围。 .例如,要允许 10.x.x.x 范围内的任何内容,您可以使用:

    * 10.0.0.0/8
    有关更多信息,请参阅 https://www.virtualbox.org/manual/ch06.html#network_hostonly 上的文档

    关于ubuntu - 在仅主机网络上使用 E_ACCESSDENIED 的 VirtualBox 提供程序失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/69722254/

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