VMware Workstation virtual machine after cloning Linux NIC does not start workaround

Source: Internet
Author: User
Tags get ip

VMware Workstation virtual machine after cloning Linux NIC does not start workaround


Method one applies to Bootproto=auto auto Get IP (static IP also line)

After cloning, the VMware virtual machine discovers that the original eth0 of the cloned host will be gone, instead there will be a new Mac Nic Eth1. This article solves how to reasonably change the NIC to eth0.

Ifconfig

Nmcli

Vim

Method/Step

1

Ifconfig eth1 determine the MAC address of the new network card.

Nmcli con determine the UUID of the new NIC

2

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

Delete the relevant information of the original eth0 and change the name of Eth1 to Eth0

3

Cd/etc/sysconfig/network-scripts

Vim Ifcfg-eth0

Hwaddr= now the actual Mac

Uuid= now the actual UUID

4

Restart the virtual machine after the above processing is done!


#########################################################

Method two applies to Bootproto=none (or static)

1. Delete Ifcfg-eth0 in Hwaddr,uuid

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

echo ">/etc/udev/rules.d/70-persistent-net.rules" >>/etc/rc.local

3.reboot


VMware Workstation virtual machine after cloning Linux NIC does not start workaround

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.