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 not being usable after computer startup when Fast Startup enabled #6244

Closed
kevinbioj opened this issue Nov 15, 2020 · 5 comments
Closed

Comments

@kevinbioj
Copy link

Environment

Windows build number: 19042.630
Your Distribution version: Debian 10
Whether the issue is on WSL 2 and/or WSL 1: WSL 2

Steps to reproduce

To reproduce this issue, you must have enabled (or left enabled, because it's default) the Fast Startup option in power settings.

  • Install WSL 2 and a Linux distribution of your choice.
  • Configure an app to work with WSL : for this example use Visual Studio Code's WSL integration.
  • Shutdown your computer (through the "Shutdown" option, not "Restart").
  • Turn it back on.
  • Open Visual Studio Code and notice that it cannot launch WSL properly.

WSL logs:

Expected behavior

When using the Visual Studio Code example, the editor would load up correctly and the opened bash terminal should wait for user input.

Actual behavior

We are getting some odd input/output errors probably due to Linux kernel not being recovered well from the "fast startup". If you disable this option, the whole Windows and Linux kernel are being shut down, like what "Restart" does (and which is why we never encounter this issue after a "Restart"), so everything is loaded up correctly at next boot.

At the moment, we either need to disable fast startup which can be pretty idiot because it offers a really great boot time on fast SSDs, or run "wsl --shutdown" when we login either ourselves or via a planned task (what I did for now).

I don't really know what would be a fix, maybe shutting down WSL properly when "Shutting computer down" or going deeper to find the actual root cause, no idea.

@therealkenc
Copy link
Collaborator

Please collect WSL logs and post the backlink to the feedback item here. Goal of the diagnostic run would be to catch the "odd input/output errors".

@tomartarun89
Copy link

Whenever I enable WSL2 along with Virtual Machine Platform and move the mouse the screen starts to flicker. I have tried it several times but the issue still persists. WSL1 works fine.

@tmtron
Copy link

tmtron commented Dec 12, 2020

I have the same issue. Windows Restart is a workaround for now.
Windows version 10 Build 19041.630
Not sure if this is related, but it stopped working after I have updated docker to 3.x

@tomartarun89
Copy link

I have the same issue. Windows Restart is a workaround for now.
Windows version 10 Build 19041.630
Not sure if this is related, but it stopped working after I have updated docker to 3.x

I was able to figure a workaround. Just disable the fast boot from BIOS. It will increase the boot time by 3-4 sec but the issue will be resolved. The issue is that the WSL is not getting initialized properly.

@xBsWYA2wYfuxW0FB
Copy link

Whenever I enable WSL2 along with Virtual Machine Platform and move the mouse the screen starts to flicker. I have tried it several times but the issue still persists. WSL1 works fine.

I had the same exact problem with WSL1.

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

No branches or pull requests

5 participants