简体   繁体   English

为什么wsl2 wslconfig文件不起作用?

[英]why does wsl2 wslconfig file not working?

I'm running version 20H2 (OS Build 19042) on windows home edition, i built a linux kernel and im trying to set it up on my machine by configuring the .wslconfig file as follow:我在 windows 家庭版上运行版本 20H2(操作系统构建 19042),我构建了一个.wslconfig kernel 和我试图通过配置机器上的文件来设置它。

[wsl2]
kernel=c:\\wslkernel\\bzImage

everything is at place according to the documentation - https://docs.microsoft.com/en-us/windows/wsl/wsl-config根据文档,一切都已到位 - https://docs.microsoft.com/en-us/windows/wsl/wsl-config

any ideas what could have gone wrong?任何想法可能出了什么问题?

turns out i was running wsl version 1 and not wsl2 - for the full thread on the issue: https://github.com/microsoft/WSL/issues/6728原来我运行的是wsl版本1而不是wsl2-关于这个问题的完整线程: https://github.com/microsoft/WSL/issues/6728

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM