克隆虚拟机导致的网卡出错,service network restart失败
1.如果在克隆之前没有删除 /etc/udev/rules.d/70-persistent-net.rules文件,就会出现service network restart失败
方法:打开vim /etc/udev/rules.d/70-persistent-net.rules
复制文件中的00:0c:29:4c:9f:84
然后打开vim /etc/sysconfig/network-scripts/ifcfg-eth0
修改HWADDR=00:0c:29:4c:9f:84
同时要注意DEVICE=eth1要与 /etc/udev/rules.d/70-persistent-net.rules 中的eth对应,还有 /etc/sysconfig/network-scripts/ifcfg-eth0文件的名,不同就要修改
然后service network restart就行