Home > Data Center Management Tips > Server and Virtualization Tips > Creating a VM clone for a virtual machine template
Data Center Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

SERVER AND VIRTUALIZATION TIPS

Creating a VM clone for a virtual machine template


Stephen J. Bigelow, Senior Technology Writer, SearchServerVirtualization.com
01.28.2010
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


A VM clone is a complete duplicate of a particular virtual machine (VM) at that precise moment in time.

Cloning a virtual machine is not intended for backup, disaster recovery (DR) or other data protection purposes. The most common use of a VM clone is in the mass deployment of standardized VMs. Cloning a virtual machine that is appropriate for a new workload and tailoring it for specific needs is more efficient than creating new VMs manually and then installing their operating systems and applications.

VM cloning is also useful for test and development. A workload may be cloned from the production environment and placed on another server in the lab, which allows development personnel to work with a real workload without interfering with production.

The traditional process of cloning a virtual machine normally starts by quiesceing and then creating a VM snapshot backup of the source. It is not typically necessary to snapshot the source VM's memory, so disabling that option can usually speed up the snapshot process. Once the snapshot is complete, the original VM should leave the quiesced state and return to normal operation with little (if any) perceivable disruption to users.

In a VMware environment, the next step is to create a new VM using the virtual infrastructure (VI) Client. When configuring the resources for this new VM, do not assign a physical NIC. Assign a virtual switch instead, and stick with the default hard drive size. Do not activate the new VM just yet.

Now, use the command line interface to delete the virtual disk files for the new VM. Open the folder where the new VM resides and delete all of the VMDK files, leaving you with a new (but empty) VM.

At this point, go to the folder containing the snapshot of the original VM. Copy the snapshot to the new VM folder using the command line interface and the "vmkfstools" command. That places the content of your original VM into the new VM instance. The VI Client will allow administrators to activate the new VM. As long as the new VM is not running on a real physical NIC, it will not interfere with the original production VM.

Perform a little housekeeping by deleting the snapshot, which is no longer needed. Deleting the snapshot frees up unneeded disk space and minimizes file clutter. The VM clone will now function exactly like the original workload, and it can be migrated to other servers if needed.

Today, virtualization platforms have automated much of the process of cloning a virtual machine.


Rate this Tip
To rate tips, you must be a member of SearchDataCenter.IN.
Register now to start rating these tips. Log in if you are already a member.




BROWSE BY TAG
Virtual server deployment and management,   Server and virtualization management,   Server and Virtualization Tips,   VIEW ALL TAGS

Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Virtual server deployment and management
Data center planning considerations for high availability
Backing up Microsoft Hyper-V virtualized servers
Application virtualization boosts user satisfaction at Fullerton India
Server virtualization: Bilcare's hidden business plan aid
Building a XenDesktop virtual architecture requires care
High-availability solutions in nonvirtualized environments
Assessing your IT infrastructure for desktop virtualization
Considering replication performance for VMs
VMware, Hyper-V together more in virtualized infrastructure
Mixed virtual environments catching on

Server and Virtualization Tips
Data center planning considerations for high availability
Backing up Microsoft Hyper-V virtualized servers
Application virtualization boosts user satisfaction at Fullerton India
Cloud storage's missing link
Server virtualization: Bilcare's hidden business plan aid
Building a XenDesktop virtual architecture requires care
High-availability solutions in nonvirtualized environments
Considering replication performance for VMs
VMware, Hyper-V together more in virtualized infrastructure
Mixed virtual environments catching on

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.

HomeNewsTopicsITKnowledge ExchangeTipsMultimediaWhite Papers
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2009 - 2010, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts