VM下的linux无法启动网卡 bringing up interface eth0 device eth0 does not seem to be present delaying initialization 网卡丢失解决

在虚拟机里面装的CENTOS 由于复制了多份 
其中有个提示了错误
日志表现:
    系统启动日志:
    Bringing up interface eth0: pcnet32 device eth0 does not seepresent, delaying initialization.
    ifconfig输出:
    输出结果未发现设备interface eth0

    这种现象的最终原因是VM在启动copy的centos时会询问你是moved or copy,这时你选择copy。于是VM认为客观上(现实中)又多了一张(至少)网卡,甚至这个copy centos和原来的centos就在同一个物理环境里运行。为了区分,所以在物理层面上让copy 的centos使用另一张网卡(eth1:如果原来的是eth0的话),这时在centos里ifconfig就会找不到eth0了。

以上分析适用于 clone 、copy,对于moved没有这方面的问题(moved:和原来的一样,直接使用即可)。
解决方案:
#ifconfig -a
记录下这时的eth1或者是eth其它名 物理地址 XX:XX:XX:XX:XX:XX
#cd /etc/sysconfig/network-scripts
#mv ifcfg-eth0 ifcfg-eth1
#vi ifcfg-eth1
修改eth0 为 eth1
修改物理地址为XX:XX:XX:XX:XX:XX
保存
#service network restart
这时候就可以了