Examples of cloneVM_Task()


Examples of com.vmware.vim25.mo.VirtualMachine.cloneVM_Task()

       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)
       {
View Full Code Here

Examples of com.vmware.vim25.mo.VirtualMachine.cloneVM_Task()

      new VirtualMachineCloneSpec();
    cloneSpec.setLocation(new VirtualMachineRelocateSpec());
    cloneSpec.setPowerOn(false);
    cloneSpec.setTemplate(false);

    Task task = vm.cloneVM_Task((Folder) vm.getParent(),
        cloneName, cloneSpec);
    System.out.println("Launching the VM clone task. " +
        "Please wait ...");

    String status = task.waitForMe();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.