更换电脑后拷贝之前电脑的虚拟机centos 文件,打开虚拟机后发现没有网卡etho,重启服务后报错,解决办法见下:
1、重启网卡后报错
Bringing up interface eth0:Divice eth0 does not seem to be present,delaying initialization 【FAILED】
2、进入网卡配置文件,删除UUID和MAC地址
vi /etc/sysconfig/network-scripts/ifcfg-eth0
![](https://s1.51cto.com/images/blog/201907/19/860823e9807778aa67a759ad432328f1.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
3、删除网卡信息文件
![](https://s1.51cto.com/images/blog/201907/19/7bb2f3139bf20848429e68db6d085391.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
4、重启系统再重启网卡就可以了
![](https://s1.51cto.com/images/blog/201907/19/2d22e1e205d9eef0a02836b09085e1eb.jpg?x-oss-process=image/watermark,size_16,text_QDUxQ1RP5Y2a5a6i,color_FFFFFF,t_100,g_se,x_10,y_10,shadow_90,type_ZmFuZ3poZW5naGVpdGk=)
原文地址:https://blog.51cto.com/422621/2421797