Problem:
The mac address of the source machine is also copied from the VM cloned by kvm. when the clone machine is started, the NIC cannot be activated. the following message is displayed:
Device eth0 does not seem to be present, delaying initialization
Cause: because the mac address is repeated, the clone machine renamed eth0 to eth1.
Solution:
1. list recognized current NICS
# Ls/sys/class/net
Eth1 lo
2. delete the first SUBSYSTEM and change the NAME = "eth1" of the original second SUBSYSTEM to NAME = "eth0"
# Vim/etc/udev/rules. d/70-persistent-net.rules
# This file was automatically generated by the/lib/udev/write_net_rules
# Program, run by the persistent-net-generator.rules rules file.
#
# You can modify it, as long as you keep each rule on a single
# Line, and change only the value of the NAME = key.
3. modify the mac address of the eth0 configuration file HWADDR to the mac address in the modified 70-persistent-net.rules.
# Vim/etc/sysconfig/network-scripts/ifcfg-eth0
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.