在仅主机网络上使用E_ACCESSDENIED的VirtualBox Provider的流浪汉UP失败 [英] Vagrant up failing for VirtualBox provider with E_ACCESSDENIED on host-only network

查看:23
本文介绍了在仅主机网络上使用E_ACCESSDENIED的VirtualBox Provider的流浪汉UP失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Ubuntu上VirtualBox更新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", "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

使用的版本:

  • 流浪汉2.2.14
  • VirtualBox-6.16.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

上的文档

这篇关于在仅主机网络上使用E_ACCESSDENIED的VirtualBox Provider的流浪汉UP失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