Virtual machine under the cloning of Linux virtual machine causes the cloning of the Internet problem!
because the virtual machine cloning causes the system to retain the original NIC information and the clone of the new virtual network card is duplicated, because the system configuration file only recognizes eth0 this virtual network card, and ifconfig-a view of the information shown above the virtual network card is eth1, and cloning the virtual network card on the body eth0 ( /etc/sysconfig/networkscripts/ifcfg-eth0) settings are the parent's virtual machine settings, so the system does not match the network card information, so that the Internet is not available.
Workaround:
1. Modify System files:
Vi/etc/udev/rules.d/70-persistent-net.rules
Note The first network card information (on one line), the second net card information in the eth1 changed to eth0, and remember to change the value of the network card attr (":" Good Separation).
2. Modify the virtual network card information
VI / Etc/sysconfig/networkscripts/ifcfg-eth0
Modify the values in the HWADDR to be the same as in the system information.
3. Restart the virtual machine.
Reboot
4, the successful completion of the intended purpose! Check out the network
Ifconfig
This article is from the "Learning and Exchange" blog, please be sure to keep this source http://chenhaolinux.blog.51cto.com/9609922/1712445
Virtual machine under the cloning of Linux virtual machine causes the cloning of the Internet problem!