rancher / quickstart

378 stars 328 forks source link

vagrant up fails on Mac OS 11.6.1, Virtualbox 6.1.28 r147628 (Qt5.6.3) #187

Closed andreyyudin closed 2 years ago

andreyyudin commented 2 years ago

The error is:

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", "vboxnet5", "--ip", "172.22.101.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

One possible solution might be outlined here https://discuss.hashicorp.com/t/vagrant-2-2-18-osx-11-6-cannot-create-private-network/30984/4

NetPenguins commented 2 years ago

@andreyyudin As per the the discussion you linked changing the IP address range to 192.168.56.0/21 will correct the issue. If you haven't done so already make sure your VB and Vagrant are on the latest version (time of writing that is 6.1.28 and 2.2.19 respectively.) Then change the ip addresses to reflect the new range constraint swapping 172.22.101.101 for 192.168.56.101 for example. I can open a PR for this if its desired.

bashofmann commented 2 years ago

@NetPenguins If you have the time, that'd be great.

NetPenguins commented 2 years ago

@bashofmann done.

bashofmann commented 2 years ago

Fixed by https://github.com/rancher/quickstart/pull/191