最新消息: 新版网站上线了!!!

解决克隆centos虚拟机后ip配置失败的问题

解决克隆 centos虚拟机后修改克隆后的机器的ip、mac、uuid失败的问题
  1. So here’s how we fix it:

    Remove the kernel’s networking interface rules file so that it can be regenerated

    # rm -f /etc/udev/rules.d/70-persistent-net.rules

     

     

  2.  

    Restart the VM

    # reboot

     

     

  3. UPDATE your interface configuration file

    # vi /etc/sysconfig/network-scripts/ifcfg-eth0 

    Remove the MACADDR entry or update it to the new MACADDR for the interface (listed in this file: /etc/udev/rules.d/70-persistent-net.rules).

    Remove the UUID entry

    Save and exit the file

  4. Restart the networking service 

    # service network restart

转载请注明:谷谷点程序 » 解决克隆centos虚拟机后ip配置失败的问题