qemu-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Physical USB port addressing


From: Thomas Huth
Subject: Re: Physical USB port addressing
Date: Tue, 29 Mar 2022 11:40:32 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.6.0

On 25/03/2022 19.13, Narcis Garcia wrote:
Some versions ago I could specify a host plugged device with this:
-usbdevice host:2001:3c17
but now I don't find a syntax that works for me (I also wish to ignore which physical port is device connected to):

$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 034: ID 2001:3c17 D-Link Corp. DWA-123 Wireless N 150 Adapter(rev.A1) [Ralink RT3370]
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

$ qemu-system-x86_64 --version
QEMU emulator version 5.2.0 (Debian 1:5.2+dfsg-11+deb11u1)
Copyright (c) 2003-2020 Fabrice Bellard and the QEMU Project developers
$ qemu-system-x86_64 (...) -device usb-host,vendorid=2001,productid=3c17
qemu-system-x86_64: -device usb-host,vendorid=2001,productid=3c17: No 'usb-bus' bus found for device 'usb-host'

That error message means that there isn't a USB host controller defined for your guest. Try to add an additional "-device qemu-xhci" or something similar before the "-device usb-host,..." in your command line.

 HTH,
  Thomas




reply via email to

[Prev in Thread] Current Thread [Next in Thread]