{"id":39782778,"url":"https://github.com/locietta/xanmod-kernel-wsl2","last_synced_at":"2026-06-14T04:01:03.544Z","repository":{"id":37866281,"uuid":"469321695","full_name":"Locietta/xanmod-kernel-WSL2","owner":"Locietta","description":"Xanmod kernel for WSL2, built by clang with ThinLTO enabled. Build \u0026 Release are automated by Github Action.","archived":false,"fork":false,"pushed_at":"2026-05-26T03:00:34.000Z","size":1211,"stargazers_count":236,"open_issues_count":9,"forks_count":39,"subscribers_count":11,"default_branch":"main","last_synced_at":"2026-05-26T04:09:00.389Z","etag":null,"topics":["automated","kernel","linux","wsl2","wsl2-kernel"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Locietta.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2022-03-13T09:13:34.000Z","updated_at":"2026-05-26T02:06:28.000Z","dependencies_parsed_at":"2023-10-16T13:40:17.685Z","dependency_job_id":"c62fa290-25c2-47fb-b05a-0caec6e491ca","html_url":"https://github.com/Locietta/xanmod-kernel-WSL2","commit_stats":null,"previous_names":[],"tags_count":374,"template":false,"template_full_name":null,"purl":"pkg:github/Locietta/xanmod-kernel-WSL2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Locietta%2Fxanmod-kernel-WSL2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Locietta%2Fxanmod-kernel-WSL2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Locietta%2Fxanmod-kernel-WSL2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Locietta%2Fxanmod-kernel-WSL2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Locietta","download_url":"https://codeload.github.com/Locietta/xanmod-kernel-WSL2/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Locietta%2Fxanmod-kernel-WSL2/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34308622,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automated","kernel","linux","wsl2","wsl2-kernel"],"created_at":"2026-01-18T12:05:23.343Z","updated_at":"2026-06-14T04:01:03.517Z","avatar_url":"https://github.com/Locietta.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# xanmod-kernel-WSL2\n\n![Xanmod MAIN](https://github.com/Locietta/xanmod-kernel-WSL2/actions/workflows/MAIN.yml/badge.svg?branch=main)\n![Xanmod LTS](https://github.com/Locietta/xanmod-kernel-WSL2/actions/workflows/LTS.yml/badge.svg?branch=main)\n![](https://img.shields.io/github/license/Locietta/xanmod-kernel-WSL2)\n![version](https://img.shields.io/github/v/release/Locietta/xanmod-kernel-WSL2)\n\nAn **unofficial** [XanMod](https://gitlab.com/xanmod/linux) kernel port for **Windows Subsystem for Linux 2 (WSL2)**, featuring:\n\n- **Microsoft's dxgkrnl** patches for GPU support\n- **Compiled with Clang + ThinLTO** for additional optimizations\n- **Automated builds** via GitHub Actions (always up-to-date)\n- **Multiple CPU-optimized variants** (x64v2, x64v3, Skylake, Zen3)\n\n## Usage\n\n### Install via Scoop (Recommended)\n\n[scoop](https://scoop.sh/) is a command-line installer on windows that makes installation and update easy. We provide scoop manifests for this kernel in the [Locietta/sniffer](https://github.com/Locietta/sniffer) repository.\n\n#### Installation\n\n```bash\n# Add the repository\nscoop bucket add sniffer https://github.com/Locietta/sniffer\n\n# Install kernel (alias to x64v3 variant, works for most modern CPUs)\nscoop install xanmod-WSL2\n\n# Optional: Install addons (extra modules, headers, documentation)\nscoop install xanmod-WSL2-addons\n\n# Restart WSL2 to apply\nwsl --shutdown\n```\n\n\u003cdetails\u003e\n\u003csummary\u003eExpand all other builds\u003c/summary\u003e\n\n```bash\n# other MAIN builds\n# scoop install xanmod-WSL2-{x64v2, x64v3, skylake, zen3}\n# scoop install xanmod-WSL2-addons-{x64v2, x64v3, skylake, zen3}\n\n# LTS builds\n# scoop install xanmod-WSL2-lts # alias to xanmod-WSL2-lts-x64v3\n# scoop install xanmod-WSL2-lts-addons\n# scoop install xanmod-WSL2-lts-{x64v2, x64v3, skylake, zen3}\n# scoop install xanmod-WSL2-addons-lts-{x64v2, x64v3, skylake, zen3}\n```\n\n\u003c/details\u003e\n\n**That's it!** Scoop automatically configures everything for you.\n\n#### Update kernel\n\nRun `scoop update *` to update all scoop installed apps including this kernel.\n\nWe recommend to run `scoop update *` instead of `scoop update xanmod-WSL2` alone to make sure the addons package is also updated and in sync with the kernel.\n\n\u003e **NOTE:** To make the kernel update applied, you have to reboot WSL2 after running scoop update!\n\n### Manual Installation\n\nIt's also straightforward to manually install this kernel. For each arch, we release two files: the kernel image `bzImage` and an optional addon archive `bzImage-addons.vhdx.7z` that contains the VHDX with extra modules, headers and documentation.\n\nThe manual installation steps are as follows:\n\n- Download kernel image from [releases](https://github.com/Locietta/xanmod-kernel-WSL2/releases)\n  - optionally, download the addon archive if you need extra modules/headers/docs, then extract the `.vhdx` file from it\n- Place it to somewhere appropriate. (e.g. `D:\\.WSL\\bzImage`)\n- Edit and save the `%UserProfile%\\.wslconfig` with following content:\n\n```ini\n[wsl2]\nkernel = the\\\\path\\\\to\\\\bzImage\nkernelModules = the\\\\path\\\\to\\\\bzImage-addons.vhdx ; optional\n; e.g.\n; kernel = D:\\\\.WSL\\\\bzImage\n; kernelModules = D:\\\\.WSL\\\\bzImage-addons.vhdx\n;\n; Note that all `\\` should be escaped with `\\\\`.\n```\n\n- Reboot your WSL2 to check your new kernel and enjoy!\n\n## Troubleshooting\n\n### Changes not applied after installation or update?\n\nYou must fully shut down WSL2 utill no WSL2 instances are running, then start it again to apply the new kernel.\n\n```powershell\nwsl --shutdown\nwsl --list --running  # Should show \"no running distributions\"\n```\n\n### Modules are not loaded to `/lib/modules`?\n\nModules VHDX support is only available with WSL version **2.5.1** or later. Try running `wsl --version` to check your WSL version and use `wsl --update` to update WSL if needed.\n\n### WSL fails to boot with `E_ACCESSDENIED` after configuring `kernelModules`?\n\nIf WSL fails to start with `Wsl/Service/CreateInstance/CreateVm/HCS/E_ACCESSDENIED`, your `kernelModules` vhdx is missing NTFS ACL entries that WSL **2.7.1+** requires (see [#153](https://github.com/Locietta/xanmod-kernel-WSL2/issues/153)). This commonly happens when the vhdx lives under your user profile (e.g. `C:\\Users\\\u003cyou\u003e\\...`), where the default DACL doesn't grant access to the AppContainer principals WSL uses.\n\nScoop handles this automatically. For **manual installation**, after extracting the vhdx run the following PowerShell command to grant the necessary permissions:\n\n```powershell\nicacls \"path\\to\\bzImage-addons.vhdx\" /grant `\n    \"*S-1-5-32-545:(RX)\" `\n    \"*S-1-15-2-1:(RX)\" `\n    \"*S-1-15-2-2:(RX)\"\n```\n\nThis grants `BUILTIN\\Users`, `ALL APPLICATION PACKAGES`, and `ALL RESTRICTED APPLICATION PACKAGES` read-and-execute on the vhdx.\n\n### Can't find `.wslconfig` file?\n\nIt doesn't exist by default. Just create it manually in your user profile folder (e.g. `C:\\Users\\YourName\\.wslconfig`).\n\n\u003e For more information about `.wslconfig`, see microsoft's official [documentation](https://docs.microsoft.com/en-us/windows/wsl/wsl-config#configure-global-options-with-wslconfig).\n\n### Which architecture should I choose?\n\nIf you are unsure whether to use x64v2 or x64v3, you can visit [xanmod.org](https://xanmod.org/). There's literally a table showing all the CPU models and their corresponding x86_64 psABI levels.\n\nYou can also get a [checking script](https://dl.xanmod.org/check_x86-64_psabi.sh) from there.\n\n## Development\n\n🚧WIP\n\n## Credits\n\n- Linux community for the awesome OS kernel.\n- Microsoft for WSL2 and dxgkrnl patches.\n- XanMod project for various optimizations.\n- LLVM/Clang for the compiler infrastructure.\n\n## Contributing\n\nWe welcome contributions! You can:\n\n* 🐛 Report bugs by opening an [issue](https://github.com/Locietta/xanmod-kernel-WSL2/issues/new?template=bug_report.yml)\n* 💡 Suggest features via [issues](https://github.com/Locietta/xanmod-kernel-WSL2/issues/new?template=feature-request.yml)\n* 🔧 Submit improvements through [pull requests](https://github.com/Locietta/xanmod-kernel-WSL2/pulls)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocietta%2Fxanmod-kernel-wsl2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flocietta%2Fxanmod-kernel-wsl2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flocietta%2Fxanmod-kernel-wsl2/lists"}