-
Notifications
You must be signed in to change notification settings - Fork 823
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: Hyper-V firewall is not supported wsl: Mirrored networking mode is not supported, falling back to NAT networking #10495
Comments
/logs |
Hello! Could you please provide more logs to help us better diagnose your issue? To collect WSL logs, download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:
The scipt will output the path of the log file once done. Once completed please upload the output files to this Github issue. Click here for more info on logging Thank you! |
Have the same problem |
WslLogs-2023-09-19_21-43-45.zip |
i think i know how we can fix it in first remove all linux distro then full remove wsl(dont remove wsl in first) |
@keith-horton - Could we adjust the error message so it's clear that the version of Windows they are running does not support the feature? It's currently a little confusing. |
@benhillis |
My win11 is dev, Build 23545 ,and have the same problem |
My PC1 with dev channel version: 23550 shows this error |
OS build 23545.1000 having this problem too. |
No luck for me |
Having the same issue. Running Windows 11 22621.2283 Home. Could this be related to Home vs Pro versions of Windows? |
Same issue. Windows 11 Pro 22621.2283
I dont think so. Maybe it only works on Insider versions? |
I'm on the latest dev channel insider build of Windows 11 and I'm getting the unsupported message for every feature in the blog post that was listed as "Insider Only" |
From Craig's video, only autoProxy, autoMemoryReclaim, and sparseVHD can be accessed through Windows 11 22H2 now. You need insider's builds for the other networking. What I thought was suggested but not confirmed is that some of these features would be backported to Windows 10. Is this true or not? |
Sorry for the confusion. Hyper-V Firewall and Mirrored networking support will soon be available on the latest Windows 11 release through a Windows Update. Until then, one must opt into Insider Builds - those build numbers will be in the range 255xx. Opting into Windows Moments is different - those are feature updates to Windows 11, but those do not really go through the Windows Insider program. Those builds numbers will be in the range 235xx. The traces I've seen so far are either from a Windows release that's not from the Windows Insiders, or the trace wasn't taken while WSL was attempted to be started. If you have a 255xx build from Windows Insiders, I would be happy to look at the logs. Thanks! |
I'm still a bit confused. I'm in the Windows 11 insider dev channel, and the latest build available to me is |
Right - sorry about that. This would be in the Canary Channel. |
my self fixed issue :) but before reboot: https://superuser.com/questions/1152280/get-net-powershell-cmdlets-failing-with-invalid-class if you followed link and get error from " next step: now reboot your PC |
test my solution if not fixed report it here |
but new problem issue: |
Sadly, the Proxy API to detect a proxy can take a while, especially when set in a connectoid like with some VPNs. In those cases we opted to not slow down WSL startup while we waited to see if a proxy was detected; but it does mean you have to restart the container that first time :( Sorry about that. We tried to balance the best user experience. |
its very important for WSL Enterprise usage and should fix in future |
When I get a push from the dev channel, build23550, I see the following prompts but now,wsl have this problom, |
I forced the upgrade to Canary and WSL now works perfectly. |
Dev and Beta channels should get the support in the next builds. |
This confused me as well. It's specifically mentioned in this blog and I'm on 23555 as mentioned in the same blog. |
I'm on build 25951 and WSL 2.0.2, I enabled networkingMode=mirrored, but I still cannot access the linux IPv4 address from Windows, let alone another device in the same local network. |
Hi there. If they are the same, and you want to access port 8000, you'll need to add a Hyper-V Firewall rule to allow that inbound traffic. You can use the New-NetFirewallHyperVRule powershell command'let to add a new rule. |
Even the Release version works, but not the dev version, this can be seen as a bug in the dev version, right? |
I completely agree. This should be considered a bug in the development version, as it caused a lot of confusion for me until I came across this issue. |
Confirmed.
My understanding was that using "firewall=true" in .wslconfig and disabling the Windows Firewall altogether, WSL should have picked it up automatically. Not working this way, could you be more specific about what command to run? I tried something like this one with no luck. |
Hi there. Setting firewall=true in the .wslconfig file will enable Hyper-V Firewall for that WSL container instance. If the host Windows Firewall is enabled, we will mirror all Windows Firewall rules that are based on IP addresses or port numbers (not user ids or applications). And you can run NetFirewallHyperVRule powershell command'lets to view/add/remove rules for Hyper-V Firewall. If you have an OS with the necessary updates, these powershell commands should work. Both of these must work for Hyper-V Firewall to be enabled. get-NetFirewallHyperVVMCreator this should show something like; get-NetFirewallHyperVProfile this should show Public, Private, and Domain profiles like Name : {40E0AC32-46A5-438A-A0B2-2B479E8F2E90} |
Hey, you guys have any word on when this is coming to Dev? It's been sometime already |
Any information on having support for this on windows 10, or is it just not coming to it at all? |
Sorry, we have asked. As of today, we do not have plans to take this back to Windows 10. |
Looks like mirrored networking is enabled on the dev channel as of today's 23580 build. |
Error code: Wsl/Service/CreateInstance/CreateVm/ConfigureNetworking/0x803b0015 |
Hi there. If you are hitting a new error code, can you open a new GitHub issue + capturing traces? |
Can someone explain, why this doesnt work under Windows 10? It is a shame, because corporate machines will stay on Windows 10 for a long time and Windows 11 ist still not an option for many corporations.
I have a corporate Laptop without any Admin rights, so I have only this way of getting wsl configured. I really want to get rid of "wsl-vpnkit" when I am behind a VPN. |
Sorry, those features are not available on Windows 10. They are only on Windows 11. |
But here it states "Entries with an ** after the value type require Windows version 22H2 or higher.": https://learn.microsoft.com/en-us/windows/wsl/wsl-config |
It's a shame this is Windows 11 only where almost every company is still using Windows 10. Sometimes I really question some decisions. |
Same boat. Super annoying. Though I do have local administrator privileges, I still have not found any workaround to the VPN issue. Also stuck on windows 10. |
The only way right now to get WSL to work on a vpn is this tool: |
I ran across this issues as I was searching for a fix for this:
For anyone else that's seeing that: I was on Win11 23H2 but didn't have the latest updates for it and installing those resolved the issue. |
Windows Version
10.0.25931.1000
WSL Version
2.0.0.0
Are you using WSL 1 or WSL 2?
Kernel Version
5.15.123.1-1
Distro Version
ubuntu 22 and kali linux
Other Software
cmd
Repro Steps
wsl - kali or ubuntu:
error:
wsl: Hyper-V firewall is not supported
wsl: Mirrored networking mode is not supported, falling back to NAT networking
Expected Behavior
wsl - kali or ubuntu:
error:
wsl: Hyper-V firewall is not supported
wsl: Mirrored networking mode is not supported, falling back to NAT networking
but linux will start
Actual Behavior
wsl - kali or ubuntu:
error:
wsl: Hyper-V firewall is not supported
wsl: Mirrored networking mode is not supported, falling back to NAT networking
but linux will start
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: