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

Unable to "attach" usb device through WSL #975

Open
NickM1111 opened this issue Jun 19, 2024 · 4 comments
Open

Unable to "attach" usb device through WSL #975

NickM1111 opened this issue Jun 19, 2024 · 4 comments

Comments

@NickM1111
Copy link

Hi,
Similar to other posts I have seen, I am having difficulty attaching my usb device to the WSL.
The error message I am getting is:
usbipd: info: Using WSL distribution 'Ubuntu' to attach; the device will be available in all WSL 2 distributions.
usbipd: error: Unable to run 'usbip' client tool. Please report this at https://github.com/dorssel/usbipd-win/issues.

I am running the latest version of usbipd-win_4.2.0.

Can you please advise on how to fix?
Thanks

@dorssel
Copy link
Owner

dorssel commented Jun 24, 2024

What is the version of Ubuntu?
After you've tried to attach, what is the output of mount in WSL?

@shufang-ding
Copy link

What version of Ubuntu is it? What is the output from mountWSL after trying to connect?

Yes, I also encountered this problem:

Persisted:
GUID DEVICE

PS C:\Windows\system32> usbipd bind --busid 3-4
PS C:\Windows\system32> usbipd attach --wsl --busid 3-4
usbipd: error: Windows Subsystem for Linux version 2 is not available. See https://learn.microsoft.com/windows/wsl/install.
PS C:\Windows\system32>

Tried the following commands, but none of them solved the problem:
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
wsl --update
wsl --set-default-version 2
wsl --install -d Ubuntu

Will not work

@dorssel
Copy link
Owner

dorssel commented Jul 16, 2024

@shufang-ding

PS C:\Windows\system32> usbipd bind --busid 3-4 PS C:\Windows\system32> usbipd attach --wsl --busid 3-4 usbipd: error: Windows Subsystem for Linux version 2 is not available. See https://learn.microsoft.com/windows/wsl/install. PS C:\Windows\system32>

That's a completely different error than reported by the OP. Not related at all. Please file a new issue if you want to resolve it.

@WoojungHuh
Copy link

Create a new issue #1008

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants