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

[DEV TRACING][UPSTREAM] Add support kernel modules & headers as a VHD #29

Open
Nevuly opened this issue Feb 17, 2025 · 0 comments
Open
Assignees
Labels
DEV TRACING Tracing bug or feature by developer TBD This issue will be apply ASAP UPSTREAM Upstream changes in kernel

Comments

@Nevuly
Copy link
Owner

Nevuly commented Feb 17, 2025

Latest WSL2 6.6.y kernel update provides instructions for bundle kernel module files into a VHD. But they don't give any details about how to use the generated modules.vhdx. I'm expecting WSL2 team will give us some options in .wslconfig and it will just work out of box.

If so, we can easily implement kernel update with modules via scoop. Users don't have to update kernel module files manually for each distro & each release, which is nice. We don't have to build everything into the kernel then.

Also it's not difficult to bundle kernel headers as a VHD too, it will be more convenient for people who somehow need original kernel headers (e.g. to develop kernel drivers on WSL2).

I do find some instructions to mount VHDX manually via PowerShell/WSL commands, but this requires per-distro setup (e.g., fstab, partition mounting).

Upstream: microsoft/WSL#12586

Related: Locietta/xanmod-kernel-WSL2#114

In official WSL2 6.6 kernel provides instructions for bundle kernel module package into a VHD.

It looks fine, but It need more information about how to use it in WSL2 environment.

Microsoft added script to generate VHD in below:
https://github.com/microsoft/WSL2-Linux-Kernel/blob/linux-msft-wsl-6.6.y/Microsoft/scripts/gen_modules_vhdx.sh

@Nevuly Nevuly added DEV TRACING Tracing bug or feature by developer TBD This issue will be apply ASAP UPSTREAM Upstream changes in kernel labels Feb 17, 2025
@Nevuly Nevuly self-assigned this Feb 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DEV TRACING Tracing bug or feature by developer TBD This issue will be apply ASAP UPSTREAM Upstream changes in kernel
Projects
None yet
Development

No branches or pull requests

1 participant