-
Notifications
You must be signed in to change notification settings - Fork 846
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
wsl2 Ubuntu-22.04 The netplan does not work after the restart #11006
Comments
Hi I'm an AI powered bot that finds similar issues based off the issue title. Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you! Open similar issues:
Closed similar issues:
|
@yyyyyyyysssss: Netplan probably depends on systemd to reapply the settings on reboot. Is systemd enabled in your distro ? |
|
Thank you @yyyyyyyysssss. Reading a bit netplan I can see that the way it works is that it generates configuration for systemd-networkd and network-manager. In the case of WSL this is unfortunately not well supported. What you can try instead would be calling
|
Two ip addresses appear after the wsl --shutdown is executed: |
|
@yyyyyyyysssss: I'm not following. Are you saying that another version of debian doesn't hit the issue ? Is this within WSL or outside of WSL ? |
My wsl has two distributions installed. The netplan configuration of the ubuntu distribution does not take effect, and the netplan of the Debian distribution works normally |
wsl内,我安装了两个发行版,一个ubuntu2204一个Debian12。其中ubuntu2204发行版的netplan启动后不生效,需要手动执行 netplan apply才生效。而Debian12发行版配置的netplan是正常工作的。 |
Ok. In this case this is most likely distro / configuration specific, so unfortunately this is something that WSL can solve. I'd recommend opening an issue with the distribution itself. |
Windows Version
Microsoft Windows [版本 10.0.22621.2715]
WSL Version
2.0.9.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.133.1-1
Distro Version
Ubuntu 22.04
Other Software
Docker version 23.0.5, build bc4487a
Repro Steps
wsl --shutdown
Expected Behavior
netplan config:
run netplan apply is work properly, but netplan does not work after wsl --shutdown is executed
This is the result of executing netplay apply:
This is the result of executing wsl --shutdown:
Actual Behavior
run netplan apply is work properly, but netplan does not work after wsl --shutdown is executed
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: