Skip to contentSkip to conversation

can't get usb_add to work with kvm 33.

DISCUSSION Andreas Jellinghaus 2 participants 5 messages Jul 30, 2007 – Aug 1, 2007 1 message not in the archive KVM

lore
Share & tools
lore
#0 lore raw

I'm using linux 2.6.22.1 with kvm 33, and tried to "usb_add host:1.4" a device ( a smart card reader ), hoping that it would show up in the guest and my app could use it via /proc/bus/usb/ like I can do on the host. my guest is a debian 4.0 ("etch") installation with the debian standard kernel.

But this doesn't work for me:
(qemu) info usbhost
Device 3.2, speed 1.5 Mb/s

    Class 00: USB device 0d3d:0001, USBPS2
  Device 1.3, speed 480 Mb/s
    Hub: USB device 04b4:6560

Device 1.5, speed 1.5 Mb/s
Vendor Specific: USB device 0973:0001, SchlumbergerSema Cryptoflex
e-gate
(qemu) usb_add host:1.5
(qemu) info usb
Device 0.0, Speed 1.5 Mb/s, Product SchlumbergerSema Cryptoflex e-g

but no device shows up on the guest.

is this kind of usb bridge supported in kvm?
does it work for you? with kvm version are you using?
using a special guest kernel?
should a normal kernel with no special compile options or patches work as well?

thanks for your help.

Regards, Andreas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

#1 lore raw

follow up: works fine when I run qemu with -usbdevice host:1.5 but adding it while running with usb_add in the qemu console does not work. shall I file a bug for this or something?

Andreas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

#2 lore raw
Quoted 4 lines · Andreas Jellinghaus

follow up: works fine when I run qemu with -usbdevice host:1.5 but adding it while running with usb_add in the qemu console does not work. shall I file a bug for this or something?

Does it work with -no-kvm? With plain qemu 0.9.0? With qemu-cvs?

Signature · 8 lines
error compiling committee.c: too many arguments to function


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
#4 lore raw

Re: can't get usb_add to work with kvm 33. [u]

In reply to a message not in the archive

Am Dienstag, 31. Juli 2007 schrieb Avi Kivity:

Quoted 6 lines
Quoted 3 lines · Andreas Jellinghaus

follow up: works fine when I run qemu with -usbdevice host:1.5 but adding it while running with usb_add in the qemu console does not work. shall I file a bug for this or something?

Does it work with -no-kvm? With plain qemu 0.9.0? With qemu-cvs?

sorry, linux guest kernel crashes with "-no-kvm" and the installation has no support for serial console so far. I could create a screenshot from vnc, but it would be very partial at the best. shall I try?

will try qemu later.

Andreas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/

#5 lore raw

Re: can't get usb_add to work with kvm 33. [u]

In reply to a message not in the archive

Am Dienstag, 31. Juli 2007 schrieb Avi Kivity:

Quoted 6 lines
Quoted 3 lines · Andreas Jellinghaus

follow up: works fine when I run qemu with -usbdevice host:1.5 but adding it while running with usb_add in the qemu console does not work. shall I file a bug for this or something?

Does it work with -no-kvm? With plain qemu 0.9.0? With qemu-cvs?

same problem with plain qemu 0.9.0. sorry for the noise, will take the problem there.

Andreas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/