“Device eth0 does not seem to be present”解决办法
在KVM中克隆出新的CentOS虚拟机时,出现如下问题:
# 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]
用ifconfig查看发现缺少eth0,只有lo;用ifconfig -a查看发现多出了eth1的信息。
解决办法1:
# mv /etc/sysconfig/network-scripts/ifcfg-eth0 /etcsysconfig/network-scripts/ifcfg-eth1
将eth0的mac地址改为eth1的mac地址,同时改变其DEVICE名称为eth1,再重启网络即可。
解决办法2:
# rm -rf /etc/udev/rules.d/
70
-persistent-net.rules
# reboot
总之,只要保证/etc/sysconfig/network-scripts/ifcfg-eth0 与/etc/udev/rules.d/70-persistent-net.rules的信息一致即可,即网卡地址与网卡编号一致,这样service network restart 就可以配置成功。
(参考:http://www.cnblogs.com/fbwfbi/archive/2013/04/29/3050907.html)