On Saturday, 12 October 2019 19:35:07 BST you wrote: > I used to be able to add a driver on the command line launching qemu and > then being able to mount/unmount USB devices using the qemu monitor CLI. > Either I have forgotten the correct syntax, or something changed with > qemu-4.0.0-r50 and I am no longer able to get USB devices to be recognised > on a Windows guest. > > Here are the relevant lines in the terminal: > > -device qemu-xhci,id=xhci \ > -device usb-host,id=Garmin,vendorid=0x091e,productid=0x28db > > On the monitor I get: > > (qemu) info usb > Device 1.0, Port 1, Speed 1.5Mb/s, Product USB Host Device, ID: Garmin > > but I am not seeing this coming up in the guest as a USB device and trying > various permutations on the monitor CLI with 'device_add ...' does not get > me anywhere. > > Google has not helped so far, because many pages simply list deprecated > commands from years ago. Would you know how I could mount and unmount > devices at will in runtime?
OK, the problem was access rights. The device was recognised as root:usb
instead of GROUP="plugdev". So, I set this udev rule in the host and it now
works:
ATTRS{idVendor}=="091e", ATTRS{idProduct}=="28db", MODE="660", GROUP="plugdev"
--
Regards,
Mick
signature.asc
Description: This is a digitally signed message part.

