Is there a way to attach a particular USB device (by Vendor ID/Product ID) to a Qube automatically on connect? I have a sys-usb to manage USB devices.
I don’t know of an easy solution to this.
Using the qvm-usb
tool you can attach a connected device to another VM persistently, but the device id is unreliable and may change if you reconnect devices in a different order.
Since sys-usb cannot escape virtualization and connect a device to another VM, what you could do is write udev
rules in sys-usb to trigger an RPC call to dom0 which would attach the device to another VM (after a confirmation popup, if you want).
The USB device I am using frequently becomes disconnected (and reconnected) during use and it only needs to be connected to one particular Qube.
You might try enabling no-strict-reset
on your USB controller attached to sys-usb