You are not logged in.

#1 2021-02-13 02:44:39

SpacetimeBull
Member
Registered: 2021-02-13
Posts: 25

QEMU: USB PASSTHROUGH [Error=failed to open host usb device 5:2]

I am trying to pass through a USB WiFi adapter to my mac OS11 virtual machine using QEMU KVM, I first listed my usb devices and receives this:

Bus 006 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 005 Device 003: ID 1532:0228 Razer USA, Ltd BlackWidow Elite
Bus 005 Device 002: ID 0bda:8179 Realtek Semiconductor Corp. RTL8188EUS 802.11n Wireless Network Adapter
Bus 005 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
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 006: ID 1532:007e Razer USA, Ltd RC30-030502 Mouse Dock
Bus 001 Device 005: ID 1532:0088 Razer USA, Ltd Gaming Mouse [Basilisk Ultimate, Wireless, Receiver]
Bus 001 Device 004: ID 05e3:0610 Genesys Logic, Inc. Hub
Bus 001 Device 002: ID 1532:0c04 Razer USA, Ltd Firefly V2
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub



which I entered the usb device into the start.sh as so:


-device usb-host,hostbus=5,hostaddr=2 \


and I receive the following error:

qemu-system-x86_64: -device usb-host,hostbus=5,hostaddr=2: No 'usb-bus' bus found for device 'usb-host'

I additionally tried adding the USB option and I receive this error:

Could not open 'usb-host,hostbus=5,hostaddr=2': No such file or directory

I tried the other way being the vendor and productid method and it let me boot in but the usb device did not connect, I tried changing a number in the productid and vendor number and it still let me boot so that method totally doesn’t work. If someone could gladly help me, that would be greatly appreciated. Thank you.

Last edited by SpacetimeBull (2021-02-13 02:45:25)

Offline

#2 2021-02-13 09:01:54

respiranto
Member
Registered: 2015-05-15
Posts: 479
Website

Re: QEMU: USB PASSTHROUGH [Error=failed to open host usb device 5:2]

You apparently tried option two from the Wiki [0], but forgot to add a `usb-ehci' or `usb-xhci' `-device'.  At least, that gives me the error you observed.

Btw, your title mentions another error.  You should likely adapt either the title or the body of your post.

[0] https://wiki.archlinux.org/index.php/QE … USB_device

Offline

#3 2021-02-13 13:12:50

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: QEMU: USB PASSTHROUGH [Error=failed to open host usb device 5:2]

This is a cross-post from the Manjaro forum: https://forum.manjaro.org/t/qemu-trying … -5-2/53434
We only support Arch Linux here. Closing.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB