PowerCLI: HL Tools – Part 1 – Clone a VM without vCenter
Jump to navigation
Jump to search
Home Lab Tools - Clone a VM without vCenter
author: Luc Dekens
Description
In his home lab Luc runs a simple ESXi server as bases and thus he can not use vCenter functionality to cloning a VM. In order to still use that feature he wrote a few -as he calls "simple"- scripts that give him the cloning functionality as he needs.
There are a few preconditions, such as:
- The source VM must be shut down
- The source VM cannot have any open snapshots.
Also note that the VM does not get customized, so the clone is exactly the same as the original!
Usage
An example of how to call the function is:
Clone-MasterVM -MasterName W2K12Core_Base -CloneName Server1 -DatastoreName datastore2 -Register -PowerOn
Location
http://www.lucd.info/2013/06/30/hl-tools-part-1-clone-a-vm-without-vcenter/