Package com.vmware.vim25

Examples of com.vmware.vim25.VirtualIDEController


                        = (VirtualDiskFlatVer2BackingInfo) vdbi;
                    changeId = bi.getChangeId();
                    uuid = bi.getUuid();
                    diskMode = bi.getDiskMode();
                } else if (vdbi instanceof VirtualDiskSparseVer2BackingInfo) {
                    VirtualDiskSparseVer2BackingInfo bi =
                        (VirtualDiskSparseVer2BackingInfo) vdbi;
                    changeId = bi.getChangeId();
                    uuid = bi.getUuid();
                    diskMode = bi.getDiskMode();
                }

                /* get the controller information  */
                Integer ckeyI = diskDev.getControllerKey(); assert ckeyI != null;
                int ckey = ckeyI.intValue();
View Full Code Here


    {
        VirtualDeviceConfigSpec nicSpec =
            new VirtualDeviceConfigSpec();
        nicSpec.setOperation(VirtualDeviceConfigSpecOperation.add);

        VirtualEthernetCard nic =  new VirtualE1000();
        VirtualEthernetCardNetworkBackingInfo nicBacking =
            new VirtualEthernetCardNetworkBackingInfo();
        nicBacking.setDeviceName(netName);

        Description info = new Description();
        info.setLabel(nicName);
        info.setSummary(netName);
        nic.setDeviceInfo(info);
   
        // type: "generated", "manual", "assigned" by VC
        nic.setAddressType("generated");
        nic.setBacking(nicBacking);
        nic.setKey(0);
  
        nicSpec.setDevice(nic);
        return nicSpec;
    }
View Full Code Here

    {
        VirtualDeviceConfigSpec nicSpec =
            new VirtualDeviceConfigSpec();
        nicSpec.setOperation(VirtualDeviceConfigSpecOperation.add);

        VirtualEthernetCard nic =  new VirtualE1000();
        VirtualEthernetCardNetworkBackingInfo nicBacking =
            new VirtualEthernetCardNetworkBackingInfo();
        nicBacking.setDeviceName(netName);

        Description info = new Description();
        info.setLabel(nicName);
        info.setSummary(netName);
        nic.setDeviceInfo(info);
   
        // type: "generated", "manual", "assigned" by VC
        nic.setAddressType("generated");
        nic.setBacking(nicBacking);
        nic.setKey(0);
  
        nicSpec.setDevice(nic);
        return nicSpec;
    }
View Full Code Here

        VirtualDeviceConfigSpec nicSpec =
            new VirtualDeviceConfigSpec();
        nicSpec.setOperation(VirtualDeviceConfigSpecOperation.add);

        VirtualEthernetCard nic =  new VirtualE1000();
        VirtualEthernetCardNetworkBackingInfo nicBacking =
            new VirtualEthernetCardNetworkBackingInfo();
        nicBacking.setDeviceName(netName);

        Description info = new Description();
        info.setLabel(nicName);
        info.setSummary(netName);
        nic.setDeviceInfo(info);
View Full Code Here

        boolean isScsi = true;
       
        switch(type_) {
        case IDE:
            isScsi = false;
            ctrl = new VirtualIDEController();
            break;
        case BUSLOGIC:
            isScsi = true;
            ctrl = new VirtualBusLogicController();
            break;
View Full Code Here

     floppySpec.device = floppy;

     VirtualMachineConfigSpec config = new VirtualMachineConfigSpec();
     config.deviceChange = new VirtualDeviceConfigSpec[] { floppySpec };

     VirtualIDEController controller = getFirstAvailableController(VirtualIDEController.class);

     if (controller != null)
     {
        config.deviceChange[0].device.controllerKey = controller.key;
     }
View Full Code Here

    cdSpec.device = cdrom;

    VirtualMachineConfigSpec config = new VirtualMachineConfigSpec();
    config.deviceChange = new VirtualDeviceConfigSpec[] { cdSpec };

    VirtualIDEController controller = getFirstAvailableController(VirtualIDEController.class);

    if (controller != null)
    {
      config.deviceChange[0].device.controllerKey = controller.key;
    }
View Full Code Here

    private VirtualDeviceConfigSpec createScsiSpec(int cKey)
    {
        VirtualDeviceConfigSpec scsiSpec =
            new VirtualDeviceConfigSpec();
        scsiSpec.setOperation(VirtualDeviceConfigSpecOperation.add);
        VirtualLsiLogicController scsiCtrl =
            new VirtualLsiLogicController();
        scsiCtrl.setKey(cKey);
        scsiCtrl.setBusNumber(0);
        scsiCtrl.setSharedBus(VirtualSCSISharing.noSharing);
        scsiSpec.setDevice(scsiCtrl);
        return scsiSpec;
    }
View Full Code Here

            isScsi = true;
            ctrl = new VirtualBusLogicController();
            break;
        case LSILOGIC:
            isScsi = true;
            ctrl = new VirtualLsiLogicController();
            break;
        case LSILOGICSAS:
            isScsi = true;
            ctrl = new VirtualLsiLogicSASController();
            break;
View Full Code Here

            isScsi = true;
            ctrl = new VirtualLsiLogicController();
            break;
        case LSILOGICSAS:
            isScsi = true;
            ctrl = new VirtualLsiLogicSASController();
            break;
        default:
            return null;
        }
View Full Code Here

TOP

Related Classes of com.vmware.vim25.VirtualIDEController

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.