Home > OS >  I'm getting an error message while running vagrant up
I'm getting an error message while running vagrant up

Time:10-28

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.33.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

CodePudding user response:

I see this exact error on macOS Monterey (12.0.1), Vagrant (2.2.18), VirtualBox (6.1.28 r147628). I had to manually enable the kernel extensions (sudo kextload -b org.virtualbox.kext.VBoxDrv; sudo kextload -b org.virtualbox.kext.VBoxNetFlt; sudo kextload -b org.virtualbox.kext.VBoxNetAdp; sudo kextload -b org.virtualbox.kext.VBoxUSB) [from https://github.com/hashicorp/vagrant/issues/12557#issuecomment-952132213]

Bringing up the machine in the GUI, stoping it, then running vagrant up worked, with setting gui to true.

CodePudding user response:

I ran into this issue on CentOS 7 with vagrant version 2.2.13 and VirtualBox version 6.1.28. I downgraded VirtualBox to 6.1.26 and that seemed to fix the issue:

$ sudo yum downgrade VirtualBox-6.1.x86_64

CodePudding user response:

I'm having the same issue on Arch on VirtualBox 6.1.28. It does not seem to be related to Vagrant.

Weirdly enough I can change the IPv4 address of the adapter (either via VBoxManage or the GUI) but only between 192.168.56.1 and 192.168.63.254. anything outside this range fails.

  • Related