USB keyboard passthrough issues.

SpaceCowBoy

Member
Feb 13, 2016
51
0
11
38
Hello. I have a KBTalking Race keyboard. I am trying to pass it to the guest vm. Windows 7. I am having issues.

Code:
root@proxmox:~# lsusb -t
/:  Bus 04.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/8p, 480M
/:  Bus 03.Port 1: Dev 1, Class=root_hub, Driver=ehci-pci/3p, 480M
    |__ Port 1: Dev 2, If 0, Class=Hub, Driver=hub/6p, 480M
/:  Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/6p, 5000M
/:  Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci_hcd/15p, 480M
    |__ Port 9: Dev 28, If 0, Class=Human Interface Device, Driver=usbhid, 1.5M
    |__ Port 9: Dev 28, If 1, Class=Human Interface Device, Driver=usbhid, 1.5M

Code:
root@proxmox:/etc/pve/qemu-server# cat 101.conf
bootdisk: ide0
cores: 2
ide0: local:101/vm-101-disk-1.qcow2,cache=writeback,size=300G
ide2: local:iso/Win7.iso,media=cdrom
memory: 4000
name: Win7
net0: e1000=66:36:33:63:61:34,bridge=vmbr0
numa: 0
ostype: win7
smbios1: uuid=fd583fc7-bf9b-49c2-aca5-29167fb353be
sockets: 1
hostpci0: 05:00,x-vga=on
usb0: host=1-9

The VM boots up ok. But the keyboard does not respond. Am I doing somthing wrong with the config? or is this keybaord just not gonna work? I see that it shows up twice on port 9 even know it's only a single device. So i'm not sure if thats the issue.
 
I am having a similar problem. running PVE version 3.4-1 and trying to pass a metrologic bar code scanner to a windows VM. The device shows as being installed in the VM but it doesn't work. The error message on the PVE screen is "xhci_hcd 0000:00:14.0: setuperror: setup context command for slot 1." i have gone over the 2 previous mentioned pages multiple times each and nothing gets the scanner to work. I see that error around 15 times on the screen then it stops.

Code:
qm> info usbhost
  Bus 3, Addr 5, Port 9, Speed 1.5 Mb/s
    Class 00: USB device 0566:3002
  Bus 3, Addr 4, Port 8, Speed 480 Mb/s
    Class 00: USB device 05e3:0723, USB Storage
  Bus 3, Addr 2, Port 1, Speed 1.5 Mb/s
    Class 00: USB device 0c2e:0200, Metrologic Scanner

Code:
root@fusion-rx:~# cat /etc/pve/qemu-server/104.conf
bootdisk: ide0
cores: 2
ide0: local:104/vm-104-disk-1.raw,format=raw,size=40G
ide2: none,media=cdrom
memory: 2048
name: fusion-Rx-Outbound
net0: e1000=62:3C:A9:4A:5D:E4,bridge=vmbr0
net1: e1000=22:99:A0:6C:9B:18,bridge=vmbr1
numa: 0
onboot: 1
ostype: win8
smbios1: uuid=11562555-0b0a-4613-9689-340e5f824195
sockets: 1
usb0: host=0c2e:0200

If you or anyone has a solution to this i would love to hear about it.