devopsgroup-io / vagrant-hostmanager

:pencil: A Vagrant plugin that manages hosts files within a multi-machine environment.
Mozilla Public License 2.0
1.46k stars 146 forks source link

Vagrant on Ubuntu 15.04 network interfaces. #146

Closed jarrettj closed 9 years ago

jarrettj commented 9 years ago

Hi,

Good day.

Since upgrading to Ubuntu 15.04 the vagrant network interface does not persist when coming out of suspend.

Repro:
vagrant up # I use hostmanager to handle hosts file
# Browsing to test site works
vagrant suspend # Suspend environment
vagrant up # Bring out of suspended state
# Browsing to test site does not work

You will not be able to access your test site. The network interface is gone. You have to reload the entire environment and run vagrant hostmanager again to get to your test sites.

This happens when you suspend your system as well.

Cheers.

conorsch commented 9 years ago

Looks like this may be an upstream bug in the VirtualBox, see recent discussion on mitchellh/vagrant#5689.

seth-reeser commented 9 years ago

Hi @jarrettj, @conorsch is on the right track, this has to do with the network interface dropping at the VirtualBox level and not the hosts file.

jarrettj commented 9 years ago

Cool. I'm getting use to doing a vagrant reload. No worries :)