虚拟机中安装了centos,但是我拷贝了一份想两个一起用。网卡总是起不来,报了这么一个错误:
Device eth0 does not seem to be present, delaying initialization
意思看懂了,原因也能猜个差不多,大概就是因为拷贝虚拟机拷贝的网卡信息是一样的,解决我就不会了,google了一下。
我是这样解决的:
1、将/etc/udev/rules.d/70-persistent-net.rules 改名字,重启虚拟机。
此时机器自己重新生成/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.