Virtual machine under the cloning of Linux virtual machine causes the cloning of the Internet problem!

Source: Internet
Author: User

Virtual machine under the cloning of Linux virtual machine causes the cloning of the Internet problem!

because the virtual machine cloning causes the system to retain the original NIC information and the clone of the new virtual network card is duplicated, because the system configuration file only recognizes eth0 this virtual network card, and ifconfig-a view of the information shown above the virtual network card is eth1, and cloning the virtual network card on the body eth0 ( /etc/sysconfig/networkscripts/ifcfg-eth0) settings are the parent's virtual machine settings, so the system does not match the network card information, so that the Internet is not available.


Workaround:


1. Modify System files:

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

Note The first network card information (on one line), the second net card information in the eth1 changed to eth0, and remember to change the value of the network card attr (":" Good Separation).

2. Modify the virtual network card information

VI / Etc/sysconfig/networkscripts/ifcfg-eth0

Modify the values in the HWADDR to be the same as in the system information.

3. Restart the virtual machine.

Reboot

4, the successful completion of the intended purpose! Check out the network

Ifconfig


This article is from the "Learning and Exchange" blog, please be sure to keep this source http://chenhaolinux.blog.51cto.com/9609922/1712445

Virtual machine under the cloning of Linux virtual machine causes the cloning of the Internet problem!

Related Article

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.