Virtual machine cloning Linux want to use Remote Tools but cannot get IP address

Source: Internet
Author: User
Tags get ip uuid

Tag:oss   rgb   vertica   ext    selection     http   shadow    tool chain     broadcast    

使用虚拟机新建Linux启动Linux系统


Device=eth0

Hwaddr=00:0c:e9:51:c2:51

Type=ethernet

Uuid=df672a61-a87f-45b1-8445-7a304e870f66

Onboot=yes #这是随系统启动而启动的选项

Nm_controlled=no #这是由系统的networkmanager来管理IP地址

Bootproto=static #设置网卡获取IP地址方式 have static DHCP,NONE,BOOTP

ipaddr=192.168.92.128 #添加IP地址

netmask=255.255.255.0#增加子网掩码

broadcast=192.168.0.255#增加广播地址

gateway=192.168.0.1#增加网关地址

Step Two

[Email protected] ~]# ifup eth0


Determining IP information for eth1 ... done.


Enter Command ifconfig

[Email protected] ~]# ifconfig

Eth0 Link encap:ethernet

inet addr:192.168.92.128 bcast:192.168.92.255 mask:255.255.255.0

Now you can see the IP address you can use the Remote tools.

Init 0 shutdown Linux

This machine acts as a matrix


Next use VMware virtual machine cloning note to select: Create a full clone

Cloned Linux is ifup without an IP address and cannot be started, so you cannot use the Remote Tools link

Error message: Device eth0 does not seem to be present, delaying initialization




1.

VI /etc/sysconfig/network-scripts/Ifcfg-eth0

Since the previous MAC address is saved in the Ifcfg-eth0 configuration file, the red part is deleted.

The UUID randomly changes a number.

IPADDR change to the IP you want mine is 192.168.92.129.


2.

mv/etc/udev/rules.d/70-persistent-net.rules    /tmp/Directly delete can also, then init 6 Restart the machine  

Because this file is bound to the network card and MAC address, so change the network card after the MAC address has changed, so it can not start normally, or directly edit the configuration file inside the network card and MAC address modified to correspond, but this much trouble, the direct deletion of restart, it will automatically generate a.

After restarting Linux, enter the Ifconfig command

You will find the IP address and you can now use the remote tool.


Recommend modifying mappings

Recommend modifying host names

The last reboot of the Linux virtual machine will reveal that the hostname becomes cent01.

That's it.


Virtual machine cloning Linux want to use Remote Tools but cannot get IP address

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.