-
Notifications
You must be signed in to change notification settings - Fork 822
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
generateResolvConf = false did not work in wsl.conf #5611
Comments
solution seems to have been restarting LxssManager - maybe wsl.conf is only read once per boot (per start of the service?) . |
A |
The need to shutdown WSL for this setting to take effect should be stated as a comment in the default |
|
M$ keep closing these bug tickets without solving the bug. Or they keep repeating and making this bug worse with every update. Windows 10 Entrprise H20 it does not matter what you shutdown it has no absolutely effect. You can cold reboot the computer and it has no effect, the resolv.conf is always overwritten. Now even if you try to make the file immutable chattr +i /etc/resolv.conf, that no longer works. And why this setting is not available in global .wslconfig ? |
@mikezerosix i see the same behaviour with a fresh Ubuntu 22.04 installed through the Microsoft Store. wsl --shutdown did not help either. It is working fine though with Ubuntu 18.04 and 20.04 EDIT: a reboot of the host did the trick |
Still happening on Windows 11 even after the update that came out literally yesterday/today. No dice on any of the fixes. |
It works for me (the first time I forgot to remove symlink and I got the problem)
[network]
generateResolvConf = false
|
Just got windows 11 update. No work-around seems to be helping. This is indeed annoying. Update: |
I am also having this problem. |
OMG, I hate Microsoft so much. How are you still in business when you cannot make a single piece of software that isn't fundamentally broken and riddled with bugs? Upgrade from WSL1 to WSL2 fails. Useless error message. Googling provides help, WSL2 won't install on compressed drive, gets upgrade working. Boots upgraded distro. Network broken. No help. Googling lets you know that you need to install a kernel package thing. |
Works to me sudo rm /etc/resolv.conf |
Why is this closed? The issue still persists. |
Forget about /etc/wsl.conf file that is mentioned in /etc/resolv.conf, because it has no effect. |
Here is what worked for me (so far so good). This seems to be a one-time thing, unless you use multiple different VPNs. You may need reset the Net IP Interface (the very last step) every time you start the VPN. Edit
|
I have WSL2 with debian -all good.
I created a /etc/wsl.conf file
it contains
as per https://docs.microsoft.com/en-us/windows/wsl/wsl-config#network
if i delete /etc/resolv.conf (or edit and save) on start of the next debia WSL2 session it has been regenerated again.
running WSL2 in windows 10 build 20170.rs_prerelease.200710-1419
Environment
Steps to reproduce
Expected behavior
Actual behavior
The text was updated successfully, but these errors were encountered: