Cloning a Linux virtual machine

Source: Internet
Author: User

Background: Sometimes we use multiple uses when using virtual machines. The reinstallation takes a lot of time, and we can quickly clone the exact same system with the functionality that comes with the VMware virtual machine.

Prerequisite: The cloned virtual machine system is in the off state

Step:VM ( virtual machine )-manage ( Management )-clone ( clone )

There are 2 ways of Cloning:

1. Link Clone

2. Complete cloning

In order to save space and time, the demonstration here in the way of link cloning, the newly cloned virtual system's IP and MAC address and the original system is not the same, because the VMware will check the virtual disk itself to modify the hardware information,

If direct replication is the same, this is the benefit of cloning.

As follows:

Due to Redhat and CentOS 's udev management mechanism, the NIC became eth1, If we want to change back to eth0, we can modify it as follows:

#cd/etc/udev/rules.d/
#vim 70-persistent-net.rules

You also need to cd/etc/sysconfig/network-scripts Modify the ifcfg-eth0 file at this time

Choose the bridge mode, the configuration file is as follows

Device=eth0
Bootproto=static
ipaddr=192.168.0.201
netmask=255.255.255.0
gateway=192.168.0.1
Nm_controlled=no
Onboot=yes
Type=etherne
Ipv6init=no

Restart Network Service

#service Network Restart
this will cause an error when restarting the Network service because the system is not recognized as eth0 , and we're going to unload it and reload it first.
#modprobe-R e1000
#modprobe e1000

#service Network Restart
Restart the Network service again ( If restarting the network service has not become eth0, then reboot the system )

Cloning a Linux virtual machine

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.