VMware Cloud Community
Nikhil_Patwa
Expert
Expert

Linked cloning in ESXi 4.1

Hello,

I have an ESXi 4.1 with many VMs (production, production-like and testing VMs). So far we have been copying VMs from the production/production-like VM for testing purposes and this process takes up a lot of our hard disk space from the datastore. We thought of using linked clones that would save a lot of hard disk space and will be faster in provisioning VMs instead of copying a whole VM.

How can I use linked clone in VMWare ESXi 4.1? I do not have VMWare vCenter Server.

Are there any command line scripts or programs for creating linked clones in ESXi 4.1?

Hope to receive any positive feedbacks

Nikhil

Reply
0 Kudos
4 Replies
depping
Leadership
Leadership

William Lam created a script for this:

http://download.virtuallyghetto.com/vGhettoLinkedClone.html

Duncan

Reply
0 Kudos
lamw
Community Manager
Community Manager

Hi,

Linked Clones using the official vSphere APIs is a functionality of vCenter and not something that is exposed in ESX or ESXi, the script that Duncan has mentioned requires the use of vCenter + licensed copy of ESX(i). However, Linked Clones in essence is nothing more than just some fancy pointers from your Linked Clones VMDK back to the parent VMDK. Here are two scripts that I wrote before VMware officially released an API that supported Linked Clones with the release of vSphere, prior to that, you would have needed to use Lab Manager to get this functionality and now products like View & core vSphere platform supports it natively using VMware's APIs.

Linked Clones on ESX - http://communities.vmware.com/docs/DOC-9020

Linked Clones on ESXi - http://communities.vmware.com/docs/DOC-9202

I will caveat that I've not touched these scripts in awhile and they've been tested when vSphere 4.0 was initially released, but I've not tested this officially against vSphere 4.1, you may or may not run into issues. Though in how the scripts work, I think you should be fine but definitely do test this in a lab environment.

Reply
0 Kudos
Nikhil_Patwa
Expert
Expert

Will try out the scripts in ESXi 4.1 and update accordingly, hopefully it will be smooth.

Nikhil

Reply
0 Kudos
Nikhil_Patwa
Expert
Expert

Now I have vCenter Server 4.1 standard installed in my datacenter and 3 ESXi 4.1 hosts added to vCenter Server, my ESXi hosts are installed with vSphere 4.1 Enterprise Plus licenses. I would like to know how can I configure linked clones using the vCenter Server?

Any ideas will be highly appreciated.

Nikhil

Reply
0 Kudos