Solution to RHEL6 VM clone network problems

Source: Internet
Author: User
Tags custom name

RHEL6 Virtual Machine clone network problem solution environment: Virtualbox + RHEL 6 x64 Virtual Machine cloned with VirtualBox vboxmanager, operating system RHEL6, after startup, it is found that the network card is unavailable. Restart the network service and report the following error: Bringing up interface eth0: Device eth0 does not seem to be present, delaying initialization. [FAILED] similar things happen in RHEL5, because the MAC of the VM will be re-generated, but the MAC of the operating system is written in ifcfg-ethx, resulting in inconsistency, therefore, the network interface cannot be started. In RHEL5, you can use kudzu or comment out the MAC field of the NIC configuration file to solve this problem. However, in RHEL6, kudzu has been replaced by the hal service. Although lspci can recognize the NIC normally, it cannot start the service using/etc/init. d/network restart. Try to annotate the mac field of the ifcfg-eth0 or report an error. Check the udev rules and find the problem. [Root @ Oracle ~] # Cat/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. # net device () (custom name provided by external tool) SUBSYSTEM = "net", ACTION = "add", DRIVERS = "? * ", ATTR {address} =" 08: 00: 27: 16: 31: 11 ", ATTR {type} =" 1 ", KERNEL = "eth *", NAME = "eth0" # net device () SUBSYSTEM = "net", ACTION = "add", DRIVERS = "? * ", ATTR {address} =" 08: 00: 27: 32: 66: 63 ", ATTR {type} =" 1 ", KERNEL = "eth *", NAME = "eth1" [root @ Oracle ~] # In the original UDEV, the cloned MAC is treated as the eth0 MAC of the current virtual machine, and the re-generated 08: 00: 27: 32: 66: 63 is the MAC of eth1. To solve this problem, you only need to delete the old UDEV configuration and change it to [root @ Oracle ~]. # Cat/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. # net device () (custom name provided by external tool) SUBSYSTEM = "net", ACTION = "add", DRIVERS = "? * ", ATTR {address} =" 08: 00: 27: 32: 66: 63 ", ATTR {type} =" 1 ", KERNEL = "eth *", NAME = "eth0" restart the network service, everything is OK [root @ Oracle ~] #/Etc/init. d/network restartShutting down interface eth0: [OK] Shutting down loopback interface: [OK] Bringing up loopback interface: [OK] Bringing up interface eth0: [OK] [root @ Oracle ~] # Ifconfig eth0eth0 Link encap: Ethernet HWaddr 08: 00: 27: 32: 66: 63 inet addr: 172.16.100.3 Bcast: Invalid Mask: 255.255.255.0 inet6 addr: fe80: a00: 27ff: fe32: 6663/64 Scope: Link up broadcast running multicast mtu: 1500 Metric: 1 RX packets: 206 errors: 0 dropped: 0 overruns: 0 frame: 0 TX packets: 203 errors: 0 dropped: 0 overruns: 0 carrier: 0 collisions: 0 txqueuelen: 1000 RX bytes: 21157 (20.6 KiB) TX bytes: 2 4515 (23.9 KiB) Virtualbox has this problem, so should VMWARE clone virtual machines.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.