clone a centos vm, there is no ethX device. To fix the problem,following the steps
1.# rm -f /etc/udev/rules.d/70-persistent-net.rules
2.# vim /etc/sysconfig/networking/devices/ifcfg-ethx
//the obove file doesn't exist in my system
/etc/sysconfig/network-scripts/ifcfg-ethx
update MAC and UUID //or delete them
3.#reboot
4.#service network restart
Note:there maybe another situation that the ifcf-eth1 is existed but the device
is eth0, so change ifcfg-eth1 ---> ifcfg-eth0, or othewise.
see:
http://blog.williamjamieson.me/2012/09/21/fix-eth0-network-interface-when-cloning-redhat-centos-or-scientific-virtual-machines-using-oracle-virtualbox-or-vmware/
http://blog.51yip.com/linux/1120.html