-
Notifications
You must be signed in to change notification settings - Fork 821
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
Error code: Wsl/Service/CreateInstance/CreateVm/WSAENOTCONN Press any key to continue... #11791
Comments
Logs are required for review from WSL teamIf this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. How to collect WSL logsDownload 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 View similar issuesPlease 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! Closed similar issues:
|
我也遇到了同样的问题 请问怎么操作可以解决? |
我知道如何解决了 预览版的WSL有问题 去下载正式版的2.2.4.0就可以解决问题了 |
就是github 的链接吗 |
是的就是 正式版的下载之后重新安装一下就可以了 |
数据会被覆盖么? |
2.3.11.0 同样的问题,正用着直接crash了然后启动不了了 |
我目前也是2.3.11.0,怎么降级到2.2.4.0? |
WslLogs-2024-07-19_13-37-06.zip |
I'm having the same issue starting up the kernel built from the WSL2 kernel source with tag
WSL2 info:
|
This comment was marked as duplicate.
This comment was marked as duplicate.
https://github.com/Nevuly/WSL2-Linux-Kernel-Rolling |
@chessturo could you please fix this, thanks |
Hey! I'm currently investigating, but don't have an estimate for when it will be fixed. Please feel free to let me know if new information comes up (for example, if the problem persists after a WSL update, or conversely if a WSL update fixes it) |
2.3.12 |
The issue also exists in version 2.3.13. |
Asking here since this seems to be the most active thread on this issue. I'm still having trouble reproducing the bug on my end, but my suspicion is that this is related to something particular to certain CPU models. I am hopeful that adding the following config will help (please see here for details): [wsl2]
kernelCommandLine=noxsave I would really appreciate it if those affected could try this and report back on if it works or not (preferably along with dmesg and/or WSL logs). I'm continuing to work on reproducing this on my end, so hopefully I shouldn't have to ask too much more of y'all. Thanks for the reports, and thanks in advance to anyone who's willing to help test out this fix! |
It works! And the problem appeared on my Intel CPU and not on the AMD CPU, as you said. |
@chessturo thank, it works |
it works! here is dmesg log and my cpu is i5-12500 |
@chessturo it works! |
I did the same as @nnathan and the
|
@chessturo thank, it works |
@mortenfc looking at your logs, it looks like your problem has a different root cause. I would suggest opening a new issue (and you can remove the |
Alright, unfortunately I haven't been able to get access to a machine that's affected with the bug, but I am hopeful that I have figured out the root issue. If anyone is interested in testing a root-cause fix, please do the following on a working WSL install (e.g., via the
PLEASE NOTE: Thanks again for the bug reports and testing out the original |
@chessturo i'm having issues checkouting in PS... will try into wsl
btw, the |
tried into Pengwin WSL with make installed
got error 2, sorry :( |
@genuinefafa Ah sorry, yeah this all needs to be done on WSL. I've updated my instructions to include the details. I'm not sure what exactly is causing that issue --- likely something further up than where your logs are cut off. If you re-run the make command immediately after getting that error, it should produce much less output and include some more details on what build step failed. I'd also double check you have all the dependencies via Thanks for your help testing this out, I really appreciate it! |
@chessturo here is the log. |
I encountered two yes-or-no questions when I started compiling. I simply pressed Enter without knowing if it would affect the final result, but I thought it was important to let you know. |
Thank you for testing this, and I'm glad to hear it works! And don't worry, that's expected, though I appreciate you letting me know --- I've updated the directions to clarify as well. |
@chessturo i can confirm that it works now there were some packages needed that were not there before (i did follow readme from the repo) fun to see that I'm running my own WSL versión 😀 |
@genuinefafa Glad to hear everything is working! And yes, being able to change WSL kernels without too much trouble is a very handy feature to have :) I'm hoping to have a patch based on this sent upstream and included in WSL here soon. I will update this thread once that's all sorted and everyone who's affected will be able to take the |
anyone can explain this ? use the config networkingMode=mirrored, wsl works。change to nat mode, has the same problem 。
|
@cuivip This looks like a different problem from what this thread is discussing. I would suggest opening a new issue |
Thank you @heartacker. This issue was caused by the new kernel that we shipped we 2.3.11. We have reverted to the 5.5 kernel in 2.3.13 which should resolve the issue. |
(In particular, anyone who added the |
I hate to pop in on this issue, but using 2.3.21 I ran into the same 0x80072749 issue as well. CPU: Xeon Platinum 8592+ kernelCommandLine=noxsave resolved the issue for me. XSave does work in other contexts (Specifically, VMware Workstation running OpenVMS 9.2-2 and E9.2-3).
Tagging this on here as I found it to be marked a dupe of #11844 which is my exact issue. Issue was also present on the stable/production 2.2.4 on the system after initial clean installation. WSL has never worked on this setup. Attached log capture shows a failure to launch (WSAENOTCONN), unregister, then failure to re-install without noxsave in the configuration. Second run attached with noxsave showing functional install and system. WslLogs-2024-09-17_09-34-34.zip |
Ah ok, definitely looks like the same issue. |
It seems that my original fix was actually not applied to 5.15 stable kernels and needed some tweaking. Unfortunately I still haven't been able to get access to a machine that's affected with the bug. If possible, I'd like to be able to test this backport. If anyone with an affected machine is interested in testing this, please do the following on a working WSL install (e.g., via the
PLEASE NOTE: I really appreciate all the help from the community on getting this issue resolved 😄. If anyone gets a chance to try this kernel, please let me know whether it works/helps! |
Windows Version
版本 Windows 11 专业版 版本号 24H2 安装日期 2024/4/6 操作系统版本 26120.961 体验 Windows Feature Experience Pack 1000.26100.8.0
WSL Version
WSL 版本: 2.3.11.0 内核版本: 6.6.36.3-1 WSLg 版本: 1.0.63 MSRDC 版本: 1.2.5326 Direct3D 版本: 1.611.1-81528511 DXCore 版本: 10.0.26100.1-240331-1435.ge-release Windows 版本: 10.0.22631.3880
Are you using WSL 1 or WSL 2?
Kernel Version
No response
Distro Version
No response
Other Software
No response
Repro Steps
由于套接字没有连接并且(当使用一个 sendto 调用发送数据报套接字时)没有提供地址,发送或接收数据的请求没有被接受。
Error code: Wsl/Service/CreateInstance/CreateVm/WSAENOTCONN
Press any key to continue...
Expected Behavior
WSL 版本: 2.3.11.0
内核版本: 6.6.36.3-1
WSLg 版本: 1.0.63
MSRDC 版本: 1.2.5326
Direct3D 版本: 1.611.1-81528511
DXCore 版本: 10.0.26100.1-240331-1435.ge-release
Windows 版本: 10.0.22631.3880
Actual Behavior
can not work
Diagnostic Logs
No response
The text was updated successfully, but these errors were encountered: