Background: sometimes we use multiple virtual machines. Re-installation takes a lot of time. at this time, we can quickly clone the identical system using the features provided by vmwarevm. Prerequisites: the cloned virtual machine system must be shut down. steps: vm (Virtual Machine)-manage (management)-clone (clone) cloning can be performed in two ways: 1. link cloning background: sometimes, we use multiple virtual machines. Re-installation takes a lot of time. at this time, we can quickly clone the identical system using the features provided by vmwarevm.
Prerequisites: the cloned virtual machine system must be shut down.
Step: vm-manage-clone)
There are two clone methods:
1. link Clone
2. complete cloning
To save space and time, we will use the link clone method. the IP address and MAC address of the new cloned virtual system are different from those of the original system, because vmware checks the virtual disk to modify the hardware information,
If it is a direct copy, it will be the same, which is the benefit of cloning.
As follows:
Due to the udev management mechanism of redhat and centos, the NIC is changed to eth1. to change it back to eth0, follow these steps:
# Cd/etc/udev/rules. d/
# Vim 70-persistent-net.rules
At this point, you also need cd/etc/sysconfig/network-scripts to modify the ifcfg-eth0 file
Restart network service
# Service network restart
When the network service is restarted, an error is reported because the system is not recognized as eth0 when the NIC driver is started. at this time, we need to uninstall the NIC driver and then reload it.
# Modprobe-r e1000
# Modprobe e1000
# Service network restart
Restart the network service again (if the network service has not changed to eth0, restart the system)