Skip to content

Commit

Permalink
docs: USB pass-through (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Jan 31, 2024
1 parent b807b42 commit ae57b13
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,17 @@ docker run -it --rm -p 8006:8006 --device=/dev/kvm --cap-add NET_ADMIN --stop-ti
```

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 verify if my system supports KVM?

Expand Down

0 comments on commit ae57b13

Please sign in to comment.