VirtualBox copying a previous virtual hard disk file generates a new virtual machine when it is started and cannot find the NIC

Source: Internet
Author: User

VirtualBox Copying a previous virtual hard disk file when a new virtual machine is generated the normal NIC does not work after restarting

error (centos6.x) when using ifup eth0 or service network restart

650) this.width=650; "Width=" 554 "height=" 126 "src=" http://s5.51cto.com/wyfs02/M01/85/9D/wKiom1eqBZDx0g-_ Aabnyh8c5tq336.jpg "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px Solid #ddd; "alt=" Spacer.gif "title=" Vbox1.jpg "/>

Reason:

The new virtual hardware configuration differs from the hardware configuration recorded in the old virtual hard disk file, even if all hardware choices are inconsistent with the previous configuration information (such as the MAC address of the NIC)

Workaround:

Enter the/ETC/UDEV/RULES.D directory

650) this.width=650; "Width=" 554 "height=" 148 "src=" http://s5.51cto.com/wyfs02/M01/85/9C/ Wkiol1eqbacjcg04aaceunsfqca353.jpg "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "title=" Vbox2.jpg "/>

Modify The 70-persistent-net.rules file to

650) this.width=650; "Width=" 554 "height=" 173 "src=" http://s3.51cto.com/wyfs02/M02/85/9D/ Wkiom1eqba7avyaoaacwoelrcfw091.jpg "style=" Background:url ("/e/u261/lang/zh-cn/images/localimage.png") no-repeat center;border:1px solid #ddd; "alt=" Spacer.gif "title=" Vbox3.jpg "/>

There are two network cards recorded in the file, if only one can be deleted; From this file you can see that you only need to modify the network card Mac Address (the MAC address of the re-configured NIC must be different from the previous one), and the machine needs to be restarted after saving (restarting the service is not possible).

Of course, you can delete this file, and then start the system and rebuild it from the system.


This article is from the "All the Way" blog, please be sure to keep this source http://air009.blog.51cto.com/654332/1836314

VirtualBox copying a previous virtual hard disk file generates a new virtual machine when it is started and cannot find the NIC

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.