VMware cloned virtual machine, boot NIC error after boot
Failure phenomena:
[[email protected] ~]# service network restartShutting down loopback insterface: [ OK ]Bringing up loopback insterface: [ OK ]Bringing up interface eth0: Device eth0 does not seem to be present,delaying initialization. [FAILED]
This time can be entered ifconfig-a can see no eth0 network card device name, but there is eth1
Workaround 1:
[[email protected] ~]# mv /etc/sysconfig/network-scripts/ifcfg-eth0? /etc/sysconfig/network-scripts/ifcfg-eth1 [[email protected] ~]# vim?/etc/sysconfig/network-scripts/ifcfg-eth1 修改DEVICE="eth0"? 为DEVICE="eth1" 然后重启启动网卡尝试下
Workaround 2:
[[email protected] ~]# vim /etc/udev/rules.d/70-persistent-net.rules……\# PCI device 0x8086:0x100f (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:e4:54:4e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth1"\# PCI device 0x8086:0x100f (e1000) SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:e4:54:58", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"将上面红色字体中的eth0改为eth1,eth1改为eth0; reboot重启
Workaround 3:
[[email protected] ~]# rm -rf /etc/udev/rules.d/70-persistent-net.rules[[email protected] ~]# reboot ………………
VMware cloned virtual machine, boot NIC error after boot