RHEL6.3 is installed in the testing environment of the company. After cloning the virtual machine, the cloned Virtual Machine Nic cannot start. The following error is reported: [root @ localhostDesktop] # servicenetworkrestartShuttingdownloopbackinterface: & n
RHEL6.3 is installed in the testing environment of the company. After cloning the virtual machine, the cloned Virtual Machine Nic cannot start. The following error is reported:
[Root @ localhost Desktop] # service network restart
Shutting down loopback interface: [OK]
Bringing up loopback interface: [OK]
Bringing up interface eth0: Error: No suitable device found: no device found for connection 'System eth0 '.
[FAILED]
When you execute the ifconfig command, you will find that the configuration file of the eth1 Nic is/etc/sysconfig/network-scripts/ifcfg-eth0.
[Root @ localhost network-scripts] # ifconfig | grep addr
Eth1 Link encap: Ethernet HWaddr 00: 0c: 29: f4: 95: e3
Inet6 addr: fe80: 20c: 29ff: fe5c: 65b7/64 Scope: Link
Interrupt: 19 Base address: 0x2024
Inet addr: 127.0.0.1 Mask: 255.0.0.0
Inet6 addr: 1/128 Scope: Host
[Root @ localhost network-scripts] # ls
Ifcfg-eth0 ifdown-isdn ifup-aliases ifup-plusb init. ipv6-global
Ifcfg-lo ifdown-post ifup-bnep ifup-post net. hotplug
Ifdown-ppp ifup-eth ifup-ppp network-functions
Ifdown-bnep ifdown-routes ifup-ippp ifup-to-date-routes network-functions-ipv6
Ifdown-eth ifdown-sit ifup-ipv6 ifup-sit
Ifdown-ippp ifdown-tunnel ifup-isdn ifup-tunnel
Ifdown-ipv6 ifup-plip ifup-wireless
[Root @ localhost network-scripts] #
This problem occurs because the MAC address of the virtual network card allocated to the operating system by the virtual machine is different. The MAC address of the network adapter of the first system is recorded in/etc/udev/rules. d/70-persistent-net.rules and named eth0. The MAC address of the NIC of the newly cloned system is also recorded in this file, which is the same as that of the previous system, so there is a conflict.
You can check the content of the 70-persistent-net.rules file of the two hosts.
First system:
[Root @ localhost rules. d] # cat 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.
# PCI device 0x1022: 0x2000 (pcnet32)
SUBSYSTEM = "net", ACTION = "add", DRIVERS = "? * ", ATTR {address} =" 00: 0c: 29: f4: 95: e3 ", ATTR {type} =" 1 ", KERNEL = "eth *", NAME = "eth0"
Cloned system:
[Root @ localhost rules. d] # cat 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.
# PCI device 0x1022: 0x2000 (pcnet32)
SUBSYSTEM = "net", ACTION = "add", DRIVERS = "? * ", ATTR {address} =" 00: 0c: 29: f4: 95: e3 ", ATTR {type} =" 1 ", KERNEL = "eth *", NAME = "eth1"