Examples of changeDisks()


Examples of com.vmware.aurora.vc.VcVirtualMachine.changeDisks()

      @Override
      public Void call() throws Exception {
         VcVirtualMachine vm = VcCache.get(vmId);
         if (!(removeDisks == null && addDisks == null)) {
            vm.changeDisks(removeDisks, addDisks);
         }
         return null;
      }
   }
View Full Code Here

Examples of com.vmware.aurora.vc.VcVirtualMachine.changeDisks()

               CreateSpec vmSpec =
                     new CreateSpec(newVmName, snap, targetRp, targetDs, true, null);

               DeviceId[] removeSet = removeDisks;
               VcVirtualMachine newVm = template.cloneVm(vmSpec, removeSet);
               newVm.changeDisks(null, addDisks);
               //newVm.powerOn();

               // retrieve the resulting VcObject instance
               dstVmId = newVm.getId();
               vcVm = newVm;
View Full Code Here

Examples of com.vmware.aurora.vc.VcVirtualMachine.changeDisks()

                        { new DiskCreateSpec(new DeviceId(swapDisk
                              .getExternalAddress()), targetDs, swapDisk
                              .getName(), DiskMode.independent_persistent,
                              DiskSize.sizeFromMB(newSwapSizeInMB), allocType) };
                  // changeDisks() will run vcVm.reconfigure() itself
                  vcVm.changeDisks(null, addDisks);
               }
            }

            vcVm.reconfigure(newConfigSpec);
            return null;
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.