edit ech0:解决 Error:No suitable device found: no device found for connection "System eth0"
2017-10-04 18:00
423 查看
解决使用VMware克隆出来的新虚拟机无法联网的问题
一.背景
我们安装好了一个虚拟机,我想做分布式集群,想模拟几台服务器,这时就想直接复制已经有的安装好的虚拟机,这样比较省事,不要在重复的安装虚拟机并配置JAVA环境,省掉做同样的事情,这时直接复制,这样之前配置的JAVA环境都有了。
二.问题
这时我复制好的虚拟机,启动登陆进去(用户名和密码跟之前那台是一样的),修改好IPADDR,然后网卡重启出现问题?
#service network restart
出现问题:Error:No suitable device found: no device found for connection "System eth0" 如图所示:
#ifup eth0
出现: eth0: unknown interface: No such device 这样的问题,网卡都启动不了,出现问题.
三.解决问题
第一步:我们在界面点击Network Adapter Remove删除网卡,如图所示:
第二步:然后添加一个新的网卡,就是点击add,这时跟前面一台的MAC Address 就不一样,如图所示:
第三步: 重新启动虚拟机,然后进入到/etc/udev/rules.d/目录
#cat 70-persistent-net.rules
里面的信息跟我们Network Adapter的MAC Address地址一样,如图所示:
第四步:进入/etc/sysconfig/network-scripts/目录
#vi ifcfg-eth0
把HWADDR修改成Network Adapter的MAC Address地址一样,如图所示:
第五步:重启网卡,这时就能正常启动,如图所示:
一.背景
我们安装好了一个虚拟机,我想做分布式集群,想模拟几台服务器,这时就想直接复制已经有的安装好的虚拟机,这样比较省事,不要在重复的安装虚拟机并配置JAVA环境,省掉做同样的事情,这时直接复制,这样之前配置的JAVA环境都有了。
二.问题
这时我复制好的虚拟机,启动登陆进去(用户名和密码跟之前那台是一样的),修改好IPADDR,然后网卡重启出现问题?
#service network restart
出现问题:Error:No suitable device found: no device found for connection "System eth0" 如图所示:
#ifup eth0
出现: eth0: unknown interface: No such device 这样的问题,网卡都启动不了,出现问题.
三.解决问题
第一步:我们在界面点击Network Adapter Remove删除网卡,如图所示:
第二步:然后添加一个新的网卡,就是点击add,这时跟前面一台的MAC Address 就不一样,如图所示:
第三步: 重新启动虚拟机,然后进入到/etc/udev/rules.d/目录
#cat 70-persistent-net.rules
里面的信息跟我们Network Adapter的MAC Address地址一样,如图所示:
第四步:进入/etc/sysconfig/network-scripts/目录
#vi ifcfg-eth0
把HWADDR修改成Network Adapter的MAC Address地址一样,如图所示:
第五步:重启网卡,这时就能正常启动,如图所示:
相关文章推荐
- 解决 Error:No suitable device found: no device found for connection "System eth0"
- 解决 Error:No suitable device found: no device found for connection "System eth0"
- Error:No suitable device found: no device found for connection "System eth0"解决方法
- 如何解决虚拟机克隆导致"Bringing up interface eth0: Error: No suitable device found: no device found for connection 'System eth0'."
- 解决 Error:No suitable device found: no device found for connection "System eth0"
- 解决 Error:No suitable device found: no device found for connection "System eth0"
- 解决Error:No suitable device found: no device found for connection "Syst
- 解决 Error:No suitable device found: no device found for connection "System eth0"
- 解决 Error:No suitable device found: no device found for connection "System eth0"
- Error:No suitable device found: no device found for connection "System eth0"
- Error:No suitable device found: no device found for connection "System eth0"
- Error:No suitable device found: no device found for connection "System eth0"
- Error:No suitable device found: no device found for connection "System eth0"
- linux网络设置和虚拟机克隆转移之后Error:No suitable device found:no device found for connection 'System eth0'问题解决
- linux网络设置和虚拟机克隆转移之后Error:No suitable device found:no device found for connection 'System eth0'问题解决
- Error:No suitable device found: no device found for connection "System eth0"
- Error:No suitable device found: no device found for connection "System eth0"
- Error:No suitable device found: no device found for connection "System eth0"
- Error:No suitable device found: no device found for connection "System eth0"
- Error:No suitable device found: no device found for connection "System eth0"