if (requireClone()) {
VcVirtualMachine.CreateSpec vmSpec =
new VcVirtualMachine.CreateSpec(newVmName, snap, targetRp,
targetDs, vmFolder, host, linkedClone, configSpec);
// Clone from the template
vcVm = template.cloneVm(vmSpec, null);
} else {
// copy parent vm's version/product info/vapp options
copyParentVmSettings(template, configSpec);
vcVm = targetRp.createVm(configSpec, targetDs, vmFolder);