Skip to content

Instantly share code, notes, and snippets.

@beriberikix
Last active February 5, 2023 16:34
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beriberikix/9b1cb3155064b7085a4f5520aaa0c770 to your computer and use it in GitHub Desktop.
Save beriberikix/9b1cb3155064b7085a4f5520aaa0c770 to your computer and use it in GitHub Desktop.
Attempts at using USB/IP VHCI in a container
FROM ubuntu:jammy
RUN \
apt update \
&& apt install -y kmod linux-tools-virtual usbutils
# docker run -it --cap-add=ALL --privileged -v /lib/modules/`uname -r`/kernel/drivers/usb/usbip:/lib/modules/`uname -r` usbip:latest
# modprobe usbip-core
# modprobe vhci-hcd
# usbip list -r <server>
# sudo usbip attach -r <server> -b <bus ID>
# lsusb
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment