usb-host is not a valid device name - error when trying to pass USB to Qemu

I have tried to use various variations of adding a usb device to my Windows VM but to no avail.

I have a Yocto project derived Wind River Linux, withQemu-kvm` installed. The guest OS is Windows 10.

I do a lsusb and get -

Bus 001 Device 029: ID 8564:1000 Transcend JetFlash 

When I try and pass a USB-Device, plugged in to the host system, to the VM, by doing a

 -usb -device qemu-xhci,id=xhci -device usb-host,bus=xhci.0,hostbus=1,hostaddr=29

I get an error saying -

qemu-system-x86_64: -device usb-host,bus=xhci.0,hostbus=1,hostaddr=29 : 'usb-host' is not a valid device model name.

If I try and use -device usb-storage, it expects another input called 'driver' which I am not aware of.

I tried doing aqemu-system-x86_64 -device help|&greo usb.*hci, which gave the following output -

name "ich9-usb-echi1", bus PCI
name "ich9-usb-echi2", bus PCI
name "ich9-usb-echi1", bus PCI
name "ich9-usb-echi2", bus PCI
name "ich9-usb-echi3", bus PCI
name "ich9-usb-echi4", bus PCI
name "ich9-usb-echi5", bus PCI
name "ich9-usb-echi6", bus PCI
name "nec-usb-xhci", bus PCI
name "piix3-usb-uhci", bus PIC
name "piix4-usb-uhci", bus PIC
name "usb-ehci", bus PCI

Not sure what needs to be done to get this USB disk recognized in Windows VM, or which device type and parameters need to be passed. I tried with usb-ehci as well...

1

1 Answer

If it is compiled from github source code and install qemu.

usb-host default not support.

You necessary on qemu configure add the --enable-libusb argument and then install the libuse package. Then reinstall qemu.
usb-host will work!

Information can be acquired at bugs.launchpad.net.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like