-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
USB Passthrough into Podman Machine (QEMU) #16707
Comments
If you want to just add something to QEMU launch configuration - there is an option to edit machine config (json file) as it gives you to edit the full command line, which start QEMU. |
Possibly duplicate of #14409? |
In the end of the day they falls into the same category: USB passthrough After modifying the machine configuration I could have them pop out in
Kernel dose recognize them when plugged in (observed over
or
However I couldn't set up those udev rules and talk to them over serial or GBIP/IEEE 488 inside the container. (I assume I could do this directly in the podman machine, because
Probably some more work to be done inside the podman machine? |
A friendly reminder that this issue had no activity for 30 days. |
@baude PTAL |
A friendly reminder that this issue had no activity for 30 days. |
@baude PTAL |
A friendly reminder that this issue had no activity for 30 days. |
@ashley-cui any chance you can look at this? |
Has anyone taken another look at this? I've been doing my own experiments here, still no luck. |
I haven't actually tried, but I wonder if usbip is the way to go in such situations. |
USB/IP could work for some cases (that's how WSL does it) but not in the general case. And USB passthrough has been well supported in QEMU for ages! |
Hi, I have been doing similar work to KubeVirt kubevirt/kubevirt#10015. I could help out here as well later. Is anyone working on this already? |
I've paused experiments in this area but would love to test if you work on it! |
i would think long-term it would be best to allow an option for usb passthrough; however, we support WSL, HyperV, and Apple's HV so the option would ideally work across the board (though I wouldn't mind if initially it was a qemu only option). |
In general that makes sense. However, having looked a bit into those various targets, the implementation details and even deployment (ex. Apple code signing) vary a lot. Starting with QEMU and figuring out how to generalize does make sense, though. |
@victortoso did you end up looking at this? |
@beriberikix thanks for the ping and sorry, I haven't had the time yet but it is on my plan for the next two weeks. Cheers! |
Thanks, no worries at all! Still happy to test when you need testers! |
@victortoso hope all is well! Did this make it into your priority queue? I'm sure you are busy, I'd love to use this feature as part of an upcoming project! 🙏 |
I'm taking a look at this now, but if @victortoso you have any progress or would like to work on it together, please let me know! |
Hi @ashley-cui and @beriberikix , sorry, I've been lagging behind due other work I've been doing in qemu/kubevirt. |
Can we close this given #20540 is merged? |
Closing, reopen if this was a mistake. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind feature
Description
We are deploying cross-platform application which talks to scientific apparatus over USB (to name one, Keysight Technologies: DSOX1202A [2a8d:0387]) to aid our R&D activities. For now I assume I could add a few lines to
NewMachine
method inpkg/machine/qemu/machine.go
in order to pass in additional arguments such as-device usb-host,vendorid=2a8d,productid=0387
. However I would like to know if there is a better solution, or would like to kindly ask if adding such a feature to configurepodman machine
is feasible.While I'm trying on my Intel Mac, other hosting machines could be MacOS (Intel/M1), Linux, Windows 10/11.
I wouldn't expect passing
--device
argument throughpodman run
would work, and by doing so it will returnError: stat /dev/<device_name>: no such file or directory
.Output of
podman version
:Output of
podman info
:Package info (e.g. output of
rpm -q podman
orapt list podman
orbrew info podman
):Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide?
Yes
The text was updated successfully, but these errors were encountered: