Posts Tagged vbox no network
Network Doesn’t Work on a Linux Guest Virtual Machine After Switching Hosts
Posted by Randy in Linux Stuff, Open Source, Operating Systems on January 4, 2014
I've ran into this problem a few times and I thought I'd make a note of it here on the blog. It's a simple fix. The scenario is that you have just started your VM from a different host OS environment than it was running in previously. This problem is specific to a Linux guest using the networking service to manage networking. You may also not notice this issue if you are using DHCP. I'm not sure. My addresses are static, so I'm specifying the network device in the configuration. You may find that the network doesn't start properly and that the boot up sequence stalls waiting on it. This is because the MAC address for the virtual network device has changed and udev is trying to use the old one. So if your old network device was eth0, it's not long usable and the new one at eth1 is your new virtual network device.
That being said, there are two fixes. One is very simple and the other is only slightly less simple but a better approach. First you can just change your network config to use eth1 instead of eth0. That'll work but if you switch hosts a few times you'll accumulate quite a few unusable network devices and you'll by using eth9 before long.
The better solution is to edit:
/etc/udev/rules.d/70-persistent-net.rules
Remove all lines which contain SUBSYSTEM="net", which will probably be all the non-commented lines in the file.
Reboot the machine and when it comes back up udev will see the single network device and add it back as eth0.
switched vm host now no network, vbox, vbox no network, virtual machine, virtualbox
-
-
- Apple (8)
- Applications (36)
- Boring Stuff (7)
- Cool Videos (2)
- DIY (1)
- Free Stuff (4)
- Funny Pics (3)
- Games (4)
- Good Deals (6)
- Hardware (18)
- Health (1)
- Home Theater (2)
- Internet (28)
- Internet Money (8)
- Movies (5)
- Music (4)
- Networking (12)
- Operating Systems (49)
- Pipe Smoking (1)
- Programming (59)
- Reviews (5)
- Science (2)
- Security (2)
- SEO (4)
- Server Stuff (1)
- Stocks (3)
- technology (40)
- Tips (12)
- TV (3)
- Uncategorized (13)
-
Blogroll
Favorite Sites
-
Archives
- June 2017 (1)
- July 2016 (1)
- May 2016 (1)
- November 2015 (3)
- October 2015 (3)
- March 2015 (1)
- January 2014 (1)
- August 2013 (3)
- July 2013 (3)
- June 2013 (2)
- April 2013 (2)
- January 2013 (1)
- November 2012 (1)
- September 2012 (2)
- May 2012 (2)
- April 2012 (6)
- March 2012 (11)
- February 2012 (4)
- January 2012 (26)
- December 2011 (6)
- November 2011 (3)
- September 2011 (1)
- May 2011 (1)
- November 2010 (2)
- October 2010 (1)
- July 2010 (4)
- June 2010 (5)
- May 2010 (1)
- April 2010 (2)
- March 2010 (1)
- January 2010 (3)
- December 2009 (1)
- October 2009 (3)
- September 2009 (2)
- August 2009 (2)
- July 2009 (5)
- June 2009 (5)
- May 2009 (10)
- April 2009 (12)
- March 2009 (22)
-
Meta