-
Notifications
You must be signed in to change notification settings - Fork 834
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
Conversion in progress... stuck? #5344
Comments
Use task manager and see if |
Wasn't doing too much disk access but was using 32GB of RAM (all of it). Its just finished so did it did work, but it took 2 1/2 hours. |
Closing as duplicate |
The title of this issue says it all: Conversion in progress... stuck? Slow progress may be caused by insufficient ram #4669 or Antivirus/Window Defender or anything else. But that does not imho make this issue a dup. |
are you sure that it takes 30 minutes or so? Cuz in my case, it never got completed |
Yes, it's got completed within 30-40 mins I guess. Actually, this problem was face by many folks/developers out there, so I think you're not the only one. Read this thread, you'll understand : Reddit - WSL 2 conversion taking too long I hope it helps :) |
It is faster to install a GNU/Linux distribution in WSL2 than converting from WSL1 (ext4 >>>> NTFS). |
It had sucked almost one hour and when I was taking a screenshot to post here, it suddenly finished! So I posted the result here to stimulate more patience. However. The official prompt for the conversion should be warning users that it will takes dozens of minutes rather than some minutes! |
Hey all, I left it overnight and am still having STATE: Installing. This is on a work computer which heavily utilizes One Drive. Could this cause the install to be even slower? I have also disabled Windows Defender |
It takes me over 3 hour, and it still has not finished yet |
I had wsl console (from windows/system32) open in the background (didn't notice) when I started the update in PowerShell. It was running good 30 minutes when I noticed that the wsl console was displaying a message that it's terminated. But wsl didn't close. It kept consuming 20% of the CPU. Disk usage was on 0. I couldn't kill the wsl process any way I tried so I just restarted my laptop and updated in 5 minutes (or less idk). |
I just finished converting ubuntu 20.04 to wsl2. |
I was connected to VPN trying to convert to WSL2... vmmem flatlined. Disconnected from VPN and saw CPU go back up to .1%... so looked like it was trying to do something... Disk still at 0MB/s however. |
After about half an hour of Vmmem maxing out the CPU and 8 GB of RAM, memory usage eventually dropped back down to 1 GB. I almost gave up, seeing as there was apparently no CPU activity and no output on the console - but after 10-15 minutes of inactivity, the command finally returned with "conversion complete". Yeah, there ought to be a progress indicator of some sort for an operation this long. |
So I don't know what it's worth but I was stuck for a little while and I simply dragged the Powershell Window into another of my screens and suddenly the conversion was complete ... weird coïncidence may be? But may be it could help other ppl so I have to tell you guys. |
While trying to import a 5GB tar file, wsl consistently fails saying "Importing distribution failed" after like 10 minutes trying to convert. Interestingly, when I try to import via LxRunOffline and then try to convert to wsl2, it fails again, with the same error message "Importing distribution failed." |
Can you use a smaller tar file to import then install the software? |
it consistently gets stuck, I let it run for 36 hours multiple times:
I've also tried exporting / reimporting the distribution, while the export works well, the import gets stuck: wsl --export <distro> wsl.tar
wsl --import <distro> C:\Users\me\wsl\<distro> .\wsl.tar |
@syffs hey did it got solved |
@arnavmehta7 no, I gave up for now... wsl is a tool for me, can't spend hours/days setting up my tools, delaying the actual work. |
Ctrl + c to terminate the process, restart the system, and then try conversion again fixed the issue. It finished in less than a minute after the restart. I was trying to convert from version 1 to version 2 using |
Adding another piece of anecdata - I hit this issue as well. Was waiting for about 30 minutes with no apparent activity in Task Manager. I pressed CTRL+C to quit the process, restarted laptop, ran I made sure not to start the WSL1 version before doing this, so not sure if it made a difference. But yes, a progress bar would be nice. :) |
WE NEED A PROGRESS BAR! |
Mine was running for a while with very little disk activity. In another window I ran
I've started the conversion again and it's showing heavy disk usage so looks like it is working now. Edit: Yes, completed in a little more than the time it took me to write the above comment. |
I figured a way to heuristically measure the progress of this: you can run a For example, if my Linux system had an original size of 8G, and my C: drive had 32G left in the beginning, and during the process 27G is left, the progress so far is (32-27)/8 = 62.5% |
I'm sorry, but the mention of |
Even better, you can watch the VHDX file being built in this location (though I'm not sure if it's exactly the same hash for everyone): Separately, I came across this issue initially because of the hang but found there were 2 things happening which were going to cause issues with it ever finishing:
Much more messaging for this operation would be helpful, both in progress tracking and in communicating errors. It's so opaque as it stands today. |
tl;drIn my case, no conversion was needed. I've just updated ( Long story
Then I've read somewhere, that it's possible to download After all this, I've decided to install Ubuntu-22.04 (
|
Environment
Microsoft Windows [Version 10.0.19041.264]
Converting from WSL 1 to WSL 2
Steps to reproduce
wsl --set-version Ubuntu 2, --set-default-version 2
Expected behavior
Conversion says its should take a few minutes
Actual behavior
Conversion has now been running for nearly an hour and no sign of activity.
I have checked in a seperate window and it does report that it's still converting.
Is there any way to check on the actual progress, could I have something in my environment which is either taking a long time or has hung?
I obviously don't want to kill the upgrade as that could cause me to loose all of the work I have in WSL.
The text was updated successfully, but these errors were encountered: