Changes

Adding USB Devices to a Xen HVM domainU Guest

51 bytes added, 18:52, 29 May 2016
m
Text replacement - "<htmlet>xen<htmlet>" to "<htmlet>xen</htmlet>"
<htmlet>xen</htmlet>  Xen provides two mechanisms for adding USB devices to an HVM virtualization domainU guest system. The first technique is a long-term solution, requires requiring the addition of the device to the domainU configuration file and involves a domainU restart . The second solution is better suited to adding a device temporarily to a running Xen HVM guest system and involves the use of the Qemu QEMU monitor.
== Identifying USB Devices on the Xen Host System ==
</pre>
USB devices which are connected are shown with a ''vendor:product'' value pair. Devices with ''0000:0000'' represent USB ports where no device is connected or a device is connected but currently powered off. A list of device ID strings is contained in the ''/usr/share/hwdata/usb.ids'' file). If no matching ID is found in the file this field is left blank. This file is constantly updated so it may be worth downloading the latest release from [http://www.linux-usb.org/usb.ids http://www.linux-usb.org/usb.ids].
== A Trick to Identify the Correct USB Device ==
== Temporarily Adding a USB Device to a running Xen HVM Guest ==
If access to a USB device is needed temporarily the device can be added to the running domainU guest without shutting it down and modifying the configuration file. This feat is achieved using the QEMU monitor. Before the QEMU monitor of a running Xen HVM domainU guest can be access accessed, however, a number of configuration changes are necessary. Firstly, the monitor needs to be enabled in the domainU configuration file:
<pre>
</pre>
One Once these changes are made, restart the domainU and from now on USB devices may be added and removed dynamically without having to restart the system. To access the QEMU monitor press ''Crtl+Alt+2''. The graphical display will subsequently change to the text based QEMU monitor. The initial display will read:
<pre>
</pre>
The devide device may be similarly subsequently removed from the domianU guest when no longer required using the ''usb_del'' command combined with the appropriate device identification values:
<pre>
usb_del host:03f0:a004
</pre>
 
 
<htmlet>xen</htmlet>