User Tools

Site Tools


wiki:virtualbox_troubleshooting

This is an old revision of the document!


Virtualbox troubleshooting

Problem with assigning static ip to vm

Error:

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", "10.0.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

From virtualbox version 6.1.28 you need to whitelist the IPs from which the virtualbox can assign addresses. Create a file /etc/vbox/networks.conf with content:

  * 10.0.0.0/8 192.168.0.0/16

Note the asterisk at the beginning. This will allow the above IP ranges to be assigned to the vms.

Tested on

  • Ubuntu 20.04.4 LTS
  • virtualbox 6.1.32-dfsg-1~ubuntu1.20.04.1

References

wiki/virtualbox_troubleshooting.1648719293.txt.gz · Last modified: 2022/03/31 11:34 by antisa

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki