克隆完虚拟机,网卡肯定启动不起来。 会报错 service network restartShutting down loopback insterface:
克隆完虚拟机,网卡肯定启动不起来。
会报错
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]
处理起来很简单,
修改,/etc/udev/rules.d/70-persistent-net.rules
# This file was automatically generated by the /lib/udev/write_net_rules# program, run by the persistent-net-generator.rules rules file.## You can modify it, as long as you keep each rule on a single# line, and change only the value of the NAME= key.# PCI device 0x8086:0x100f (e1000)#SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:f6:c7:5e", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0"# PCI device 0x8086:0x100f (e1000)SUBSYSTEM=="net", ACTION=="add", DRIVERS=="?*", ATTR{address}=="00:0c:29:4b:e1:f5", ATTR{type}=="1", KERNEL=="eth*", NAME="eth0" NAME="eth0"
注意,这个配置文件可能有很多条目,eth0,eth1,eth2,等等,我们要做到很简单:
1.留下ethN(N为最大的那个),其他全部注释。
2.将ethN修改成eth0
3.重启系统,注意不是重启服务
然后就ok了。