-
Notifications
You must be signed in to change notification settings - Fork 841
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
Ubuntu installation on WSL1 hangs during cloud-init. #12341
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The script will output the path of the log file once done. If this is a networking issue, please use collect-networking-logs.ps1, following the instructions here Once completed please upload the output files to this Github issue. Click here for more info on logging View similar issuesPlease view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it! Open similar issues:
Closed similar issues:
|
/emailed-logs |
Diagnostic information
|
Thank you for reporting this @yamam. When ubuntu is in this state, could you attach an strace to the cloud-init process so we can see what it's doing ? (strace -p ) Also can you share cloud-init logs (should be in |
|
I wondered if cloud-init is doing something that is failing without systemd but it appears the default cloud-init config for WSL is pretty plain.. I am still suspicious though, I think it might be worth reporting on Ubuntu's wsl-setup repo. |
Thank you @yamam. We have reported the issue to canonical. They're working on a fix. |
Windows Version
Microsoft Windows [Version 10.0.26100.2314]
WSL Version
2.3.26.0
Are you using WSL 1 or WSL 2?
Kernel Version
No response
Distro Version
Ubuntu 24.04
Other Software
No response
Repro Steps
Install Ubuntu as follows:
After rebooting, execute the following:
Run Ubuntu.
It remains stuck on the display "Installing, this may take a few minutes..." for over 10 minutes.
When executing the following command in another command prompt:
At first, it shows that it is installing:
After a while, it becomes clear that the installation is complete:
At this point, run wsl:
Check for any processes that seem to be hanging using ps:
Since cloud-init seems suspicious, kill it:
Then, the installation proceeds and you will be prompted to enter a username:
Expected Behavior
The installation should not hang.
Actual Behavior
The installation hangs.
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: