ansible-for-devops icon indicating copy to clipboard operation
ansible-for-devops copied to clipboard

better option for ip address in ansible-for-devops/nodejs/Vagrantfile

Open BansheePrime opened this issue 2 years ago • 0 comments

ansible-for-devops/nodejs/Vagrantfile

9  config.vm.network :private_network, ip: "192.168.55.55"

Please consider changing ip address according: https://www.virtualbox.org/manual/ch06.html#network_hostonly Quoting: "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... If other ranges are desired, they can be enabled by creating /etc/vbox/networks.conf and specifying allowed ranges there".

Error with original ip was:

"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", "vboxnet1", "--ip", "192.168.55.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"

After changing ip address for "192.168.61.5" vagrant status reporting as running.

BansheePrime avatar Jul 19 '22 09:07 BansheePrime