Vous êtes sur la page 1sur 13

In Confidence

How to Make Clone on VMWare

This document provides the details required to make a clone on VMware without mac address
conflict issue.

Author: sangeetha Balakrishnan - Sangeetha@cloudnloud.com

132, Pillaiyar Koil Street, Secretariat Colony, Paduvanchery, Selaiyur, Chennai 600073.

+91-44-22292796 | +91-9884561188 | www.cloudnloud.com | training@cloudnloud.com


In Confidence

Change Summary

Version Date Change/ Updated by Summary


01 13-08-2017 Sangeetha Balakrishnan
Initial document

132, Pillaiyar Koil Street, Secretariat Colony, Paduvanchery, Selaiyur, Chennai 600073.

+91-44-22292796 | +91-9884561188 | www.cloudnloud.com | training@cloudnloud.com


In Confidence

Contents
1 INTRODUCTION ABOUT CLONE AND VIRTUALIZATION ................................................................................. 4
1.1 W HY MAKE A CLONE? ................................................................................................................................................ 4
1.2 FULL AND LINKED CLONES.......................................................................................................................................... 4
1.3 SNAPSHOT VS CLONE ................................................................................................................................................. 4
1.4 ADVANTAGE OF CLONING ............................................................................................................................................ 4
1.5 W HAT IS VIRTUALIZATION ........................................................................................................................................... 5
2 KEY POINTS OF VIRTUAL MACHINES ..................................................................................................................... 5
3 PRODUCTS AND PRE-REQUEST ............................................................................................................................... 5
4 PRE-REQUEST TO CLONE .......................................................................................................................................... 5
4.1 REMOVE UDEV RULES (70-PERSISTENT-NET.RULES)................................................................................................ 6
4.2 CONFIGURATION FILE FOR ETH0 ................................................................................................................................ 6
4.3 RESTARTING NETWORK .............................................................................................................................................. 7
4.4 SHUTDOWN THE PARENT MACHINE ............................................................................................................................ 7
5 CLONE THE PARENT MACHINE ................................................................................................................................. 8
5.1 POWER ON BOTH MACHINES ..................................................................................................................................... 11
5.2 CHECK THE PARENT MACHINE IP AND NETWORK CARD NAME ............................................................................... 11
5.3 CHECK THE TARGET (CLONED) MACHINE IP AND NETWORK CARD NAME .............................................................. 12
6 FOR RHEL/CENTOS 7 ................................................................................................................................................. 12
7 CONCLUSION ................................................................................................................................................................ 13

132, Pillaiyar Koil Street, Secretariat Colony, Paduvanchery, Selaiyur, Chennai 600073.

+91-44-22292796 | +91-9884561188 | www.cloudnloud.com | training@cloudnloud.com


In Confidence

1 Introduction About Clone and Virtualization

Generally Clone is a Copy of existing one. In VMWare clone is a copy of an existing virtual machine. The existing
virtual machine is called the parent of the clone. When the cloning operation is complete, the clone is a separate virtual
machine though it may share virtual disks with the parent virtual machine

1.1 Why Make a Clone?


Installing a guest operating system and applications can be time consuming. With clones, you can make many
copies of a virtual machine from a single installation and configuration process.
Clones are useful when you must deploy many identical virtual machines to a group. For example:
An MIS department can clone a virtual machine for each employee, with a suite of preconfigured office
applications.
A virtual machine can be configured with a complete development environment and then cloned repeatedly
as a baseline configuration for software testing.
A teacher can clone a virtual machine for each student, with all the lessons and labs required for the term.
With clones you can conveniently make complete copies of a virtual machine, without browsing a host file system or
worrying if you have located all the configuration files

1.2 Full and Linked Clones


There are two types of clone:
A full clone is an independent copy of a virtual machine that shares nothing with the parent virtual machine
after the cloning operation. Ongoing operation of a full clone is entirely separate from the parent virtual
machine.
A linked clone is a copy of a virtual machine that shares virtual disks with the parent virtual machine in an
ongoing manner. This conserves disk space, and allows multiple virtual machines to use the same software
installation.

1.3 Snapshot vs Clone


Snapshots and clones are closely related in fact, clones are a form of snapshots but have different
attributes and uses:
Snapshots are point-in-time read-only copies of data that are useful for data protection and replication.
Clones, or writable snapshots, can be used to create multiple working copies of data that can be
independently modified. This is extremely useful for creating test or development copies of production data
and for deploying multiple copies of VMs in a virtual desktop infrastructure (VDI) environment.

1.4 Advantage of cloning


Easy steps and understanding
It will save more time compare with creating new virtual machine and deploying a operation system
It will help more to the POC Testers

132, Pillaiyar Koil Street, Secretariat Colony, Paduvanchery, Selaiyur, Chennai 600073.

