How to pass through USB devices not present at startup #1206
-
Expected behaviourI can list USB device IDs to be passed through automatically, even if devices are not present when the VM starts. Actual behaviourOnly devices present at launch will be available. However, if I replug those, they reconnect to the VM. Steps to reproduce the behaviourAdd Quickemu output
Linux Distribution & Kernel
NotesAs seen on https://github.com/quickemu-project/quickemu/blob/master/quickemu#L167 it bails out when no device is found. QEMU however is able to bind devices by their USB IDs, so this can be used. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Another benefit would be better support for devices like B200-mini, which re-appear on bus after firmware loading. As I currently have whole setup, including firmware, inside the VM, I have to boot it twice after the device has been plugged, because after firmware upload it reappears with same ID but on USB3 bus. This device boots without FPGA firmware and establishes an HS link. Software uploads FPGA image which makes controller setup SuperSpeed link, which moves the device to a different bus. Quite annoying to handle. Haven't yet tried with plain QEMU. |
Beta Was this translation helpful? Give feedback.
-
This is already possible. Start your virtual machine using You might also be interested in the SPICE viewer feature to automatically redirect newly connected USB devices, available via:
|
Beta Was this translation helpful? Give feedback.
This is already possible.
Start your virtual machine using
--display spice
and this will enable clipboard sharing and advanced USB redirection. See the section in the Wiki about USB RedirectionYou might also be interested in the SPICE viewer feature to automatically redirect newly connected USB devices, available via:
Options
->Auto redirect newly connected USB devices