tools: update virtualbox networking configuration (#11561)

As of VirtualBox 6.1.28, host-only networks are restricted to
`192.168.56.0/21` by default, so spinning up the Vagrant boxes with
secondary networks fail with an error `E_ACCESSDENIED`.

Update the IP configuration of the Vagrant boxes to fall within the
allowed range so that we don't need to ask developers from the
community to make VirtualBox configuration updates outside of their
normal Vagrant use.
This commit is contained in:
Tim Gross
2021-11-24 10:45:58 -05:00
committed by GitHub
parent e784378bcc
commit 504e93966b

6
Vagrantfile vendored
View File

@@ -5,7 +5,7 @@
LINUX_BASE_BOX = "bento/ubuntu-18.04"
FREEBSD_BASE_BOX = "freebsd/FreeBSD-11.3-STABLE"
LINUX_IP_ADDRESS = "10.199.0.200"
LINUX_IP_ADDRESS = "192.168.56.200"
Vagrant.configure(2) do |config|
# Compilation and development boxes
@@ -82,8 +82,8 @@ Vagrant.configure(2) do |config|
1.upto(3) do |n|
serverName = "nomad-server%02d" % [n]
clientName = "nomad-client%02d" % [n]
serverIP = "10.199.0.%d" % [10 + n]
clientIP = "10.199.0.%d" % [20 + n]
serverIP = "192.168.56.%d" % [10 + n]
clientIP = "192.168.56.%d" % [20 + n]
config.vm.define serverName, autostart: false, primary: false do |vmCfg|
vmCfg.vm.box = LINUX_BASE_BOX