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 device with fresh version of WSL2 - Ubuntu 22 #787

Closed
Leiyks opened this issue Dec 3, 2023 · 1 comment
Closed

Unable to attach device with fresh version of WSL2 - Ubuntu 22 #787

Leiyks opened this issue Dec 3, 2023 · 1 comment

Comments

@Leiyks
Copy link

Leiyks commented Dec 3, 2023

Hi all !

I recently switched to WSL and I am trying to connect my USB component to WSL by following the guide provided by Microsoft.
(I tried everything on the a fresh WSL install, so the only command that have been run before following the guide was sudo apt update && sudo apt upgrade)

However when trying to actually attach any of my devices I get:

$ usbipd wsl attach --busid 4-1
usbip: error: Attach Request for 4-1 failed - Device busy (exported)

usbipd: error: Failed to attach device with BUSID '4-1'.

I searched for a solution and tried a bunch of things, such as:

  • Trying with version 3.0 of usbipd-win and same instructiuons
  • Trying with version 2.0 of usbipd-win with instructions of this wiki
  • Trying multiple other installation commands I saw on issues/stackoverflow/etc... (linux-tools-virtual, etc...)

What is odd is that in every cases after running the attach command, I tried other commands and got this:

$ usbipd wsl list
BUSID  DEVICE                                                        STATE
...
4-1    USB Input Device, Microsoft Usbccid Smartcard Reader (WUDF)   Not attached
...
$ usbipd list
Connected:
BUSID  DEVICE                                                        STATE
...
4-1    USB Input Device, Microsoft Usbccid Smartcard Reader (WUDF)   Shared
...

Persisted:
GUID                                  DEVICE

So even though the attach command did not work, the device appear as Shared only when not using the WSL commands subset.

Can you please help me figure out what I am missing in all this ?

@dorssel
Copy link
Owner

dorssel commented Dec 3, 2023

Duplicate, see #752 (comment)

@dorssel dorssel closed this as completed Dec 3, 2023
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

2 participants