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 just hangs when I start it. #10028

Closed
1 of 2 tasks
TonyHsieh opened this issue Apr 25, 2023 · 4 comments
Closed
1 of 2 tasks

WSL just hangs when I start it. #10028

TonyHsieh opened this issue Apr 25, 2023 · 4 comments

Comments

@TonyHsieh
Copy link

Windows Version

Microsoft Windows [Version 10.0.19044.2728]

WSL Version

1.2.4.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

No response

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

I double-click on Ubuntu icon and it just hangs.

It was just working before. I haven't changed anything.

Sometimes I have run PS C:\Users\thsieh01> Get-Service vmcompute | Restart-Service to make it work.

But this time I got this message:
PS C:\Users\thsieh01> Get-Service vmcompute | Restart-Service
Restart-Service : Service 'Hyper-V Host Compute Service (vmcompute)' cannot be started due to the following error:
Cannot start service vmcompute on computer '.'.
At line:1 char:25

  • Get-Service vmcompute | Restart-Service
  •                     ~~~~~~~~~~~~~~~
    
    • CategoryInfo : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Restart-Service]
      , ServiceCommandException
    • FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.RestartServiceCommand

Expected Behavior

Expecting to get a working WSL Ubuntu command prompt

Actual Behavior

WSL just hangs when I start it.

Diagnostic Logs

WslLogs-2023-04-25_15-00-19.zip

@TonyHsieh
Copy link
Author

Ok. I tried running as Administrator Powershell - "gpudate /force" - that finished ok.

Now I when I run WSL - I get
"Error: 0xc0000409
Error code: Wsl/Service/CreateInstance/CreateVm/0xc0000409"

Don't know what to do now.

@TonyHsieh
Copy link
Author

@cesargongora
Copy link

Windows Version

Microsoft Windows [Version 10.0.19044.2728]

WSL Version

1.2.4.0

Are you using WSL 1 or WSL 2?

* [x]  WSL 2

* [ ]  WSL 1

Kernel Version

No response

Distro Version

Ubuntu 20.04

Other Software

No response

Repro Steps

I double-click on Ubuntu icon and it just hangs.

It was just working before. I haven't changed anything.

Sometimes I have run PS C:\Users\thsieh01> Get-Service vmcompute | Restart-Service to make it work.

But this time I got this message: PS C:\Users\thsieh01> Get-Service vmcompute | Restart-Service Restart-Service : Service 'Hyper-V Host Compute Service (vmcompute)' cannot be started due to the following error: Cannot start service vmcompute on computer '.'. At line:1 char:25

* Get-Service vmcompute | Restart-Service

* ```
                      ~~~~~~~~~~~~~~~
  ```
  
  
      
        
      
  
        
      
  
      
    
  
  * CategoryInfo          : OpenError: (System.ServiceProcess.ServiceController:ServiceController) [Restart-Service]
    , ServiceCommandException
  * FullyQualifiedErrorId : CouldNotStartService,Microsoft.PowerShell.Commands.RestartServiceCommand

Expected Behavior

Expecting to get a working WSL Ubuntu command prompt

Actual Behavior

WSL just hangs when I start it.

Diagnostic Logs

WslLogs-2023-04-25_15-00-19.zip

i have the same problem.
OS 10.0.19045.2913 22h2
and
WSL version: 1.2.5.0
Kernel version: 5.15.90.1
WSLg version: 1.0.51
MSRDC version: 1.2.3770

Copy link
Contributor

This issue has been automatically closed since it has not had any activity for the past year. If you're still experiencing this issue please re-file this as a new issue or feature request.

Thank you!

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