进行虚拟机克隆后,发现不能联网,网络使用桥接模式联网,
网卡验证 service network restart
报error fetching interface information device not found
查看了两台虚拟机MAC 地址是不一样的,这个是没问题的。
最后google了下error fetching interface information device not found
发现有个地方 vim /etc/udev/rules.d/70-persistent-net.rules 这个文件里
有两行,第一行是原始虚拟机的网卡设置,第二个是克隆出来的机器的网卡设置,把第一行去掉,eth1改成eth0就好了。
改过保存,
reboot,
ping www.baidu.com 可以了。
因为其他地方网络配置的 eth0的原因。