Beruflich Dokumente
Kultur Dokumente
x
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 ESX host. The script is very
capable in deploying a large VDI environment in a relatively short amount of time.
Compatiable with:
VMware ESX 3.5 Update 3
VMware ESX 3.5 Update 2
VMware ESX 3.5 Update 1
VMware ESX 3.5
VMware ESX Server 3.0.3
VMware ESX Server 3.0.2 Update 1
VMware ESX Server 3.0.2
VMware ESX Server 3.0.1
VMware ESX Server 3.0.0
1) Default
Generate linked clones located in the same datastore that houses the master (golden) virtual machine. Writes will be
directed to their respective linked virtual machine delta file with reads originating from the master virtual machine.
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.
DISCLAIMER - When deleting linked clones, our process requires that the admin utilizes the “ my-vmware-cmd”
toolset that has been developed. Under no circumstances should the “delete from disk” feature be used on a linked
clone from within VIClient. This is to ensure that the master image of which clones are linked from is not terminated.
Default Case
• Master Virtual Machine: /vmfs/volumes/olga-local-SAS.Storage/UCSB-GAUCHOS/UCSB-GAUCHOS.vmx
stored on LOCAL STORAGE
• Storage Medium: LOCAL STORAGE
• 32 Linked Clones on the same datastore as the Master VM
Requested parameters:
Master Virtual Machine Image:
/vmfs/volumes/olga-local-SAS.Storage/UCSB-GAUCHOS/UCSB-GAUCHOS.vmx
Requested Number of Linked Clones: 32 VMs
Initial Master Memory: 2048 MB
Initial Master VMDK Size: 10 GB
Expected Storage Consumption: 84 GB
1. Datstore selection:
3) 24G /vmfs/volumes/dlgCore-FC-LUN201.VMstorage1
4) 53G /vmfs/volumes/dlgCore-FC-LUN200.Templates
5) 253G /vmfs/volumes/olga-local-SAS.Storage
6) Quit
Requested parameters:
Master Virtual Machine Image:
/vmfs/volumes/dlgCore-FC-LUN200.Templates/UCSB-RESNET/UCSB-RESNET.vmx
Requested Number of Linked Clones: 64 VMs
Initial Master Memory: 2048 MB
Initial Master VMDK Size: 10 GB
Expected Storage Consumption: 167 GB
/vmfs/volumes/dlgCore-FC-LUN200.Templates
/vmfs/volumes/olga-local-SAS.Storage
1. Datstore selection:
1,2
2. Confirmation after initial execution of script:
######################################################
#
# UCSB ResNet Linked Clones Tool for ESX 3.x
# Author: william2003[at]gmail[dot]com
# duonglt[at]engr[dot]ucsb[dot]edu
# Created: 06/26/2008
#
######################################################
Requested parameters:
Master Virtual Machine Image:
/vmfs/volumes/dlgCore-FC-LUN200.Templates/UCSB-ENGINEERING/UCSB-ENGINEERING.vmx
Naming convention for Linked-Cloned Master Virtual Machine:
MASTER-LinkedClones-{1-2}
Naming convention for Linked-Cloned Virtual Machines:
LinkedClones-{1-128}
Looking to create: 2 Master VMs
Requested Number of Linked Clones: 128 VMs
Initial Master Memory: 2048 MB
Initial Master VMDK Size: 10 GB
Expected Storage Consumption: 353 GB
/vmfs/volumes/dlgCore-FC-LUN203.VMstorage3
/vmfs/volumes/dlgCore-FC-LUN202.VMstorage2
Known Issues:
1. When running " ghetto-esx-linked-clones.sh" on VMware ESX 3.0.0, the
"FULL_PATH_TO_MASTER_VMX_FILE" must be in the UUID format and not the human readable symlink, this
was fixed in VMware ESX 3.0.1 and possibly updated in one of the 3.0.0 patchset.
Instead of
./ghetto-esx-linked-clones.sh
vmfs/volumes/himalaya-local-SATA.Storage/VM-MasterImage/VM-MasterImage.vmx
LinkedClone- 1 200