Examples of dumpDevices()


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

          */
         vm = VcFileManager.importVm(vmName, myRP, d1, net1, VcTestConfig.ovfPath);
         System.out.println(vm);
         vm = dc.getVirtualMachine(vmName);
         System.out.println(vm);
         vm.dumpDevices();
         System.out.println(VcFileManager.getDsPath(vm, ""));

         /* test device identification */
         DeviceId diskId = new DeviceId("VirtualLsiLogicController:0:0");
         VirtualDevice scsi1 = vm.getVirtualController(diskId);
View Full Code Here

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

         }

         VirtualDevice.BackingInfo disk1Bk = vm.getVirtualDevice(diskId).getBacking();
         System.out.println("Remove a disk");
         vm.detachVirtualDisk(diskId, false);
         vm.dumpDevices();

         System.out.println("Attach a new disk");
         vm.attachVirtualDisk(new DeviceId("VirtualLsiLogicController", 0, 2),
               VmConfigUtil.createVmdkBackingInfo(vm, "data.vmdk", DiskMode.persistent),
               true, DiskSize.sizeFromGB(8));
View Full Code Here

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

         System.out.println("Attach a new disk");
         vm.attachVirtualDisk(new DeviceId("VirtualLsiLogicController", 0, 2),
               VmConfigUtil.createVmdkBackingInfo(vm, "data.vmdk", DiskMode.persistent),
               true, DiskSize.sizeFromGB(8));
         vm.dumpDevices();

         /* test setting extra config */
         Map<String, String> map = new HashMap<String, String>();
         map.put("vmid", "junit-test-vm");
         vm.setDbvmConfig(map);
View Full Code Here

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

         System.out.println(map);

         if(VmConfigUtil.isDetachDiskEnabled()) {
            System.out.println("Attach a disk");
            vm.attachVirtualDisk(diskId, disk1Bk, false, null);
            vm.dumpDevices();
         }

         // create a snapshot so that we can do linked clone
         vm.createSnapshot("snap1", "snap1");
         // test finding snapshots
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.