draft: vm-run: add usb_passthru config#36
Conversation
|
Corresponding patch: https://reviews.freebsd.org/D52166 |
|
Why is it limited to eight and how to identify if you have the same device twice, e.g. USB stick? |
|
8 is hardcoded from the bhyve. This number is hard-coded to bhyve so that bhyve pre-alloc port resource. Of course, we can increase the number if we want. Not too much overhead on this. |
|
Is there a way to detect whether the current system supports this at all like done in #37? |
|
It’s an ad hoc method, but I think it can be detected using the following command: |
This setting is for adoption for the new single usb device passthru feature in bhyve.
Current, it works by add the following lines in your vm configuration:
xhci_passthru1="vid.pid"
xhci_passthru2="vid.pid"
xhci_passthru3="vid.pid"
Where vid is the vendor id hex value and pid is the product id hex value.
You can at most have 8 devices (plus xhci_mouse).