USB Passthrough -> VM Crash

michaeljk

Renowned Member
Oct 7, 2009
60
3
73
We want to use a "Reiner SCT" Cardreader inside a KVM based VM for online banking with Hibiscus. The card reader is connected directly to the proxmox host.

Code:
lsusb
Bus 002 Device 003: ID 0c4b:0400 Reiner SCT Kartensysteme GmbH 
Bus 002 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 002: ID 8087:0024 Intel Corp. Integrated Rate Matching Hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Code:
pveversion -l
pve-manager: 2.1-1 (pve-manager/2.1/f9b0f63a)
running kernel: 2.6.32-12-pve
proxmox-ve-2.6.32: 2.1-68
pve-kernel-2.6.32-11-pve: 2.6.32-66
pve-kernel-2.6.32-12-pve: 2.6.32-68
lvm2: 2.02.95-1pve2
clvm: 2.02.95-1pve2
corosync-pve: 1.4.3-1
openais-pve: 1.1.4-2
libqb: 0.10.1-2
redhat-cluster-pve: 3.1.8-3
resource-agents-pve: 3.9.2-3
fence-agents-pve: 3.1.7-2
pve-cluster: 1.0-26
qemu-server: 2.0-39
pve-firmware: 1.0-16
libpve-common-perl: 1.0-27
libpve-access-control: 1.0-21
libpve-storage-perl: 2.0-18
vncterm: 1.0-2
vzctl: 3.0.30-2pve5
vzprocps: 2.0.11-2
vzquota: 3.0.12-3
pve-qemu-kvm: 1.0-9
ksm-control-daemon: 1.1-1
We assigned the Card Reader to the VM with this command:

Code:
qm set 104 -usb0 host=0c4b:0400

Information from inside the VM (based on Ubuntu Linux):

Code:
uname -a
Linux hibiscus 2.6.24-26-server #1 SMP Tue Dec 1 19:19:20 UTC 2009 i686 GNU/Linux

cat /etc/debian_version 
lenny/sid

lsusb
Bus 005 Device 001: ID 0000:0000  
Bus 004 Device 001: ID 0000:0000  
Bus 003 Device 002: ID 0627:0001 Adomax Technology Co., Ltd 
Bus 003 Device 001: ID 0000:0000  
Bus 002 Device 001: ID 0000:0000  
Bus 001 Device 003: ID 0c4b:0400 Reiner SCT Kartensysteme GmbH 
Bus 001 Device 001: ID 0000:0000

As soon as the VM tries to access the cardreader, it crashes immediately - unfortunatly, I have no information in the log about this error. Is there another possibility to debug this?
 
maybe can you test qemu-kvm from proxmox pvetest repository ?
A lot of usb patchs have been applied since last version.

Unfortunatly, this is our productive system. I just updated on Friday from Proxmox 1.8 to 2.1 (by exporting the existing VM's into backup archives, made a clean installation and re-imported them). USB passthrough was not functional with 1.8 either, we had to use a special software to redirect USB access over the network from the proxmox host to the specific VM. I thought that we can avoid this with version 2.1.

I can test the new pve repository next weekend with the specific VM - is there already a specific date on which the next version will be released?