Fix virtualbox networking after cloning or moving the linux guest virtual hdd

vim /etc/udev/rules.d/70-persistent-net.rules

Remove the first line (which should say eth0 at the end)
Rename “eth1” in the second line (now the first, and probably only line) to “eth0”
Save
Reboot

cp /etc/udev/rules.d/70-persistent-net.rules /var/70-persistent-net.rules.cpy
sed -i '/SUBSYSTEM.*"eth0"/d' /etc/udev/rules.d/70-persistent-net.rules
sed -i 's/eth1/eth0/g' /etc/udev/rules.d/70-persistent-net.rules

Leave a Reply

Your email address will not be published. Required fields are marked *