Linked Clones script for ESXi

Version 3

    This script allows users to create linked cloned virtual machine(s) from a master (or golden) virtual machine. Clones may be stored on any type of datastore (LOCAL, SAN, NFS) that is presented to the ESXi host. The script is very capable in deploying a large VDI environment in a relatively short amount of time.

     

    Compatiable with:

    VMware ESXi 4.0 Update 1

    VMware ESXi 4.0

    VMware ESXi 3.5 Update 5

    VMware ESXi 3.5 Update 4

    VMware ESXi 3.5 Update 3

    VMware ESXi 3.5 Update 2

    VMware ESXi 3.5 Update 1

    VMware ESXi 3.5

     

    Note: This linked clones script is virtual machine OS independent (i.e. it is not restricted to just Windows OS’s for VDI environment). For example, one can utilize this script to their advantage in development environments where new VMs need to be (mass) cloned quickly for testing.

     

    The only supported case is the "Default case" in ghetto-esx-linked-clones.sh.

     

    ~ # ./ghetto-esxi-linked-clones.sh
    ######################################################
    #
    # UCSB ResNet Linked Clones Tool for ESXi
    # Author: william2003[at]gmail[dot]com
    #         duonglt[at]engr[dot]ucsb[dot]edu
    # Created: 09/30/2008
    #
    ######################################################
    
    Usage: ghetto-esxi-linked-clones.sh [FULL_PATH_TO_MASTER_VMX_FILE] [VM_NAME] [START_#] [END_#]
            i.e.
                    ./ghetto-esxi-linked-clones.sh /vmfs/volumes/4857f047-4e4ec6bf-a8b8-001b78361a3c/LabMaster/LabMaster.vmx LabClient- 1 200
            Output:
                    LabClient-{1-200}
    ~ #
    

     

    *Note:* Limited testing has been done with ESXi 3.5u3+ and EXi 4.0+