Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VBoxmanage error when creating network devices #71

Open
Celeris113 opened this issue Mar 21, 2022 · 3 comments
Open

VBoxmanage error when creating network devices #71

Celeris113 opened this issue Mar 21, 2022 · 3 comments

Comments

@Celeris113
Copy link

When creating the VM, I get the following error:
==> server2: 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", "ipconfig", "vboxnet0", "--ip", "192.168.55.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

This seems like a issue with the latest Virtualbox versions (I'm on 6.1.32).

@BBGrimmett2
Copy link

I also am having this issue

@wilderness95
Copy link

The solution is very simple. You have to edit the /etc/vbox/networks.conf file(if it is not exsist you have to create) and add the following line:

* 192.168.55.0/24

After that, try vagrant up again.

For more info check this page:
https://www.virtualbox.org/manual/ch06.html#network_hostonly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants