USB dropping/delaying packets

digitalgimpus

Active Member
Apr 14, 2017
6
0
41
82
I'm trying to run an ads-b receiver in a VM, but running into issue with USB support. Seems like USB packets are delayed/getting dropped resulting in inability to do things that require more precise timing.

I found a thread here of people who have had this issues with other virtualization environments, but not proxmox.

https://discussions.flightaware.com/t/server-status-clock-unstable/19482/23

Wanted to see if anyone encountered the same, or something similar in nature, and if there's any suggested things to try. As of yet I haven't found anything regarding prioritizing USB.
 
Yes. I have seen bandwidth and latency issues with USB passthrough on this forum. Enabled USB3 tends to help (also for 2.0 devices). Still my keyboard drops a keypress once in a while but a bluetooth receiver appears to work fine. I used to use it for a USB DVB-C tuner, but the CPU overhead was very high and it was unstable with HD-TV.
The alternative is PCI passthrough of a suitable USB controller, but this is also a bit of trial and error and much more technical.
 
I've already got USB3 enabled, so that's ruled out.

I've got limited PCI slots on this host, so a dedicated PCI card to passthrough a controller isn't really practical either :-/
 
Can you run the required software on Linux? Then you can pass the device to a (unprivileged) container via a bind mount (with some user and group mappings).
EDIT: The device drivers will need to run on the host though, and it is some work if kernel 5.11 does not already support the device out of the box.
 
Last edited: