After update of VirtualBox virtual linux cannot see eth0 or eth1 network card devices. No connection, how to fix it?

 I have a local network with my virtual machine. I have updated VirtualBox and my network with virtual linux crashed. No network devices were found, nothing helped. The problem was with old configuration of network card's MAC addresses.









If you have network problems in your virtual machine after updating virtual box software, try these steps:

1. delete old mac configuration, it will be remade automatically by linux during next boot up:


sudo -s
rm -f /etc/udev/rules.d/70-persistent-net.rules

2. reboot your virtual machine

reboot

3. update your network interfaces configuration.

I have ubuntu installed and my configuration is here:

sudo -s nano /etc/network/interfaces

my configuration is:

auto lo
iface lo inet loopback


auto eth0

iface eth0 inet dhcp

auto eth1

iface eth1 inet static
address 192.168.128.97
netmask 255.255.255.0


4. reboot your virtual machine

reboot

That's it! It helped me, hope helps you too ;)


Ask questions about any IT topic in comments!

1 comment:

  1. to map some place from ubuntu (VM) to windows as network drive use this info:

    You'll probably want samba not samba4, but it should work fine anyway; run 'smbpasswd -a USERNAME' and enter a password for your user. Samba keeps it's own password store that can be synced with the linux password (and last I checked the default in ubuntu is to turn on syncing) but you have to set the initial password with 'smbpasswd -a'.

    Also, edit /etc/samba/smb.conf and uncomment the homes section (should be near the bottom). Leave the other settings to default.

    It should look something like:

    [home] browseable = no valid user = %s

    (that is off the top of my head; probably best to not just copy paste in to your config, but those are the 2 directives samba will usually need for homes)


    http://superuser.com/questions/546098/how-to-mount-ubuntu-server-to-windows-network-drive

    ReplyDelete

You can ask IT questions in comments!