# Data Object - VirtualDevice(vim.vm.device.VirtualDevice)

Property of
  FaultToleranceDiskSpec, OvfHardwareExport, OvfUnknownDevice, VirtualDeviceConfigSpec, VirtualHardware, VirtualMachineConfigOption, VirtualMachineVendorDeviceGroupInfoComponentDeviceInfo
Extended by
  VirtualCdrom, VirtualController, VirtualDisk, VirtualEthernetCard, VirtualFloppy, VirtualKeyboard, VirtualMachineVideoCard, VirtualMachineVMCIDevice, VirtualMachineVMIROM, VirtualNVDIMM, VirtualParallelPort, VirtualPCIPassthrough, VirtualPointingDevice, VirtualPrecisionClock, VirtualSCSIPassthrough, VirtualSerialPort, VirtualSoundCard, VirtualTPM, VirtualUSB, VirtualWDT
Extends
  DynamicData
See also
  Description, VirtualDeviceBackingInfo, VirtualDeviceBusSlotInfo, VirtualDeviceConnectInfo, VirtualDeviceDeviceGroupInfo
Since
  2.0

## Data Object Description

VirtualDevice is the base data object type for devices in a virtual machine. This type contains enough information about a virtual device to allow clients to display devices they do not recognize. For example, a client with an older version than the server to which it connects may see a device without knowing what it is.

Properties

Name | Type | Description
--- | --- | ---
backing* | VirtualDeviceBackingInfo | Information about the backing of this virtual device presented in the context of the virtual machine's environment. Not all devices are required to have backing information. See VirtualMachineConfigOption
connectable* | VirtualDeviceConnectInfo | Provides information about restrictions on removing this device while a virtual machine is running. If the device is not removable, then this property is null.
controllerKey* | xsd:int | Object key for the controller object for this device. This property contains the key property value of the controller device object.
deviceGroupInfo* | VirtualDeviceDeviceGroupInfo | Information about device group device is part of. Devices in the device group cannot be added/removed individually, whole group has to be added/removed at once. Value can be set during device add, it cannot be modified later. Since 8.0.0.1
deviceInfo* | Description | Provides a label and summary information for the device.
key | xsd:int | A unique key that distinguishes this device from other devices in the same virtual machine. Keys are immutable but may be recycled; that is, a key does not change as long as the device is associated with a particular virtual machine. However, once a device is removed, its key may be used when another device is added. This property is not read-only, but the client cannot control its value. Persistent device keys are always assigned and managed by the server, which guarantees that all devices will have non-negative key values. When adding new devices, it may be necessary for a client to assign keys temporarily in order to associate controllers with devices in configuring a virtual machine. However, the server does not allow a client to reassign a device key, and the server may assign a different value from the one passed during configuration. Clients should ensure that existing device keys are not reused as temporary key values for the new device to be added (for example, by using unique negative integers as temporary keys). When editing or deleting a device, clients must use the server-provided key to refer to an existing device.
numaNode* | xsd:int | The virtual NUMA node. A negative number means there is no affinity for the device. A positive number is a vNUMA node. An unset value of numaNode is status-quo during Reconfigure time. If numaNode is unset during ConfigInfo, then it means there is no affinity for the device. Since 8.0.0.1
slotInfo* | VirtualDeviceBusSlotInfo | Information about the bus slot of a device in a virtual machine. Since vSphere API 5.1
unitNumber* | xsd:int | The unit number of this device on its controller. This property is null if the controller property is null (for example, when the device is not attached to a specific controller object). Normally, two devices on the same controller may not be assigned the same unit number. If multiple devices could exist on a controller, then unit number has to be specified to configure respective devices.
Properties inherited from DynamicData
None

*Need not be set
Show WSDL type definition
<complexType xmlns="http://www.w3.org/2001/XMLSchema" xmlns:vsan="urn:vsan" name="VirtualDevice"> <complexContent> <extension base="vsan:DynamicData"> <sequence> <element name="key" type="xsd:int"/> <element name="deviceInfo" type="vsan:Description" minOccurs="0"/> <element name="backing" type="vsan:VirtualDeviceBackingInfo" minOccurs="0"/> <element name="connectable" type="vsan:VirtualDeviceConnectInfo" minOccurs="0"/> <element name="slotInfo" type="vsan:VirtualDeviceBusSlotInfo" minOccurs="0"/> <element name="controllerKey" type="xsd:int" minOccurs="0"/> <element name="unitNumber" type="xsd:int" minOccurs="0"/> <element name="numaNode" type="xsd:int" minOccurs="0"/> <element name="deviceGroupInfo" type="vsan:VirtualDeviceDeviceGroupInfo" minOccurs="0"/> </sequence> </extension> </complexContent> </complexType>