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

Add a modified wslconfig to kernel for WSL2 support #2004

Closed
WSLUser opened this issue Jun 1, 2020 · 6 comments
Closed

Add a modified wslconfig to kernel for WSL2 support #2004

WSLUser opened this issue Jun 1, 2020 · 6 comments

Comments

@WSLUser
Copy link

WSLUser commented Jun 1, 2020

There's already https://github.com/clearlinux-pkgs/linux-hyperv for an optimized Linux kernel for Hyper-V. I'd like to see it work out of box for WSL2 by including the wslconfig found in https://github.com/microsoft/WSL2-Linux-Kernel. Eventually WSL2 repo could ingest the ClearLinux optimized kernel for use for all Linux distributions unless there's something configured specifically for Clear Linux distro inside the optimizations. If this is the case, then having a custom wslconfig included would help when using WSL2.

@bwarden
Copy link
Member

bwarden commented Jun 8, 2020

That repo targets kernel 4.19.84, while Clear Linux is currently shipping 5.6.17. While we have a kernel-lts2018 bundle, it's not really intended for WSL2 support. Are there specific kernel options you're interested in?

@WSLUser
Copy link
Author

WSLUser commented Jun 9, 2020

Well they are shifting to stable, estimated with 5.7 release. If you check the release page, they do show the 5.6 series. Basically all the perf, security, etc. optimizations that Clear Linux does, i want to make available for the base WSL2 kernel. This would also benefit other distros. I did send a PR with the Hyper-V optimized config but it would rely on the kernel itself being changed to the Hyper-v kernel. I chose that one as WSL2 is a lightweight version of Hyper-v, so it uses a subset of the Hyper-v features in the backend

@bwarden
Copy link
Member

bwarden commented Jun 9, 2020

Linking your PR for reference:
microsoft/WSL2-Linux-Kernel#115

@WSLUser
Copy link
Author

WSLUser commented Jun 9, 2020

Any support from you or the Clear Linux team would be great in getting the config changes made. Also feel free to let me know if some options are unable to be used together. I'm not a kernel dev and I'm unable to test due to the painful process in attempting to compile the kernel. It would be nice if there was some sort of bash script you could just run through to compile layered configuration kernels (alternatively, just having a tar.xz of the compiled kernel I could just place into Windows Explorer for specifying a custom kernel for WSL2 would be great).

@WSLUser
Copy link
Author

WSLUser commented Jun 10, 2020

Have you guys started any talks with the MS Linux kernel team (guess there's a group over even the WSL group responsible for their kernel)?

@WSLUser
Copy link
Author

WSLUser commented Aug 10, 2020

They now support 5.4x LTS. I don't think they're going full stable. There was a bunch of stuff I had to strip out that are N/A for WSL2 and even some stuff that shouldn't be enabled for Hyper-V either.

@WSLUser WSLUser closed this as completed Nov 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants