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

Alexandre DERUMIER aderumier at odiso.com
Tue Oct 9 09:08:01 CEST 2012


>>error: -trace events=...: option not supported by the selected tracing
>>backend

Do you have installed my pve-qemu-kvm package ? trace event shoudl work...


>>In any case with this kvm the usb is visible and usable... 
>>with the previous version no... 
which version ?  #kvm -h ?
If you use my package, this is the same version than proxmox 2.2, kvm 1.2. (my package just add tracing)


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

De: "Giuliano Natali (Diaolin)" <diaolin at diaolin.com> 
À: "Alexandre DERUMIER" <aderumier at odiso.com> 
Envoyé: Mardi 9 Octobre 2012 08:22:29 
Objet: Re: [PVE-User] USB: the little unusable thing... 

Alexandre DERUMIER wrote: 
> sorry, send mail before finish ... 
> 
> 


/usr/bin/kvm -trace events=/tmp/events -id 106 -chardev 
'socket,id=monitor,path=/var/run/qemu-server/106.mon,server,nowait' -mon 
'chardev=monitor,mode=readline' -vnc 
unix:/var/run/qemu-server/106.vnc,x509,password -pidfile 
/var/run/qemu-server/106.pid -daemonize -readconfig 
/usr/share/qemu-server/pve-usb.cfg -device 'usb-tablet,bus=ehci.0,port=6' 
-device 'usb-host,vendorid=0x125f,productid=0xc81a' -name diaolin-PC -smp 
'sockets=1,cores=1' -nodefaults -boot 'menu=on' -vga cirrus -localtime 
-rtc-td-hack -no-kvm-pit-reinjection -no-hpet -k en-us -drive 
'file=/dev/cdrom,if=none,id=drive-ide2,media=cdrom,aio=native' -device 
'ide-cd,bus=ide.1,unit=0,drive=drive-ide2,id=ide2,bootindex=200' -drive 
'file=/var/lib/vz/images/106/vm-106-disk-2.qcow2,if=none,id=drive-ide1,aio=native' 
-device 'ide-hd,bus=ide.0,unit=1,drive=drive-ide1,id=ide1' -drive 
'file=/var/lib/vz/images/106/vm-106-disk-1.raw,if=none,id=drive-ide0,aio=native,cache=none' 
-device 'ide-hd,bus=ide.0,unit=0,drive=drive-ide0,id=ide0,bootindex=101' 
-m 2048 -netdev 
'type=tap,id=net0,ifname=tap106i0,script=/var/lib/qemu-server/pve-bridge' 
-device 
'rtl8139,mac=DA:6C:42:06:9B:02,netdev=net0,bus=pci.0,addr=0x12,id=net0,bootindex=300' 
-cpuunits 1000 
Warning: option deprecated, use lost_tick_policy property of kvm-pit instead. 
error: -trace events=...: option not supported by the selected tracing 
backend 


In any case with this kvm the usb is visible and usable... 
with the previous version no... 

this was win7 
and with debian linux works ok 

now i should test a key that is a protection key that should be read from 
a program that i cannot control. 

until 0.14 it worked good 

for now with this version i think it's ok 

the documentation lacks (man qm) but the passthrough is ok 

Diaolin 





> 
> here a pve-qemu-kvm package with tracepoint enable 
> http://odisoweb1.odiso.net/pve-qemu-kvm_1.2-6_amd64.deb 
> 
> 
> then activate the usb_host events 
> 
> echo usb_host_open_started > /tmp/events 
> echo usb_host_open_success >> /tmp/events 
> echo usb_host_open_failure >> /tmp/events 
> echo usb_host_disconnect >> /tmp/events 
> echo usb_host_close >> /tmp/events 
> echo usb_host_set_address >> /tmp/events 
> echo usb_host_set_config >> /tmp/events 
> echo usb_host_set_interface >> /tmp/events 
> echo usb_host_claim_interfaces >> /tmp/events 
> echo usb_host_release_interfaces >> /tmp/events 
> echo usb_host_req_control >> /tmp/events 
> echo usb_host_req_data >> /tmp/events 
> echo usb_host_req_complete >> /tmp/events 
> echo usb_host_req_emulated >> /tmp/events 
> echo usb_host_req_canceled >> /tmp/events 
> echo usb_host_urb_submit >> /tmp/events 
> echo usb_host_urb_complete >> /tmp/events 
> echo usb_host_urb_canceled >> /tmp/events 
> echo usb_host_ep_set_halt >> /tmp/events 
> echo usb_host_ep_clear_halt >> /tmp/events 
> echo usb_host_iso_start >> /tmp/events 
> echo usb_host_iso_stop >> /tmp/events 
> echo usb_host_iso_out_of_bufs >> /tmp/events 
> echo usb_host_iso_many_urbs >> /tmp/events 
> echo usb_host_reset >> /tmp/events 
> echo usb_host_auto_scan_enabled >> /tmp/events 
> echo usb_host_auto_scan_disabled >> /tmp/events 
> echo usb_host_claim_port >> /tmp/events 
> echo usb_host_parse_device >> /tmp/events 
> echo usb_host_parse_config >> /tmp/events 
> echo usb_host_parse_interface >> /tmp/events 
> echo usb_host_parse_endpoint >> /tmp/events 
> echo usb_host_parse_unknown >> /tmp/events 
> echo usb_host_parse_error >> /tmp/events 
> 
> 
> launch the vm with the usb-host key attached, 
> get the "kvm" command line generated by proxmox 
> 
> then re-launch it with adding 
> 
> kvm -trace events=/tmp/events 
> 
> 
> 
> try with the 3 differents guest os. 
> 
> and submit me the results. 
> 
> :) 
> 
> 
> 
> 
> 
> ----- Mail original ----- 
> 
> De: "Alexandre DERUMIER" <aderumier at odiso.com> 
> À: "Giuliano Natali (Diaolin)" <diaolin at diaolin.com> 
> Cc: pve-user at pve.proxmox.com 
> Envoyé: Lundi 8 Octobre 2012 09:23:47 
> Objet: Re: [PVE-User] USB: the little unusable thing... 
> 
> here a pve-qemu-kvm package with tracepoint enable 
> http://odisoweb1.odiso.net/pve-qemu-kvm_1.2-6_amd64.deb 
> 
> 
> then activate the usb_host events 
> 
> echo usb_host_open_started > /tmp/events 
> echo usb_host_open_success >> /tmp/events 
> echo usb_host_open_failure >> /tmp/events 
> echo usb_host_disconnect >> /tmp/events 
> echo usb_host_close >> /tmp/events 
> echo usb_host_set_address >> /tmp/events 
> echo usb_host_set_config >> /tmp/events 
> echo usb_host_set_interface >> /tmp/events 
> echo usb_host_claim_interfaces >> /tmp/events 
> echo usb_host_release_interfaces >> /tmp/events 
> echo usb_host_req_control >> /tmp/events 
> echo usb_host_req_data >> /tmp/events 
> echo usb_host_req_complete >> /tmp/events 
> echo usb_host_req_emulated >> /tmp/events 
> echo usb_host_req_canceled >> /tmp/events 
> echo usb_host_urb_submit >> /tmp/events 
> echo usb_host_urb_complete >> /tmp/events 
> echo usb_host_urb_canceled >> /tmp/events 
> echo usb_host_ep_set_halt >> /tmp/events 
> echo usb_host_ep_clear_halt >> /tmp/events 
> echo usb_host_iso_start >> /tmp/events 
> echo usb_host_iso_stop >> /tmp/events 
> echo usb_host_iso_out_of_bufs >> /tmp/events 
> echo usb_host_iso_many_urbs >> /tmp/events 
> echo usb_host_reset >> /tmp/events 
> echo usb_host_auto_scan_enabled >> /tmp/events 
> echo usb_host_auto_scan_disabled >> /tmp/events 
> echo usb_host_claim_port >> /tmp/events 
> echo usb_host_parse_device >> /tmp/events 
> echo usb_host_parse_config >> /tmp/events 
> echo usb_host_parse_interface >> /tmp/events 
> echo usb_host_parse_endpoint >> /tmp/events 
> echo usb_host_parse_unknown >> /tmp/events 
> echo usb_host_parse_error >> /tmp/events 
> 
> 
> launch the vm with the usb-host key attached, 
> get the "kvm" command line generated by proxmox 
> 
> then re-launch it 
> 
> 
> ----- Mail original ----- 
> 
> De: "Giuliano Natali (Diaolin)" <diaolin at diaolin.com> 
> À: "Alexandre DERUMIER" <aderumier at odiso.com> 
> Cc: pve-user at pve.proxmox.com 
> Envoyé: Lundi 8 Octobre 2012 09:00:21 
> Objet: Re: [PVE-User] USB: the little unusable thing... 
> 
> Alexandre DERUMIER wrote: 
>> I have see some bugreport here 
>> 
>> https://bugs.launchpad.net/qemu/+bug/685096 
>> 
>> (one bug report show that it's work with winxp 32bit but not win7) 
>> 
>> https://bugs.launchpad.net/qemu/+bug/1033727 
>> 
>> 
>> Do you have time to debug ? 
>> I can compile you a pve-qemu-kvm package with traces 
>> http://git.qemu.org/?p=qemu.git;a=blob;f=docs/tracing.txt 
>> 
>> so we can send log to Gerd Hoffmann , the redhat developper which 
>> maintain the usb code. 
> 
> ok, please send me a link for downloading it... 
> 
> i need 2 days... 
> 
> :-) 
> 
> Diaolin 
> 
> 
> 
>> 
>> 
>> 
>> ----- Mail original ----- 
>> 
>> De: "Giuliano Natali (Diaolin)" <diaolin at diaolin.com> 
>> À: pve-user at pve.proxmox.com 
>> Envoyé: Lundi 8 Octobre 2012 07:58:37 
>> Objet: Re: [PVE-User] USB: the little unusable thing... 
>> 
>> Alexandre DERUMIER wrote: 
>>> which os do you use for your guest ? 
>> 
>> one guest is debian6.0 
>> one guest is winXP 
>> one guest is Fedora 
>> 
>> 
>> Sorry, probed even with the upcoming 1.2 
>> 
>> Diaolin 
>> 
>> 
>> 
>> _______________________________________________ 
>> pve-user mailing list 
>> pve-user at pve.proxmox.com 
>> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user 
>> 
> _______________________________________________ 
> pve-user mailing list 
> pve-user at pve.proxmox.com 
> http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-user 
> 



More information about the pve-user mailing list