您的位置:首页 > 运维架构 > Linux

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

2016-03-15 16:50 941 查看
解决克隆 centos虚拟机后修改克隆后的机器的ip、mac、uuid失败的问题

方法/步骤

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

Restart the VM

# reboot

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 entrySave and exit the file

4
Restart the networking service

# service network restart
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  克隆