mirror of
https://github.com/podman-container-tools/podman.git
synced 2026-08-27 02:37:53 +00:00
QEMU usb-host driver which is the one for passthrough, supports two
options for selecting an USB devices in the host to provide it to the
VM:
- Bus and Device number the device is plugged
- Vendor and Product information of the USB devices
https://qemu-project.gitlab.io/qemu/system/devices/usb.html
This commit allows a user to configure podman machine with either of
options, with new --usb command line option for podman machine init.
Examples
podman machine init tosovm4 --usb vendor=13d3,product=5406
podman machine init tosovm3 --usb bus=1,devnum=4 --usb bus=1,devnum=3
This commit also allows a user to change the USBs configured with
--usb command line option for podman machine set.
Note that this commit does not handle host device permissions nor
verify that the USB devices exists.
Signed-off-by: Victor Toso <victortoso@redhat.com>
|
||
|---|---|---|
| .. | ||
| os | ||
| client9p.go | ||
| info.go | ||
| init.go | ||
| inspect.go | ||
| list.go | ||
| machine.go | ||
| machine_unix.go | ||
| machine_unsupported.go | ||
| machine_windows.go | ||
| os.go | ||
| rm.go | ||
| server9p.go | ||
| set.go | ||
| ssh.go | ||
| start.go | ||
| stop.go | ||