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 stopped launching #5089

Closed
eritbh opened this issue Apr 15, 2020 · 3 comments
Closed

WSL stopped launching #5089

eritbh opened this issue Apr 15, 2020 · 3 comments

Comments

@eritbh
Copy link

eritbh commented Apr 15, 2020

Please fill out the below information:

  • Your Windows build number: (Type ver at a Windows Command Prompt)

10.0.19041.173

  • What you're doing and what's happening: (Copy&paste the full set of specific command-line steps necessary to reproduce the behavior, and their output. Include screen shots if that helps demonstrate the problem.)

Accessing a WSL terminal just doesn't work. I'm trying to use it by using the wsl command via PowerShell and CMD; neither work. The error returned is "The process cannot access the file because it is being used by another process." Here's an elevated PowerShell session showing me collecting logs while trying to open WSL:

PowerShell Session
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.

Try the new cross-platform PowerShell https://aka.ms/pscore6

PS C:\WINDOWS\system32> cd C:\Users\George\TempLogStuff\
PS C:\Users\George\TempLogStuff> logman.exe create trace lxcore_kernel -p "{0CD1C309-0878-4515-83DB-749843B3F5C9}" -mode 0x00000008 -ft 10:00 -o .\lxcore_kernel.etl -ets
The command completed successfully.
PS C:\Users\George\TempLogStuff> logman.exe create trace lxcore_user -p "{D90B9468-67F0-5B3B-42CC-82AC81FFD960}" -ft 1:00 -rt -o .\lxcore_user.etl -ets
The command completed successfully.
PS C:\Users\George\TempLogStuff> logman.exe create trace lxcore_service -p "{B99CDB5A-039C-5046-E672-1A0DE0A40211}" -ft 1:00 -rt -o .\lxcore_service.etl -ets
The command completed successfully.
PS C:\Users\George\TempLogStuff> wsl
The process cannot access the file because it is being used by another process.
PS C:\Users\George\TempLogStuff> logman.exe stop lxcore_kernel -ets
The command completed successfully.
PS C:\Users\George\TempLogStuff> logman.exe stop lxcore_user -ets
The command completed successfully.
PS C:\Users\George\TempLogStuff> logman.exe stop lxcore_service -ets
The command completed successfully.

And here's the actual log files: lxcode_kernel.etl, lxcore_service.etl, lxcore_user.etl.

  • What's wrong / what should be happening instead:

WSL should show me my Linux prompt and let me do things.

  • Strace of the failing command, if applicable: (If some_command is failing, then run strace -o some_command.strace -f some_command some_args, and link the contents of some_command.strace in a gist here).

N/A

Here they are again: lxcode_kernel.etl, lxcore_service.etl, lxcore_user.etl.

@Neeldip
Copy link

Neeldip commented Apr 15, 2020

Having the same issue. WSL does not launch anymore.
Using 10.0.19041.173.

Launching with cmd and powershell gives:

Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.
For information please visit https://aka.ms/wsl2-install

Update: Seems to be fixed by resetting the distro.

@eritbh
Copy link
Author

eritbh commented Apr 15, 2020

I'd prefer to avoid resetting if possible; I have unpublished changes to a Git repo in this distro that I'm not looking forward to recreating if they're lost.

@eritbh
Copy link
Author

eritbh commented Apr 15, 2020

Wow, I feel dumb. I'd accidentally mounted the WSL virtual disk image by double-clicking it in explorer, and it remained mounted to my machine even though it reported an error that made having it mounted useless. Unmounting the vdisk from Disk Management resolved the issue for me.

@Neeldip it seems unlikely your situation was caused by the same thing; I'd recommend you make a new issue and include your own logs.

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