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