It needs to be modified configuration after VMware clone of centos

1. First, VMware by copying the current state of the virtual machine or a virtual machine snapshot of the form, select a complete copy of the file for cloning.

2. After opening the cloned VM, and the need to modify the host name corresponding hosts table

2.1 modify the hostname

Enter vi / etc / sysconfig / network, you want to modify the HOSTNAME = hostname

 

 

 

2.2 modifies the hosts table

Enter vi / etc / hosts, add your own ip

 

 

 

3. Change your ip address and modify the network card address

3.1 modify ip

Input vi / etc / sysconfig / network-scripts / ifcfg-eth0

Modify ip, remove the hardware address, subnet mask and gateway without having to modify

 

 

 

3.2 modify the network card

Enter vi /etc/udev/rules.d/70-presistent-net.rules

Eth-0 information using a # comment, while the eth-1 into eth-0

 

 

 

Save and exit, enter reboot reboot, and restart the network services

Enter service network restart

ping look to see whether China Unicom

 

 

 

ok, we're done.

 


Original link: https: //blog.csdn.net/a247027417/article/details/81070293

Guess you like

Origin www.cnblogs.com/isme-zjh/p/11571042.html