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

Mirrored mode "required features" #11952

Open
1 of 2 tasks
quarrel opened this issue Aug 23, 2024 · 6 comments
Open
1 of 2 tasks

Mirrored mode "required features" #11952

quarrel opened this issue Aug 23, 2024 · 6 comments
Labels

Comments

@quarrel
Copy link

quarrel commented Aug 23, 2024

Windows Version

Microsoft Windows [Version 10.0.22631.4037]

WSL Version

2.3.17.0

Are you using WSL 1 or WSL 2?

  • WSL 2
  • WSL 1

Kernel Version

6.10.3

Distro Version

Ubuntu 24.10

Other Software

No response

Repro Steps

When first set up, mirrored mode was working as expected.

Since (I think?) my last WSL upgrade (via "wsl --update --pre-release"), when first launching a shell I see:

"
wsl: Mirrored networking mode is not supported: Windows version 22631.4037 does not have the required features.
Falling back to NAT networking.
"

NAT networking works as expected, but mirrored is, well, better.

Mirrored is set via a .wslconfig, which hasn't changed since it was working.

Afaik my Win11 build hasn't recently changed (since KB5041585 was installed 14 August 24), nor have I knowingly disabled any Win11 features that WSL should rely on (although is there any easy way for me to check?). In any event, the docs suggest that anything higher than 22H2 should have the required features.

Expected Behavior

Mirrored mode should work.

Actual Behavior

Mirrored mode does not work.

Diagnostic Logs

No response

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'.

View similar issues

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!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.

@quarrel
Copy link
Author

quarrel commented Aug 23, 2024

See attached logs from collect-networking-logs.ps1

WslNetworkingLogs-2024-08-23_14-12-07.zip

Copy link

Diagnostic information
.wslconfig found
	Custom kernel found: 'C:\Users\daz\wsl2\bzImage'
Detected appx version: 2.3.17.0
optional-components.txt not found

@quarrel
Copy link
Author

quarrel commented Aug 27, 2024

Since a recent reboot, I can no longer reproduce this error.

I have almost always used WSL (and mirrored mode) on a wired ethernet connection that does not change.

I have recently been travelling and exclusively on wifi, oft-times with changing wifi networks through my day.

If I had to guess, this error was produced because of this change, but it is just a hunch given my recent change in usage.

In any event, the error message seems unhelpful or incorrect, however I triggered it.

I'll see if I can reproduce it over the coming days, or otherwise gain any further insight.

@CatalinFetoiu
Copy link
Collaborator

thanks for reporting the issue
if you are able to repro again, please collect networking logs using instructions at https://github.com/microsoft/WSL/blob/master/CONTRIBUTING.md#collect-wsl-logs-for-networking-issues

the script will create a zip with name starting with "WslNetworkingLogs"

@jamesalucas
Copy link

I had the same issue, running Windows 11 23H2 (same on both 22631.4027 and then 22631.4169) and I tried all sorts of fixes. The one that eventually worked was this one. So commenting here in case it helps someone else in the future. As soon as Get-NetFirewallHyperVPort worked, I stopped getting the error and mirrored networking worked as expected.

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

No branches or pull requests

4 participants