From 0355950a94bd60959067a7afafb99d813e66aeea Mon Sep 17 00:00:00 2001 From: Kroese Date: Wed, 31 Jan 2024 13:42:59 +0100 Subject: [PATCH] docs: USB pass-through (#413) --- readme.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 14fbd22..82734f3 100644 --- a/readme.md +++ b/readme.md @@ -184,7 +184,18 @@ docker run -it --rm -e "BOOT=http://example.com/image.iso" -p 8006:8006 --device ``` Use `DEVICE` if you want it to become your main drive, and use `DEVICE2` and higher to add them as secondary drives. - + +* ### How do I pass-through a USB device? + + To pass-through a USB device, first lookup its vendor and product id via the `lsusb` command, then add them to your compose file like this: + + ```yaml + environment: + ARGUMENTS: "-device usb-host,vendorid=0x1234,productid=0x1234" + devices: + - /dev/bus/usb + ``` + * ### How do I boot with UEFI? To enable UEFI booting, add the following line to your compose file: