when cloning a new CentOS virtual machine in KVM, the following issues occur:
# Service Network Restart
shutting down loopback insterface: [OK]
Bringing up loopback insterface: [OK]
bringing up interface Eth0:device eth0 does no seem to be present,delaying initialization. [FAILED]
use Ifconfig to see the missing eth0, only lo; ifconfig-a to see more eth1 information.
Workaround 1:
# mv/etc/sysconfig/network-scripts/ifcfg-eth0/etcsysconfig/network-scripts/ifcfg-eth1
Change the MAC address of the eth0 to Eth1 's MAC address, changing its device name to Eth1, and then restarting the network.
Workaround 2:
# RM-RF /etc/udev/rules.d/
70
-persistent-net.rules
# reboot
总之,
只要保证/etc/sysconfig/network-scripts/ifcfg-eth0 与/etc/udev/rules.d/70-persistent-net.rules的信息一致即可,即网卡地址与网卡编号一致,这样service network restart 就可以配置成功。
"Device eth0 does not seem to be present" workaround