Search in sources :

Example 16 with OptionValue

use of com.vmware.vim25.OptionValue in project cloudstack by apache.

the class VmwareResource method configBasicExtraOption.

private static void configBasicExtraOption(List<OptionValue> extraOptions, VirtualMachineTO vmSpec) {
    OptionValue newVal = new OptionValue();
    newVal.setKey("machine.id");
    newVal.setValue(vmSpec.getBootArgs());
    extraOptions.add(newVal);
    newVal = new OptionValue();
    newVal.setKey("devices.hotplug");
    newVal.setValue("true");
    extraOptions.add(newVal);
}
Also used : OptionValue(com.vmware.vim25.OptionValue)

Aggregations

OptionValue (com.vmware.vim25.OptionValue)15 HashMap (java.util.HashMap)6 DynamicProperty (com.vmware.vim25.DynamicProperty)4 ManagedObjectReference (com.vmware.vim25.ManagedObjectReference)4 ObjectContent (com.vmware.vim25.ObjectContent)4 Pair (com.cloud.utils.Pair)3 VirtualMachineConfigSpec (com.vmware.vim25.VirtualMachineConfigSpec)3 NicTO (com.cloud.agent.api.to.NicTO)2 CloudException (com.cloud.exception.CloudException)2 InternalErrorException (com.cloud.exception.InternalErrorException)2 VmwareManager (com.cloud.hypervisor.vmware.manager.VmwareManager)2 VirtualMachineMO (com.cloud.hypervisor.vmware.mo.VirtualMachineMO)2 CloudRuntimeException (com.cloud.utils.exception.CloudRuntimeException)2 ArrayOfManagedObjectReference (com.vmware.vim25.ArrayOfManagedObjectReference)2 VirtualMachineConfigInfo (com.vmware.vim25.VirtualMachineConfigInfo)2 IOException (java.io.IOException)2 UnsupportedEncodingException (java.io.UnsupportedEncodingException)2 ConnectException (java.net.ConnectException)2 RemoteException (java.rmi.RemoteException)2 ConfigurationException (javax.naming.ConfigurationException)2