-
Notifications
You must be signed in to change notification settings - Fork 21
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-20.04 has stopped working #28
Comments
I just run into the same problem. I found microsoft/WSL#5393 issue as a possible fix for this, however I am not familiar with the internals of Do you have any estimation about when this can be fixed? I don't want to hurry you at all, just asking to have more information to decide how to proceed with this in our workflow, whether we should find a workaround this or wait a few days for the fix. |
Hi guys, thanks for the reports. It is broken since somewhen yesterday. I have a daily CI run on all sorts of combinations and it started to fail today, but only on That issue ist not really a fix, it is two years old and contains several ways that worked for some and not for others. They all just show the usual problems some people have when trying to get WSL2 or WSL in general up and running, but thanks for finding it. There was a new release of the As a work-around, if you don't depend on the specific Windows version, use |
Upstream report: actions/runner-images#5760 |
Unfortunately the Azure cloud the build agents are running on do not support nested Hyper-V virtualization, |
In windows-2022 environment WSLv2 is now generally available and the default, but it cannot work as GitHub actions are running on Azure cloud where nested Hyper-V virtualization is not available. GitHub will change the default WSL version back to WSLv1 in a future update but to be future proof and not break again in case WSLv2 becomes properly available in the future, we force it additionally in the action.
In windows-2022 environment WSLv2 is now generally available and the default, but it cannot work as GitHub actions are running on Azure cloud where nested Hyper-V virtualization is not available. GitHub will change the default WSL version back to WSLv1 in a future update but to be future proof and not break again in case WSLv2 becomes properly available in the future, we force it additionally in the action.
It might not be very important but I observed that the call to While only a visual annoyance, maybe we can find a way to avoid displaying that failure or even running the command only when needed instead of always. |
How do you define "default windows runners"? I'm aware that the command fails on To execute if only when needed would mean that I would need to make another command first like Are your feelings about that so strong while at the same time not being able to switch to a newer Windows? |
Last attempt to switch to Windows 2022 was a total waste of time as the jobs using WSL on it where crashing, as in runner becoming totally unresponsive. That is why we continued to use 2019. We wasted few days and Microsoft Support was not able to do much about it but I seen them doing some kind of ack regarding knowing about some stability issues. As they change runners often, we will try again. In fact I am already testing with 2022 and will use it if it works. BTW, I really appreciate you taking time to help others dealing with WSL-joys in their actions. It is a very stressful experience so 2x kudos! A warning like this probably does not worth your time but if someone else would make a PR, you can review it. |
I quickly built a new version where it checks whether the option is available. |
Everything worked until today (but it could have broken earlier):
And it doesn't work now:
Workflow.
The text was updated successfully, but these errors were encountered: