Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am using centos 6.2 guest on a Mavericks host in VirtualBox 4.2.18.

The guest was working fine for maybe a few dozen sleep/wake-up cycles. But then the internet connectivity mysteriously disappeared. It has not returned again on multiple additional sleep/wake-ups.

Here is networking info:

Linux localhost.localdomain 2.6.32-358.18.1.el6.x86_64 #1 SMP Wed Aug 28 17:19:38 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
[cloudera@localhost ~]$ ifconfig -a
eth1      Link encap:Ethernet  HWaddr 08:00:27:EB:4E:4D  
          inet addr:10.0.2.15  Bcast:10.0.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:600745 errors:0 dropped:0 overruns:0 frame:0
          TX packets:454956 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:424847635 (405.1 MiB)  TX bytes:46180137 (44.0 MiB)

lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:44851827 errors:0 dropped:0 overruns:0 frame:0
          TX packets:44851827 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:60169754058 (56.0 GiB)  TX bytes:60169754058 (56.0 GiB)

UPDATE After stopping the VM and restarting networking came back up. But .. is there a way to revive the internet connection without a restart?

share|improve this question
    
I have this same issue. Any luck? –  thesmart Aug 13 at 17:51
    
Networking on virtualbox seems to be hit and miss. With an Ubuntu Host - and the same CentOs Guest - I end up doing sudo service network restart pretty often. As mentioned here, on mac the solution is worse. –  javadba Aug 13 at 18:23
    
I ended up running this on Ubuntu guest every time host wifi changes: sudo dhclient -r && sudo dhclient eth0 and also using the bridged adapter. –  thesmart Aug 27 at 23:47
    
@thesmart I did something along the same lines: sudo service network restart –  javadba Aug 28 at 4:27
    
I have the same issue with a centos virtualbox on windows 8. Hey! sudo service network restart works! Since ya didn't make it an answer, ima steal it ; ) (feel free to steal back) –  B T Sep 8 at 18:32

2 Answers 2

Javadba's suggestion of sudo service network restart seems to do the trick. If this doesn't work, it has worked for me to restart the guest machine.

share|improve this answer
up vote 0 down vote accepted

The reliable way to obtain network availability without a restart is:

sudo service network restart
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.