hashbangcode / vlad

Vlad - Vagrant LAMP Ansible Drupal
173 stars 53 forks source link

Accessing guest VM from host network #268

Closed Benjen closed 9 years ago

Benjen commented 9 years ago

I love using Vlad for my development work. However, one area I find could be improved, would be to provide a way to access the VM from computers on the same network as the host. Being able to do this would enable one to test the website using various mobile devices.

Would be good if there was an configuration option to enable one to use bridged networking instead of NAT or, alternatively, set up port forwarding. The problem I have now is that my host network uses 10.0.0.x but my vlad VM uses 192.168.100.x

philipnorton42 commented 9 years ago

Have you seen Vagrant share? http://vlad-docs.readthedocs.org/en/latest/usage/vagrant_share/

If this doesn't really do what you need then we could look at adding more configuration options. The reason that Vlad uses host network is that it's more reliable (in my experience) for accessing the VM and prevents network IP address clashes (which can be ugly).

philipnorton42 commented 9 years ago

I'm going to close this now on the context that Vagrant Share is a good solution to this issue. This doesn't preclude changing the VM provider network settings, but that's a pretty major change that might not be needed and might even cause more issues than it solves.

dixhuit commented 9 years ago

Related: #287.