复制虚拟机centos系统配置网卡后提示异常

来源:互联网 发布:美国护理学硕士知乎 编辑:程序博客网 时间:2024/06/07 01:26

异常信息如下:

Bringing up interface eth0:  Device eth0 does not seem to be present, delaying initialization.      [FAILED]

今天在本机的虚拟机复制一个操作系统centos,在启动后配置IP及mac地址,发现mac跟之前的操作系统一样。重启服务时出现已上异常

CentOS Device does not seem to be present 
故障现象:
[root@localhost~]# service network restart 
Shutting down loopback insterface:                                                                                                        [  
OK   ] 
Bringing up loopback insterface:                                                                                                             [  OK   ]
Bringing up interface eth0:  Device eth0 does not seem to be present,delaying initialization.                [FAILED
解决办法如下:
1.修改Centos虚拟机克隆机的HWADDR为ifconfig -a的MAC地址 
  HWADDR="00:0C:29:90:A7:23" 
2.然后再做以下操作 
[root@localhost~]# rm -rf /etc/udev/rules.d/70-persistent-net.rules 
[root@localhost~]# reboot 
……………… 
[root@localhost~]# service network restart 
Shutting down loopback insterface:                                                                                                        [   OK   ] 
Bringing up loopback insterface:                                                                                                             [  OK   ] 
Bringing up interface eth0:                                                                                                                      [  OK   ] 
[root@localhost~]#

0 0