在VMware的虚拟机中克隆CentOS,在重启网卡的时候报错:
Shutting down loopback interface: [ OK ]
Bringing up loopback interface: [ OK ]
Bringing up interface eth0: Error: No suitable device found: no device found for connection 'System eth0'.
[FAILED]
原因分析:克隆是将被克隆的系统全部克隆,那么克隆的时候把网卡的MAC地址也克隆了,导致了有两个系统有相同的MAC地址
解决方案:
第一步,打开/etc/udev/rules.d/70-persistent-net.rules
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:8b:24:a5", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"
# PCI device 0x8086:0x100f (e1000)
SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}&