WSL2 not working properly on Windows. Required to disable network.
Having issues with launching any linux distro within Windows.
For context it was working, and on Jan 29th it stopped working. There was a Powershell v7.3.11 update on windows but I don't believe it was working.
Currently I'm trying to launch WSL2 using Ubuntu-22.04 distro.
I get the following error:
Failed to configure network (networkingMode Nat). To disable networking, set `wsl2.networkingMode=None`
Disabling the network does make it work but I need to be able to connect online to use it. I tried tunneling as well it but to no success
I followed solutions from git and stack threads. Such as https://github.com/microsoft/WSL/issues/10709, https://github.com/microsoft/WSL/issues/10774, https://github.com/microsoft/WSL/issues/10709 https://zcusa.951200.xyz/en-us/troubleshoot/windows-client/application-management/virtualization-apps-not-work-with-hyper-v
I have VMP and Windows Subsystem for Linux enabled on Windows Features.
I've tried:
- Disabling Hyper-V from Windows Features on/off. Reboot. Launch distro, does not work. BUT I did notice that even if I disable Hyper-V and restart there is a lingering effect, making it partially enabled on start.
- First image is after disabling and reboot.
- I attempted to disable from Powershell with the following commands found in the threads but it didn't work. The output was
Please enable the "Virtual Machine Platform" optional component and ensure virtualization is enabled in the BIOS.
even though VMP was enabled and virtualization was enabled after reboot. To undo this, I had to set uphypervisorlaunchtype auto
-
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-Hypervisor
-
bcdedit /set hypervisorlaunchtype off
-
- I tried uninstalling WSL, the Ubuntu distros and everything related. Reboot and go into BIOS. Disable virtualization. Start Windows. Reboot. Re-Enable virtualization. Reboot. Start Windows and install again WSL and ubuntu distros from the windows store. No luck.
I'm stuck on it, any other ideas?
edit: syntax and some more info