how to start wsl2 Distro
Please fill out the below information:
-
Your Windows build number: Microsoft Windows [Version 10.0.18917.1000]
-
What you're doing and what's happening: wsl2 stopped when I reboot and I don't know how to start again.
--helpdon't helped me .wslclosed immediately after I open it.wsl -l -vshow blow:
C:\Users\52945>wsl -l -v
NAME STATE VERSION
* Ubuntu-18.04 Stopped 2
bash
I guess you've encountered this issue(#4105).
We’ve labelled your issue as ‘need-repro’ since we need more steps to help identify your problem. Could you please provide us with reproducible steps for the issue you’re experiencing, including things such as the specific command line steps necessary to reproduce the behavior and their output. Thank you! -The WSL Team
@yu-yang2 could you send the command lines and error outputs that you're seeing when trying to start WSL?
What do you see when you run wsl.exe ?
@mscraigloewen When I open wsl.exe, the command box pops up for a second and then closesd immediately, no error logs.
wsl.exe need command line parameters
for example, i just ran wsl.exe -d Debian to run the debian distro
start a powershell cmd shell, and play with the wsl command there (wsl itself doesn't have a UI)
(I'm guessing when you say "open", you mean you double click on it in explorer?)
@SvenDowideit when I run wsl.exe -d Ubuntu-18.04, it shows error blow.
PS C:\WINDOWS\system32> wsl.exe -l -v
NAME STATE VERSION
* Ubuntu-18.04 Stopped 2
PS C:\WINDOWS\system32> wsl.exe -d Ubuntu-18.04
The referenced object type does not support the attempted operation
PS C:\WINDOWS\system32> wsl
The referenced object type does not support the attempted operation
PS C:\WINDOWS\system32> wsl.exe
The referenced object type does not support the attempted operation
@yu-yang2 - that is a new error, could you please collect a trace?
@benhillis cloud you please tell me how to collect wls.exe trace?
Instructions are in our contribution instructions under "collect detailed logs".
same problem after convert wsl1 to 2.
I just upgraded 18990.1 in order to use wsl2, and it stopped.
PS C:\WINDOWS\system32> wsl
远程主机强迫关闭了一个现有的连接。
PS C:\WINDOWS\system32> wsl -l -v
NAME STATE VERSION
* Alpine Stopped 2
PS C:\WINDOWS\system32>
#4105 According to this issue, I cleared the hosts file and used solved it.