An environment:
Ubuntu v8.04
VirtualBox _v4.3
Two-action
1 Create a new virtual machine as normal, then select Use old Ubuntu virtual machine in select Virtual hard disk interface
2 Open Virtual Machine delete/etc/udev/rules.d/files containing net below This example is 70-persistent-net.rules
3 Open/etc/network/interfaces, add the following statement
Auto Eth0
Iface eth0 inet DHCP
And then save the close
4 shut down the virtual machine, then set the virtual machine's network to "Network address Translation (NAT)", after saving OK, start the virtual machine, normal, use ifconfig will see the virtual machine has got IP address
Explanation of the three operations
1 70-persistent-net.rules inside is to change the virtual machine to save the network card information, the virtual machine every replacement, will add a network card, the interface name will be on the basis of the original network card plus 1 eg:eth1. Deleted and restarted, stand in the perspective of the virtual machine is added a new network card, the name of the network card is named Eth0
2/etc/network/interfaces is the setting information of the network card that is currently used, DHCP is the dynamic acquisition
VirtualBox the network card is not found when opening the old Ubuntu virtual machine image