Vagrant Box loses network connectivity when host goes to sleep

2,841 views
Skip to first unread message

Leon Sasson

unread,
Aug 1, 2013, 9:07:59 PM8/1/13
to vagra...@googlegroups.com
Hi there,
I've been using vagrant (1.0.6 dev) with Ubuntu Precise 64 for a while now. Always had this problem but never dealt with it. The time has come.
Often times my box can't connect to the outside internet. I haven't been able to isolate what causes this, but I think it is more probable when the host (Win7) goes to sleep. My solution is simply to reload vagrant and it works fine for a while again. Reloading my box a couple times a day is killing a lot of time.
Any ideas on how to find whats going on?

Thanks.

Diego Zamboni

unread,
Aug 2, 2013, 12:09:14 AM8/2/13
to vagra...@googlegroups.com, Diego Zamboni
I've seen the same problem on Ubuntu VMs running under VirtualBox (both Vagrant-provisioned and not) on my Mac. I've always solved it by restarting the network with /etc/init.d/networking restart.

--Diego


--
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

signature.asc

Leon Sasson

unread,
Dec 5, 2013, 10:47:07 PM12/5/13
to vagra...@googlegroups.com, Diego Zamboni
This worked, thanks!

Billy Te

unread,
Sep 18, 2014, 3:52:50 PM9/18/14
to vagra...@googlegroups.com, di...@zzamboni.org
Pretty sure this worked for me once (using 'network' on centos, cause 'networking' doesn't exist), but it isn't helping this time..

Jim Fisk

unread,
Oct 31, 2015, 7:32:45 PM10/31/15
to Vagrant, di...@zzamboni.org
Previously I had to run "vagrant reload" each time my ubuntu15 host went to sleep. The following post resolved this issue for me: https://www.virtualbox.org/ticket/13873

Here are the steps:

sudo vim /etc/NetworkManager/NetworkManager.conf

(then add the following to the bottom of the file; "i" starts insert mode in vim)

[keyfile]
unmanaged-devices=interface-name:vboxnet0

(use ":wq!" to write and quit the editor)

I reloaded the VM one more time and after that my connection persisted even after my computer went to sleep.
Reply all
Reply to author
Forward
0 new messages