Skip to content
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

wsl: Failed to configure network (networkingMode Nat), falling back to networkingMode VirtioProxy. #12297

Open
reisraff opened this issue Nov 19, 2024 · 17 comments

Comments

@reisraff
Copy link

After a system recovery (from a restore point) the wls started to print this out.

Image

Copy link

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
Otherwise please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

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
If you choose to email these logs instead of attaching to the bug, please send them to [email protected] with the number of the github issue in the subject, and in the message a link to your comment in the github issue and reply with '/emailed-logs'.

@HyperBrain
Copy link

I have the same issue but there was no clear action I took to trigger it explicitly (maybe a Windows update did). Just appeared.

@blaisemGH
Copy link

I have this error message since the latest windows update (build 19045) about a week ago. The vmmem process started hanging, couldn't access it or stop it (tried both task manager and stop-process in PS, both had access denied). Restarting it with wsl --shutdown just hanged. I eventually stopped it with taskkill /f /im wslservice.exe. When it started up again, I had this error message.

@reisraff
Copy link
Author

@flerxu
Copy link

flerxu commented Nov 21, 2024

Me too.

@Kostovite
Copy link

Kostovite commented Nov 21, 2024

I just got this problem to day too 🥲, a network reset do fix it

@flerxu
Copy link

flerxu commented Nov 22, 2024

I just got this problem to day too 🥲, a network reset do fix it

Did not work.

@illiafilipov
Copy link

WSL version:

WSL version: 2.3.26.0 Kernel version: 5.15.167.4-1 WSLg version: 1.0.65 MSRDC version: 1.2.5620 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26100.1-240331-1435.ge-release Windows version: 10.0.26100.2033

Resolved by switching to the 'Mirrored' networking mode in the WSL settings as follows:
Image

@Anandha001
Copy link

Image

i am not able to fix it even after network reset, uninstalled ubuntu, reinstalled ubuntu, installed kali nothing worked

@Artain
Copy link

Artain commented Dec 1, 2024

For me worked to run
wsl --install --no-distribution
after a reboot of the host the network was working again.

@acagnetti
Copy link

same here, tried all workarounds here but nothing... I can connect to network from WSL but certain python apps do not work anymore (when connecting to some services in the WSL machine

@borjamunozf
Copy link

Same for one developer. It started to show that err and we cannot fix it:

Tried to:

  • wsl --install --no-distribution
  • Reinstall Windows Hypervisor Platform / Virtual Machine Platform / Windows Subsystem for Linux.

This is extremely annoying....

@vinsent2002
Copy link

Check if Virtual Machine Platform is installed on your device. For me Virtual Machine Platform was not installed after upgrading to Windows 11 24H2.
Enable-WindowsOptionalFeature -Online -FeatureName "VirtualMachinePlatform"

@markodraisma
Copy link

Same problem for me. Dns works, now that I've added 172.0.0.2 to the nameservers (using this fix), ping doesn't work. I've also tried to install another distribution (had Debian, added Ubuntu), hoping that it would add some missing adapter, but it has no effect.

@markodraisma
Copy link

I've tried many things, but I think that what finally worked for me was:

  • update WSL2 to pre-release with wsl --update --pre-release
  • remove Virtual Machine Platform from windows options, and add it again
  • add the following to %UserProfile%/.wslconfig:
[wsl2]
dnsTunneling=false
  • start /etc/resolv.conf with:
    nameserver 1.1.1.1

@unablem
Copy link

unablem commented Jan 17, 2025

WSL version:

WSL version: 2.3.26.0 Kernel version: 5.15.167.4-1 WSLg version: 1.0.65 MSRDC version: 1.2.5620 Direct3D version: 1.611.1-81528511 DXCore version: 10.0.26100.1-240331-1435.ge-release Windows version: 10.0.26100.2033

Resolved by switching to the 'Mirrored' networking mode in the WSL settings as follows: Image

Wsl Network True Ways thank you work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests