Workaround for eth0 cannot start after VMware virtual machine cloning

Source: Internet
Author: User

This morning, we're going to clone a virtual machine to do the experiment, and after cloning, I found that using

Ifconfig only shows Lo, and no eth0 found

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M01/7A/11/wKiom1ah3Lmx1ONHAAAdI11oeDk683.png "style=" float: none; "title=" 1.png "alt=" Wkiom1ah3lmx1onhaaadi11oedk683.png "/>


Using ifconfig eth0 up

Results: unknown interface:no such device

650) this.width=650; "src=" Http://s4.51cto.com/wyfs02/M02/7A/11/wKiom1ah31bjz4pZAAANy5tOsPo447.png "title=" 111. PNG "alt=" Wkiom1ah31bjz4pzaaany5tospo447.png "/>

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


650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/7A/10/wKioL1ah4KPDxlHOAAAaNciRKDs104.png "title=" 2225. PNG "alt=" Wkiol1ah4kpdxlhoaaaancirkds104.png "/>

Found nothing unusual in the place.

The cloned machine executes the ifconfig command and discovers that the MAC address of the two machines is the same.

650) this.width=650; "src=" Http://s2.51cto.com/wyfs02/M02/7A/12/wKiom1ah4VzQzhCsAABGraDNcoE780.png "title=" MAC address shape with. png "alt=" Wkiom1ah4vzqzhcsaabgradncoe780.png "/>

Then decided to modify the MAC address of eth0, directly edit/etc/sysconfig/network-scripts/ifcfg-eth0 directly modify the Mac

Then use the service network restart

Still fails to start. Tip Bringing up interface Eth0:device Eth0 does isn't seem to be present, Delayin initialization.

650) this.width=650; "src=" Http://s5.51cto.com/wyfs02/M00/7A/10/wKioL1ah3PjQ8iNTAAAl0Euaygo316.png "style=" float: none; "title=" QQ picture 20160122112353.png "alt=" Wkiol1ah3pjq8intaaal0euaygo316.png "/>

Workaround:


Open it


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


650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7A/11/wKioL1ah5_Ojs2dQAAAWp-veEFU184.png "title=" 333333.png "alt=" Wkiol1ah5_ojs2dqaaawp-veefu184.png "/>


Record the MAC address of the eth1, and then edit the/etc/sysconfig/network-scripts/ifcfg-eth0



Change device= "eth0" to Device= "eth1",

Change the hwaddr= "00:0C:29:21:38:B1" to the MAC address above hwaddr= "00:0c:29:43:63:ec"

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/7A/12/wKiom1ah6UXwGQf4AAAaJc0DG_w295.png "title=" Modify Ip.png "alt=" Wkiom1ah6uxwgqf4aaaajc0dg_w295.png "/>

Finally, restart the network


650) this.width=650; "src=" Http://s1.51cto.com/wyfs02/M02/7A/12/wKiom1ah6YbTDdkiAAAYq5JuYIA458.png "title=" Network.png "alt=" Wkiom1ah6ybtddkiaaayq5juyia458.png "/>

Use the ifconfig command to view 650) this.width=650; "Src=" http://s5.51cto.com/wyfs02/M01/7A/12/wKiom1ah6dTADSdXAAAqDKAlTt0965.png "Title=" Ifconfig.png "alt=" Wkiom1ah6dtadsdxaaaqdkaltt0965.png "/>

The virtual machine has been able to obtain the IP properly.

This article is from the "Please give me a knife" blog, please be sure to keep this source http://lulucao2006.blog.51cto.com/5375246/1737691

Workaround for eth0 cannot start after VMware virtual machine cloning

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.