After VMware clones the virtual machine, modify the UUID, MAC address, IP and host name

1. First select the virtual machine to be cloned, right-click Management --> Clone, pay attention to close the virtual machine

2. Modify the MAC address. Generally, after the cloning is completed, the MAC address of the network card of the virtual machine will automatically change. If it does not change automatically, you can manually modify it.

      Select the virtual machine, select Edit Virtual Machine Settings (or right-click Settings), select the network adapter, and click Advanced on the right:

 Click Generate to regenerate the MAC address of the network card

Write the generated MAC address to the /etc/sysconfig/network-scripts/ifcfg-ens33 file

 3. Modify the UUID. The UUID is generally the same after cloning the virtual machine and needs to be modified.

Enter the command uuidgen to write the generated UUID to ifcfg-ens33

 4. Modify the host name

First temporarily modify hostname host1

For permanent modification, you need to modify the files /etc/hosts and /etc/sysconfig/network

####Note that the modification needs to restart the network to take effect###

systemctl  restart  network

Guess you like

Origin blog.csdn.net/weixin_44657888/article/details/130679813