VirtualBox 复制系统后 启动网卡报错不能启动
比如将镜像拷贝到另外一个虚拟机上跑,而没有拷贝对应的设置。这个时候,如果虚拟机里面的是linux系统,就会很傻地提示
eth0: ERROR while getting interface flags: No such device
SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
SIOCSIFBRDADDR: No such device
eth0: ERROR while getting interface flags: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.
然后网卡再起不能。
修改网卡的MAC地址和virtualBox设置里面的MAc 地址一至
vi /etc/sysconfig/network-scripts/ifcfg-eth0
解决办法:
rm -rf /etc/iftab或者/etc/udev/rule.d/70-persistent-net.rules,然后重启
ifup eth0
reboot