WSL: "A device attached to the system is not functioning."

I’m trying to convert to WSL2.

PS C:\WINDOWS\system32> wsl --set-version Ubuntu 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
A device attached to the system is not functioning.

I don’t believe I have Acrylic DNS installed, but I might be wrong. If someone knows a fix…

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 52 (4 by maintainers)

Most upvoted comments

We are debugging some issues with virtual network creation. The next build will have much better diagnostics.

@benhillis Can you re-open this? The solution given there won’t fix my problem, I’ve never installed any DNS software on my machine. If not, I’ll open a new issue with it…

For me sheer brute force seemed to solve the problem. Maybe a race condition in the conversion procedure. After executing the command in an elevated cmd about 20 to 30 times I got

...
C:\WINDOWS\system32>wsl --set-version Debian 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
A device attached to the system is not functioning.

C:\WINDOWS\system32>wsl --set-version Debian 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Unspecified error

C:\WINDOWS\system32>wsl --set-version Debian 2
Conversion in progress, this may take a few minutes...
For information on key differences with WSL 2 please visit https://aka.ms/wsl2
Conversion complete.

Had the problem again today and rebooting didn’t fix it. So I tried removing Hyper-V with the following command:

Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V

And after rebooting WSL2 is working again. 🤦‍♂

@gbraad the CONTRIBUTING.md file has some instructions on getting more detailed logs for the team.

@flynnham Yeah, I never installed any DNS software like that, so that’s not it.