I recently decided to try docker for one app I am using and need to pass thru a single usb port with 2 devices defined (ttyUSB0 and ttyUSB1). For the life of me I have not been able to find how to pass those devices from the host to the container.
Any guidance?
Note this is on f43 host with win11 in the container.
1 Like
Usually you can just use the --device flag to the docker command to pass through a USB device.
But since you’re containerizing Windows on a Linux host, I don’t think that works. I think that situation basically passes the host KVM into the container, which then spins up a Windows VM within the container. The --device will be visible to the container running the VM, but another step would be necessary to pass that to the VM. You’ll probably have to find a way to change the KVM settings in that container to pass that USB device to the Windows VM.
In this situation, it’s probably better just to run the Windows VM instead of a container on your host.
1 Like
Was able to solve the issue with searching and trying various things from time past.
Was using winboat to host the guest and it had an experimental pass thru feature similar to what is done with qemu on fedora that actually worked.
Thanks for reading.