LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   qemu and usb (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/qemu-and-usb-4175443381/)

tilman1 12-29-2012 11:08 AM

qemu and usb
 
Hello

I setup qemu on windows using an ubuntu image and a 3.7.1 linux kernel as guest. It boots fine. I then installed LIBUSB-WIN32 as described in
http://sourceforge.net/apps/trac/libusb-win32/wiki to make the usb ports available in the linux image. This does not work, i.e.
"info usbhost" does not return any usb device.

Not quite sure if this is the appropriate forum for that as this seems to related to the windows implementation of qemu. I would appreciate help however...

Thanks
Tilman

jefro 12-30-2012 10:30 AM

Not sure where you got qemu on windows. Try Qemu manager. Much more simple to use. I think I have used usb on it.


This should work on common versions of qemu. http://qemu.weilnetz.de/qemu-doc.html#pcsys_005fusb from command line or alt 2 monitor.

I have never needed http://sourceforge.net/apps/trac/libusb-win32/wiki, what is going on that you need that?

tilman1 01-22-2013 02:04 PM

I have never needed http://sourceforge.net/apps/trac/libusb-win32/wiki, what is going on that you need that?[/QUOTE]

I have no driver on windows for the usb device. libusb provides some sort of generic driver so that the usb device can be accessible to qemu. At least this is how I understand it.

gradinaruvasile 01-22-2013 06:09 PM

Quote:

Originally Posted by tilman1 (Post 4875627)
I have never needed http://sourceforge.net/apps/trac/libusb-win32/wiki, what is going on that you need that?

I have no driver on windows for the usb device. libusb provides some sort of generic driver so that the usb device can be accessible to qemu. At least this is how I understand it.[/QUOTE]

Its the other way around.

The virtual machine (host) provides an environment to the guest OS that mimics hardware. The host virtual machine program provides the device descriptions that are passed to the guest OS. The USB devices can be created, simulating a device that can be set up with the generic Windows USB drivers.
I use virt-manager and kvm and the created VMs have USB devices by default. I assume qemu can do the same.


All times are GMT -5. The time now is 04:02 PM.