+91-44-22292796 | +91-9884561188 | www.cloudnloud.com | training@cloudnloud.com


In Confidence

1.5 What is Virtualization


Virtualization is the process of creating a software-based (or virtual) representation of something rather than a
physical one. Virtualization can apply to applications, servers, storage, and networks and is the single most effective way to
reduce IT expenses while boosting efficiency and agility for all size businesses.

2 Key Points of Virtual Machines


VMs have the following characteristics, which offer several benefits.
Partitioning
Run multiple operating systems on one physical machine
Divide system resources between virtual machines
Isolation
Provide fault and security isolation at the hardware level
Preserve performance with advanced resource controls
Encapsulation
Save the entire state of a virtual machine to files
Move and copy virtual machines as easily as moving and copying files
Hardware Independence
Provision or migrate any virtual machine to any physical server

3 Products and Pre-request


There is many Virtualizations tools available like OpenVirt , VMWare
Pre-requests:
Base machine Must be with 64Bit Operating System Windows or RHEL
Hardware minimum 4GB Ram,160GB hard disk, Core2Duo , VT and Nested VT enabled

On our Setup
we tested with VMWare workstation
Installed CentOS 6 with minimum requirement

4 Pre-request to Clone

Parent machine
Remove udev rules (only on EL 6 before)
Configuring eth0
Restart network and Down it

132, Pillaiyar Koil Street, Secretariat Colony, Paduvanchery, Selaiyur, Chennai 600073.

+91-44-22292796 | +91-9884561188 | www.cloudnloud.com | training@cloudnloud.com


In Confidence

4.1 Remove Udev Rules (70-persistent-net.rules)

This steps only on RHEL/CENTOS 6

4.2 Configuration File for eth0

Remove HWADDR and UUID

132, Pillaiyar Koil Street, Secretariat Colony, Paduvanchery, Selaiyur, Chennai 600073.

+91-44-22292796 | +91-9884561188 | www.cloudnloud.com | training@cloudnloud.com


In Confidence

4.3 Restarting Network

4.4 Shutdown the Parent Machine

132, Pillaiyar Koil Street, Secretariat Colony, Paduvanchery, Selaiyur, Chennai 600073.

+91-44-22292796 | +91-9884561188 | www.cloudnloud.com | training@cloudnloud.com


In Confidence

5 Clone the Parent Machine


VMWarenode1ManageClone

132, Pillaiyar Koil Street, Secretariat Colony, Paduvanchery, Selaiyur, Chennai 600073.

+91-44-22292796 | +91-9884561188 | www.cloudnloud.com | training@cloudnloud.com


In Confidence

Click NextCreate Ful Clone

132, Pillaiyar Koil Street, Secretariat Colony, Paduvanchery, Selaiyur, Chennai 600073.

+91-44-22292796 | +91-9884561188 | www.cloudnloud.com | training@cloudnloud.com


In Confidence

Enter the name of target machine and location

132, Pillaiyar Koil Street, Secretariat Colony, Paduvanchery, Selaiyur, Chennai 600073.

+91-44-22292796 | +91-9884561188 | www.cloudnloud.com | training@cloudnloud.com


In Confidence

5.1 Power on both machines

5.2 Check the Parent Machine IP and Network Card name

132, Pillaiyar Koil Street, Secretariat Colony, Paduvanchery, Selaiyur, Chennai 600073.

+91-44-22292796 | +91-9884561188 | www.cloudnloud.com | training@cloudnloud.com


In Confidence

5.3 Check the Target (Cloned) Machine IP and Network Card name

6 For RHEL/CENTOS 7
In RHEL 7 there is no 70-persistent-net.rules on /etc/udev/rules.d/ , so do the below step only on cloned
machine
Install Parent Machine with RHEL 7 / CentOS 7

Check the network card file on /etc/sysconfig/network-scripts/ifcfg-en*

Remove UUID and HWADDR

Restart Network and Down it

Create a full clone and do below steps

Here server1 is cloned (target) machine

Server1manageNATAdvancedGenerateOk

132, Pillaiyar Koil Street, Secretariat Colony, Paduvanchery, Selaiyur, Chennai 600073.

+91-44-22292796 | +91-9884561188 | www.cloudnloud.com | training@cloudnloud.com


In Confidence

7 Conclusion

I hope you will get some basic ideas about Virtualization and Cloning and usage. If
there is any mistake in these guides, please feel free to notify me. I will correct them
and update the articles. Cloning is very good option if you are deploying a large
number of client systems in your organization.

132, Pillaiyar Koil Street, Secretariat Colony, Paduvanchery, Selaiyur, Chennai 600073.

+91-44-22292796 | +91-9884561188 | www.cloudnloud.com | training@cloudnloud.com

Vous aimerez peut-être aussi