Package com.vmware.aurora.vc.VcVirtualMachine

Examples of com.vmware.aurora.vc.VcVirtualMachine.DiskCreateSpec


      DeviceId slot3 = new DeviceId("VirtualLsiLogicController", 0, 3);

      DeviceId[] removeDisks = { slot1 };

      DiskCreateSpec[] addDisks =
            { new DiskCreateSpec(slot2, ds, "data",
                  DiskMode.persistent, DiskSize.sizeFromGB(10)) };

      DiskCreateSpec[] addDisks1 =
            { new DiskCreateSpec(slot3, ds, "data",
                  DiskMode.persistent, DiskSize.sizeFromGB(20)) };


      //Import vm -- "PlatformTestVM" as the target test vm.
      ImportVmSP sp0 = new TestUtil().testImportVM(vmName, rp);
View Full Code Here


               && disk.attributes.contains(DiskSchema.DiskAttribute.PROMOTE)) {
            diskMap.put(disk.externalAddress, Disk.Operation.PROMOTE);
         } else {
            // Make sure we don't already have an existing disk of the same address
            AuAssert.check(diskMap.get(disk.externalAddress) == null);
            DiskCreateSpec createSpec =
                  new DiskCreateSpec(new DeviceId(disk.externalAddress),
                        diskDs, disk.name, disk.mode,
                        DiskSize.sizeFromMB(disk.initialSizeMB),
                        disk.allocationType);
            result.add(createSpec);
         }
View Full Code Here

                        new DeviceId(swapDisk.getExternalAddress()), true);
                  AllocationType allocType =
                        swapDisk.getAllocType() == null ? null : AllocationType
                              .valueOf(swapDisk.getAllocType());
                  DiskCreateSpec[] addDisks =
                        { 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);
View Full Code Here

TOP

Related Classes of com.vmware.aurora.vc.VcVirtualMachine.DiskCreateSpec

Copyright © 2018 www.massapicom. 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.