5 If you installed the package usb-utils, you can now see the host controller
in the USB device list with the command lsusb.
6 Check if you can list the virtual host controller from the VM Host Server with
the command xm usb-list alice
7 On the VM Host Server system, check, which devices may be assigned to a guest
with the command:
xm usb-list-assignable-devices
The result should look similar to the following:
4-2
8 The device that should be assigned to alice has the number 4-2. To assign this
device to the first virtual host controller with number 0 on its port 1, run the
command:
xm usb-attach alice 0 1 4-2
After completing this procedure, you may use the keyboard for example to type inside
a VNC window.
To detach the USB device, you need to know the number of the virtual host controller
and the port number of the assigned device inside the VM Guest. The port numbers of
the host controllers start with the number 0, and the port numbers with 1. List currently
assigned devices with the command xm usb-list alice. The result should look
similar to the following:
# xm usb-list alice
Idx BE
state usb-ver
0
0
4
USB2.0
port 1: 4-2 [ID 047b:0002 SILITEK USB Keyboard and Mouse]
port 2:
port 3:
port 4:
port 5:
port 6:
port 7:
port 8:
Remove this device with the command:
xm usb-detach alice 0 1
: ID 047b:0002 SILITEK USB Keyboard and Mouse
BE-path
/local/domain/0/backend/vusb/2/0
Virtualization: Configuration Options and Settings
73