KVM Usb-Stick

Ich habe nun die Lösung des Problems gefunden:

Bei der virtuellen Maschine gehören die Zeile:

<controller type='usb' index='0'> <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x2'/> </controller>

durch

<controller type='usb' index='0' model='ich9-ehci1'> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/> </controller> <controller type='usb' index='0' model='ich9-uhci1'> <master startport='0'/> <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/> </controller>

ersetzt, dann kann ich auch USB2 Sticks im Betrieb durchreichen.

Dazu erstellt man eine XML:

<hostdev mode='subsystem' type='usb'> <source> <vendor id='0x0951'/> <product id='0x1607'/> </source> </hostdev>
anhand von lsusb

Bus 002 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 017: ID 1241:1177 Belkin F8E842-DL Mouse Bus 001 Device 016: ID 0951:1607 Kingston Technology DataTraveler 100 Bus 001 Device 002: ID 8087:0020 Intel Corp. Integrated Rate Matching Hub Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Dann wird der Befehl aufgerufen:

virsh attach-device win8 /root/device.xml

Und schon wird der USB Stick angezeigt.