clone a centos vm, there is no ethX device. To fix the problem,following the steps
1.# rm -f /etc/udev/rules.d/70-persistent-net.rules
2.# vim /etc/sysconfig/networking/devices/ifcfg-ethx
//the obove file doesn't exist in my system
/etc/sysconfig/network-scripts/ifcfg-ethx
update MAC and UUID //or delete them
3.#reboot
4.#service network restart
Note:there maybe another situation that the ifcf-eth1 is existed but the device
is eth0, so change ifcfg-eth1 ---> ifcfg-eth0, or othewise.
see:
http://blog.williamjamieson.me/2012/09/21/fix-eth0-network-interface-when-cloning-redhat-centos-or-scientific-virtual-machines-using-oracle-virtualbox-or-vmware/
http://blog.51yip.com/linux/1120.html
本文详细介绍了如何解决在克隆CentOS虚拟机时遇到的网络设备不存在的问题,包括删除持久化网络规则、更新MAC地址和UUID、重启系统以及可能的设备名称调整步骤。
524

被折叠的 条评论
为什么被折叠?



