You are not logged in.
Pages: 1
Anyone know how to pass a usb controller for say something like mupen64plus, to a virtual machine?
What options exist out of curiosity?
Mostly interested in qemu options for this though.
IE, so that the virtual machine works in qemu.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!
Online
You might use the following qemu command line arguments for usb passthrough:
-device qemu-xhci,id=usb-bus \
-device usb-host,vendorid=0x0000,productid=0x1111with of course the right vendor and product ids replacing 0x0000 and 0x1111.
The device must be plugged in when qemu starts. If you want to support removing and reinserting, you'll need to use the first "-device ..." argument only, and then the qemu monitor command line to add the device, with different but near enough similar syntax.
Before then, the user running qemu must have path access to the /dev/bus/usb/*/* devnode for the usb device to access.
To that end you might for example add GROUP="plugdev" appropriately in /lib/udev/rules.d/50-udev-default.rules, and make the user member of the plugdev group, and then the user gains access right whenever the device is blugged in.
It's also possible to refer to the device using the bus and device id.
Offline
@ralph
I figured you were going to say something about usb, bus, device type commands. I was hoping there was an easier way lol.
Oh well...
I just have to figure out now I guess how to find that info. lsusb gives some of it, but not sure if all will be given.
Freedom is never more than one generation away from extinction. Feelings are not facts
If you wish to be humbled, try to exalt yourself long term If you wish to be exalted, try to humble yourself long term
Favourite operating systems: Hyperbola Devuan OpenBSD
Peace Be With us All!
Online
Pages: 1