
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
: ID 047b:0002 SILITEK USB Keyboard and Mouse
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
BE-path
0
0
4
USB2.0
/local/domain/0/backend/vusb/2/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
Virtualization: Configuration Options and Settings
73
Summary of Contents for LINUX ENTERPRISE 11 SP1 - LINUX AUDIT
Page 1: ...SUSE Linux Enterprise Desktop www novell com 11 SP1 August 18 2010 Virtualization with Xen ...
Page 6: ......
Page 11: ...Part I Getting Started with Xen ...
Page 12: ......
Page 18: ......
Page 41: ...Part II Advanced Configurations ...
Page 42: ......
Page 54: ......
Page 87: ...Part III Administration and Best Practices ...
Page 88: ......
Page 100: ......
Page 108: ......
Page 114: ......
Page 116: ......
Page 117: ...Part IV Appendix ...
Page 118: ......
Page 122: ......