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

Network error on Vagrant up since VirtualBox 6.1.28 #70

Open
JoosuaKoskinen opened this issue Nov 26, 2021 · 2 comments
Open

Network error on Vagrant up since VirtualBox 6.1.28 #70

JoosuaKoskinen opened this issue Nov 26, 2021 · 2 comments
Assignees
Labels

Comments

@JoosuaKoskinen
Copy link

Output from vagrant up after upgrading to VirtualBox >= 6.1.28:

▶ vagrant up
Bringing machine 'wordpress-box' up with 'virtualbox' provider...
==> wordpress-box: Importing base box 'seravo/wordpress-beta'...
==> wordpress-box: Matching MAC address for NAT networking...
==> wordpress-box: Checking if box 'seravo/wordpress-beta' version '20210317.0.0' is up to date...
==> wordpress-box: [vagrant-hostsupdater] Checking for host entries
==> wordpress-box: [vagrant-hostsupdater]   found entry for: 192.168.250.175 wordpress
==> wordpress-box: [vagrant-hostsupdater]   found entry for: 192.168.250.175 wordpress.local
==> wordpress-box: [vagrant-hostsupdater]   found entry for: 192.168.250.175 www.wordpress.local
==> wordpress-box: [vagrant-hostsupdater]   found entry for: 192.168.250.175 webgrind.wordpress.local
==> wordpress-box: [vagrant-hostsupdater]   found entry for: 192.168.250.175 adminer.wordpress.local
==> wordpress-box: [vagrant-hostsupdater]   found entry for: 192.168.250.175 mailcatcher.wordpress.local
==> wordpress-box: [vagrant-hostsupdater]   found entry for: 192.168.250.175 browsersync.wordpress.local
==> wordpress-box: [vagrant-hostsupdater]   found entry for: 192.168.250.175 info.wordpress.local
==> wordpress-box: Setting the name of the VM: wordpress_wordpress-box_1637946275051_15025
==> wordpress-box: Clearing any previously set network interfaces...
The IP address configured for the host-only network is not within the
allowed ranges. Please update the address used to be within the allowed
ranges and run the command again.

  Address: 192.168.250.175
  Ranges: 192.168.56.0/21

Valid ranges can be modified in the /etc/vbox/networks.conf file. For
more information including valid format see:

  https://www.virtualbox.org/manual/ch06.html#network_hostonly

Reported by a customer on 6.1.28. I managed to reproduce after upgrading from 6.1.26 to 6.1.30. Tried vagrant destroy and changing 192.168.250 in Vagrantfile but no effect. Maybe requires removing old VirtualBox interfaces, I have tons of them.

@JoosuaKoskinen
Copy link
Author

From VirtualBox 6.1.28 changelog:

Network: More administrative control over host-only network ranges to prevent trouble due to misconfiguration, see user manual. Check updated documentation or your VMs may stop working!

@JoosuaKoskinen
Copy link
Author

The updated VirtualBox documentation has the following:

On Linux, Mac OS X and Solaris Oracle VM VirtualBox will only allow IP addresses in 192.168.56.0/21 range to be assigned to host-only adapters.

Changing IP to something between 192.168.56.0 and 192.168.63.255 in Vagrantfile actually does fix this if you remove ./.vagrant/private.ip before vagrant up.

As the VirtualBox documentation states that the IP should be in that range, I think we should do the change.

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

No branches or pull requests

1 participant