[PVE-User] USB: the little unusable thing...

Alexandre DERUMIER aderumier at odiso.com
Sun Oct 7 14:31:36 CEST 2012

They are a lot of rewrite of the usb stack since kvm 0.14.

>>qm set 111 -usb0 host=001.010 
>>400 Parameter verification failed. 
>>usb0: invalid format - unable to parse usb device

the regex is: (hope you can read it ;)

    if ($v =~ m/^host=(0x)?([0-9A-Fa-f]{4}):(0x)?([0-9A-Fa-f]{4})$/) {
            $found = 1;
            $res->{vendorid} = $2;
            $res->{productid} = $4;
        } elsif ($v =~ m/^host=(\d+)\-(\d+(\.\d+)*)$/) {
            $found = 1;
            $res->{hostbus} = $1;
            $res->{hostport} = $2;
        } else {

so host=(Ox)4xalphanum:(Ox)4xalphanum     -vendorid - productid

   host = digits-digits(.digits)         hostbus - hostport

>>The problem is: inside the virtual i see the key with lsusb but as 
>>in 0.15 of kvm it's unusable..."

What do you mean by unusable ? can you use fdisk on it ?

----- Mail original ----- 

De: "Giuliano Natali (Diaolin)" <diaolin at diaolin.com> 
À: pve-user at pve.proxmox.com 
Envoyé: Samedi 6 Octobre 2012 09:16:31 
Objet: [PVE-User] USB: the little unusable thing... 

1.9 proxmox 

In the previous version ok kvm i should downgrade to 
0.14 to have a decent pass-through USB. 

2.* proxmox 

probed all sort of kvm, downgrading, upgrading, redowngrading 
but nothing... 


Bus 001 Device 010: ID 13fe:1f00 Kingston Technology Company Inc. 
DataTraveler 2.0 4GB Flash Drive / Patriot Xporter 32GB (PEF32GUSB) Flash 

qm set 111 -usb0 host=001.010 
400 Parameter verification failed. 
usb0: invalid format - unable to parse usb device 

then the previous method of setting BUS.DEVICE is incorrect 
but using the args in conf 

args: -device usb-host,hostbus=1,hostport=10 



qm set 111 -usb0 host=13fe:1f00 


args: -usb -device usb-host,vendorid=0x13fe,productid=0x1f00 

all works good. 

The problem is: inside the virtual i see the key with lsusb but as 
in 0.15 of kvm it's unusable... 

Despite i should use the old version, downgrading PROXMOX. 

and this is a real pain. 

With the windows VM i've resolved with remote usb but with the 
linux machine i don't find any usable method. 

I've probed ALL and when i say all i say ALL. 

Minimum 6 or 7 different USB-over-IP softs, even that in the 
kernel usb-ip... 

every time, version mismatch and so on.... 

Any hint? 

I should access an USB key in raw mode as in the 0.14 kvm version 

Tx, Diaolin 

pve-user mailing list 
pve-user at pve.proxmox.com 

More information about the pve-user mailing list