Adding an ethernet adapter
The following figure shows the sample for device-change-list for adding an ethernet adapter. For adding an ethernet adapter, the permissible values of the elements are:
Element | Definition | Required |
---|---|---|
<device-name> | Specifies the name of the device on the host system | Yes |
<device type> | Specifies the type of the device on the host system | No |
<backing type> | Specifies the backing type of the device | Yes |
<start-connected> | Specifies the flag specifying whether to connect the device when the virtual machine starts | No |
<allow-guest-control> | Specifies the flag that allows the guest to control the device when the device is connected | No |
<connected> | Specifies the flag that indicates whether the device is currently connected | No |
<address-type> | Specifies the MAC address type | Conditional |
<mac-address> | Specifies the MAC address assigned to the virtual network adapter | Conditional |
<wake-on-lan-enabled> | Indicates whether the wake-on-LAN feature is enabled on the virtual network adapter | No |
XML Sample of device-change-list for adding an ethernet adapter
<device-change>
<operation>add</operation>
<device type="VirtualPCNet32">
<backing type="VirtualEthernetCardNetworkBackingInfo">
<device-name></device-name>
</backing>
<connectable>
<start-connected></start-connected>
<allow-guest-control></allow-guest-control>
<connected></connected>
</connectable>
<controller-key>0</controller-key>
<unit-number>0</unit-number>
<address-type></address-type>
<mac-address></mac-address>
<wake-on-lan-enabled></wake-on-lan-enabled>
</device>
</device-change>
</device-change-list>