VMware clone Centos6.4 virtual machine NIC does not boot problem

Source: Internet
Author: User
Tags uuid linux

Quick Treatment Method:

Cat/etc/sysconfig/network-scripts/ifcfg-eth0

Sed-i '/uuid/d '/etc/sysconfig/network-scripts/ifcfg-eth0

Sed-i '/hwaddr/d '/etc/sysconfig/network-scripts/ifcfg-eth0

>/etc/udev/rules.d/70-persistent-net.rules

Reboot

===========================================================

VMware clone Centos6.4 virtual machine NIC does not boot problem

In the old boy's teaching process, found that students have encountered the following problems and can not be solved.

Quickly create a Linux virtual machine version of CentOS 6.4 through the Vmware8 full cloning feature.

Post-creation symptom: Use ifconfig after startup, find no IP address, only loopback address is 127.0.0.1,

The MAC address and the host name are the same as the source host (the source host has a manually configured IP).

It doesn't help to execute the following commands anyway:

/etc/init.d/network restart

Ifup eth0

Solution:

1. Edit Eth0 Profile: Vi/etc/sysconfig/network-scripts/ifcfg-eth0, delete the line of hwaddr address and UUID as follows:

hwaddr=00:0c:29:08:28:9f

Uuid=cee39dbb-6a10-4425-9daf-768b6e79a9c9

Hint: Of course you can also modify according to the actual hwaddr and UUID without deleting it. See

/etc/udev/rules.d/70-persistent-net.rules

Eth0 Nic File modified:

[Root@oldboy ~]# Cat/etc/sysconfig/network-scripts/ifcfg-eth0

Device=eth0

Type=ethernet

Onboot=yes

Nm_controlled=yes

Bootproto=none

ipaddr=10.0.0.27

netmask=255.255.255.0

dns2=8.8.8.8

gateway=10.0.0.254

dns1=10.0.0.254

Ipv6init=no

Userctl=no

2. If necessary, empty the following documents:

>/etc/udev/rules.d/70-persistent-net.rules.

Hint: Machine name can not change

3. Reboot the system: Reboot or reboot outside the VM.

4. Reason to guess: VM Cloning to protect the source machine and clone machine to start Network Configuration address conflict protection policy.

This article is from the "Old boy Linux Training" blog, please be sure to keep this source http://oldboy.blog.51cto.com/2561410/1363853

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.