1. What's the problem (what)
In the new VirtualBox virtual machine to hang on the virtual hard disk, when the boot, found that the NIC Eth0, in the input ifconfig–a, there is no ethnet information, and input eth0 down, prompted me no device Found (device not found), I checked the Ethernet configuration of VMware, is still the NAT network settings, and I was the same as the original
2. How to Solve (how)
Recall that when the boot VirtualBox, the system prompted my Ubuntu file is moved (the location has been changed), let me confirm whether it is moved or copy, I chose the default (copy)
There are various solutions mentioned, I finally chose Sudo rm/etc/udev/rules.d/70-persistent-net.rules, after executing the command, restart Ubuntu (sudo reboot), and then Ifconfig, An IP address appears and the problem is resolved
3. Why does this error occur, and what is the reason for doing so (why?)
Why this problem arises, but also from the UUID (UUID refers to the number generated on a machine, it guarantees that all machines in the same time and space are unique. Usually the platform provides the API to generate the UUID, and the virtual machine will also have a UUID, and the UUID is unique.
The UUID of the virtual machine is generally related to the location of the virtual machine configuration file and the physical host. When we do a mobile operation on a virtual machine system, we do not need to create a new UUID. When we copy a virtual machine, we should choose to create a new UUID to guarantee the uniqueness of this virtual machine.
And when I copied it, the VM will naturally create a new UUID for me, and some new Linux versions bind the Ethernet to the MAC address, and when the new UUID is established, the MAC address is changed. However, the configuration that is loaded by the eth0 device does not match the MAC address that reads the default configuration.
Another solution: Go to/etc/sysconfig/network or/etc/sysconfig/network-scripts and edit the Eth0 profile. Compare MAC addresses in config file with input ifconfig output MAC address, if both are inconsistent, unify the MAC address for ifconfig output and restart
The reason for sudo rm/etc/udev/rules.d/70-persistent-net.rules to succeed:
The contents of the file:
- # This file is automatically generated by the/lib/udev/write_net_rules
- # Program,run by the Persistent-net-generator.rules rules file.
- #
- # You can modify It,as long as a Keepeachruleona single
- # Line,andchange only the value of the Name=key.
- # PCI Device 0x1022:0x2000 (Pcnet32)
- subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "08:00:27:ae:14:85", attr{type}== "1", kernel== "eth*" , name= "Eth0"
- # PCI Device 0x1022:0x2000 (Pcnet32)
- subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "08:00:27:b7:46:db", attr{type}== "1", kernel== "eth*" , name= "Eth1"
- # PCI Device 0x1022:0x2000 (Pcnet32)
- subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "08:00:27:be:69:6a", attr{type}== "1", kernel== "eth*" , name= "Eth2"
- # PCI Device 0x1022:0x2000 (Pcnet32)
- subsystem== "NET", action== "Add", drivers== "? *", attr{address}== "08:00:27:87:12:a0", attr{type}== "1", kernel== "eth*" , name= "Eth3"
Remove this/etc/udev/rules.d/70-persistent-net.rules, reboot, Nic Eth0 successfully start, and regenerate/etc/udev/rules.d/70-persistent-net.rules file
Reproduced in: Http://hi.baidu.com/yss1983/item/1a5fadb8c098f8eb4ec7fd65 Bo instrument Business Gas
[Turn] Linux under Mobile VirtualBox virtual hard disk loss eth0