Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WSL workaround for Ubuntu 21.10 and later (Impish Indri and Jammy Jellyfish) #67

Closed
akuropka opened this issue Nov 7, 2021 · 5 comments
Labels
documentation Improvements or additions to documentation WSL Applies to WSL only

Comments

@akuropka
Copy link

akuropka commented Nov 7, 2021

Environment:
Microsoft Windows 11 22000.282
Ubuntu-CommPrev (updated to 21.10 and 22.04 respectively)
usbipd-win 1.1.1
WSL version 2
Kernel 5.10.60.1-microsoft-standard-WSL2 #1 SMP Wed Aug 25 23:20:18 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
linux-tools-5.13.0-20

Listing devices

C:\WINDOWS\system32>usbipd wsl list
BUSID DEVICE STATE
1-4 Logitech USB Input Device, USB-Eingabegerät Not attached
1-6 HP HD Camera Not attached
1-7 Intel(R) Wireless Bluetooth(R) Not attached
1-8 Synaptics FP Sensors (WBF) (PID=003f) Not attached
1-15 USB-Massenspeichergerät Not attached

Attaching USB-stick

C:\WINDOWS\system32>usbipd wsl attach --busid 1-15
[sudo] password for andi:
WARNING: usbip not found for kernel 5.10.60.1-microsoft

You may need to install the following packages for this specific kernel:
linux-tools-5.10.60.1-microsoft-standard-WSL2+
linux-cloud-tools-5.10.60.1-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+
usbipd: error: Failed to attach device with ID '1-15'.

Notes:

Followed the given instructions: https://github.com/dorssel/usbipd-win/wiki/WSL-support
Linux tools v5.4.0-77 are not available in the repo, just v5.13.0-20. (https://packages.ubuntu.com/impish/linux-tools-generic)
I didn't check if this error occurs ob Ubuntu 21.04 or lower.

Fix:

Build USBIP as described and copy in addition the libusbip.so.0.
An custom kernel as well as the linux-tools package is not necessary.

@dorssel
Copy link
Owner

dorssel commented Nov 7, 2021

Thanks for the report. I'll leave this open for others to find.

I will change the title, as your post actually contains the correct workaround. In fact, this is not fixable by usbipd-win. It really ought to be fixed by WSL exposing a proper usbip client package for their kernel.

@dorssel dorssel changed the title Failed attaching devices on Ubuntu 21.10 and later (Impish Indri and Jammy Jellyfish) WSL workaround for Ubuntu 21.10 and later (Impish Indri and Jammy Jellyfish) Nov 7, 2021
@dorssel dorssel added documentation Improvements or additions to documentation WSL Applies to WSL only labels Nov 7, 2021
@mangkoran
Copy link

mangkoran commented Jan 11, 2022

Sorry but I am still confused.

Build USBIP as described and copy in addition the libusbip.so.0.

In the wiki, there is not mentioned on how to build USBIP. Its just installing USBIP, edit visudo and stuffs.

Also where can I find libusbip.so.0?

@akuropka
Copy link
Author

I can find it in the wiki...

20220111_150142_firefox

@mangkoran
Copy link

mangkoran commented Jan 11, 2022

Guess I'm blind. Thank you!

I think it is better to add some pointer so other user easily find the required step for Ubuntu.

@dorssel
Copy link
Owner

dorssel commented Feb 11, 2022

WSL documentation has been updated with a comment on getting usbip client side to work on different distros. Closing.

@dorssel dorssel closed this as completed Feb 11, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation WSL Applies to WSL only
Projects
None yet
Development

No branches or pull requests

3 participants