Changes

Jump to: navigation, search

Adding USB Devices to a Xen HVM domainU Guest

2,075 bytes added, 15:12, 9 May 2008
New page: Xen provides a two mechanisms for adding USB devices to an HVM (full) virtualization domainU guest system. The first technique is a long-term solution, requires the addition of the device ...
Xen provides a two mechanisms for adding USB devices to an HVM (full) virtualization domainU guest system. The first technique is a long-term solution, requires 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 monitor.

== Identifying USB Devices on the Xen Host System ==

Before a USB device can be added to a Xen HVM domainU guest it musty first be connected to the host system, powered on and identified. USB devices on Linux systems are identified using ''vendor'' and ''product'' ID values in the form ''vendor:product''. A list connected USB devices on the host can be identified using the ''lsusb'' command. For example:

<pre>
# lsusb
Bus 003 Device 001: ID 0000:0000
Bus 004 Device 001: ID 0000:0000
Bus 005 Device 005: ID 4971:cb07
Bus 005 Device 001: ID 0000:0000
Bus 001 Device 006: ID 03f0:a004 Hewlett-Packard DeskJet 5850c
Bus 001 Device 001: ID 0000:0000
Bus 001 Device 004: ID 413c:2003 Dell Computer Corp.
Bus 002 Device 001: ID 0000:0000
Bus 002 Device 002: ID 047d:102e Kensington
</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].

If, even with the latest ''usb.ids'' file, you are unsure which ID relates to the device you wish to add to your Xen HVM guest another option is to power off or unplug the device in question, run ''lsusb'' again. The device which is no longer listed is the device you are looking for.

== Adding the New USB Device to the Xen domainU Configuration File ==
1,798
edits

Navigation menu