A little script to clone a VM with VMware ESX/ESXi (but no VirtualCenter)
By vdiozguy on Oct 14, 2008
I wanted to strike this one for my own records...
I was looking for an easy way to clone a VM without VirtualCenter and came across this, which worked like a charm, bits of which I had done before for other purposes...
So I came up with a little automation, good for when you have to "create a few"... Change according to your datastore!
Script: clone-system name-of-source-vm name-of-target-vm
vmkfstools -i $DATASTORE/"$1"/"$1".vmdk $DATASTORE/"$2"/"$2".vmdk