VirtualMachineCloneSpec cloneSpec = new VirtualMachineCloneSpec();
cloneSpec.setLocation(new VirtualMachineRelocateSpec());
cloneSpec.setPowerOn(false);
cloneSpec.setTemplate(false);
Task task = vm.cloneVM_Task(vmFolder, cloneName, cloneSpec);
System.out.println("Launching the VM clone task. It might take a while. Please wait for the result ...");
String status = task.waitForMe();
if(status==Task.SUCCESS)
{