* [gentoo-user] mounting USB devices on qemu at run time
@ 2019-10-12 18:35 Mick
2019-10-13 6:54 ` [gentoo-user] " Mick
0 siblings, 1 reply; 2+ messages in thread
From: Mick @ 2019-10-12 18:35 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 924 bytes --]
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?
--
Regards,
Mick
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* [gentoo-user] Re: mounting USB devices on qemu at run time
2019-10-12 18:35 [gentoo-user] mounting USB devices on qemu at run time Mick
@ 2019-10-13 6:54 ` Mick
0 siblings, 0 replies; 2+ messages in thread
From: Mick @ 2019-10-13 6:54 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1256 bytes --]
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
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-10-13 6:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-12 18:35 [gentoo-user] mounting USB devices on qemu at run time Mick
2019-10-13 6:54 ` [gentoo-user] " Mick
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox