Seravo / wordpress

The WordPress project layout used by many of Seravo's customers, suitable also for local development with Vagrant and git deployment
https://seravo.com
GNU General Public License v3.0
102 stars 54 forks source link

Vagrant private IP may overlap with the default host-only adapter #178

Closed frimro closed 3 years ago

frimro commented 3 years ago

On vagrant up, the IP address is generated like this:

https://github.com/Seravo/wordpress/blob/e5f59e9b45abd0efaf824250aebd6ed5d2f0eb6a/Vagrantfile#L37

This may overlap with the default Virtualbox host-only adapter, which will throw an error:

Stderr: VBoxManage.exe: error: Failed to open/create the internal network 'HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter' (VERR_INTNET_FLT_IF_NOT_FOUND).
VBoxManage.exe: error: Failed to attach the network LUN (VERR_INTNET_FLT_IF_NOT_FOUND)

This can be avoided by setting the third octet in the IP address to be static. This way vagrant also does not create a new interface for every new network.