zoukankan      html  css  js  c++  java
  • Centos和redhat6.0后关于虚拟机克隆后无法启用网卡问题

    Centos和redhat6.0后关于虚拟机克隆后无法启用网卡问题

    在redhat和centos6.0以后的版本,如果我们用虚拟机装过一个系统后想克隆一个虚拟机用的话,我们会发现clone虚拟机网卡起不来,报一下错误:
    Error: No suitable device found: no device found for connection 'System eth0'.或者
    Bringing up interface eth0:  Device eth0 does not seem to be present, delaying initialization.
    同时我们执行ifconfig命令的时候,会发现显示eth1网卡网卡配置文件却为/etc/sysconfig/network-scripts/ifcfg-eth0。
    解决方法:
    centos—>删除这个 /etc/udev/rules.d/70-persistent-net.rules,重启后把这个文件里NAME="eth1"的eth1改成 eth0,同时也要修改ATTR{address}里的mac地址和/etc/sysconfig/network-scripts/ifcfg- eth0文件mac地址一致。
    redhat —>redhat有点麻烦,redhat需要把/etc/sysconfig/network-scripts/ifcfg-eth0这个文件重命 名为/etc/sysconfig/network-scripts/ifcfg-eth1,同时修改文件里面的DEVICE=eth0为 DEVICE=eth1,然后把/etc/udev/rules.d/70-persistent-net.rules
    文件中NAME="eth0"的删掉,重启网络服务器正常,只不过没有eth0,而是eth1.如果想改成eth0需要重启后把上述三个位置都修改后再重启。
  • 相关阅读:
    split a string into an array through comma
    正则表达式替换日期
    在Ajax1.0中调用页面CS文件中的方法
    半透明的div对话框
    foreach 的自动转化类型
    ViewStateAutoManager
    using ISerializable to control serialization and deserialization
    div with separated html template
    2018.9.9作业
    CSS单位
  • 原文地址:https://www.cnblogs.com/kyli816/p/3469125.html
Copyright © 2011-2022 走看看