Tutorial on cloning a CentOS VM from vmware

Source: Internet
Author: User
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)

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.