3

I want to use USBIP in an Ubuntu 20.04 Docker Container. I tried installing the "linux-tools-generic" Package, but when i run USBIP afterwards i get the message:


You may need to install the following packages for this specific kernel:
    linux-tools-5.10.16.3-microsoft-standard-WSL2
    linux-cloud-tools-5.10.16.3-microsoft-standard-WSL2

  You may also want to install one of the following packages to keep up to date:
    linux-tools-standard-WSL2
    linux-cloud-tools-standard-WSL2

How can i install these Packages ? Could'nt find them with apt-get.

Marius
  • 33
  • 4

1 Answers1

0

Since Docker relies on the features of the Linux kernel, you'll need to make sure that you have the USB/IP module compiled into your WSL kernel. It is not there in the stock WSL kernel, so you'll need to build your own. I haven't done this with USB/IP myself, but there are reports from the Home Assistant (home automation) forums that indicate that it works.

See this answer for more details.

NotTheDr01ds
  • 15,620
  • 5
  • 44
  • 70
  • I thought i would get around this :D. But seems like there is no other option. I tried the custom kernel you linked but it sadly didnt have all necessary modules... guess i will have to compile my own. Thank you anyways! – Marius Sep 29 '21 at 13:27
  • @Marius Looking forward to hearing how it goes. – NotTheDr01ds Sep 29 '21 at 17:29
  • @Marius Just noticed that the latest [Microsoft WSL2 kernel](https://github.com/microsoft/WSL2-Linux-Kernel/releases) release has USB/IP support built-in. Might be worth trying if you haven't gotten it working yet. – NotTheDr01ds Oct 19 '21 at 03:56
  • @NotTheDr01ds where can I find more information to accomplish this? I'm struggling with follow the following official guide https://devblogs.microsoft.com/commandline/connecting-usb-devices-to-wsl/ since I've not much experience with Linux, at least in that sense. – José Pulido Nov 07 '21 at 06:11
  • @JoséPulido I hadn't even seen that Microsoft blog entry yet. I haven't tried USP/IP myself, but now that the official support is there, I'll try it when I get a chance. You may want to create a new question (probably on [Super User](https://superuser.com) detailing what you've done so far and what doesn't seem to be working (or where you have questions about something in the guide). – NotTheDr01ds Nov 07 '21 at 22:41
  • Many thanks, I'll be waiting for your updates, meanwhile I'll also make a post on Super User. – José Pulido Nov 09 '21 at 00:03