[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-6266":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":23,"hasPages":23,"topics":25,"createdAt":10,"pushedAt":10,"updatedAt":26,"readmeContent":27,"aiSummary":28,"trendingCount":16,"starSnapshotCount":16,"syncStatus":17,"lastSyncTime":29,"discoverSource":30},6266,"WSL2-Linux-Kernel","microsoft\u002FWSL2-Linux-Kernel","microsoft","The source for the Linux kernel used in Windows Subsystem for Linux 2 (WSL2)","",null,"C",10447,1418,232,132,0,2,8,63,7,44.46,"Other",false,"linux-msft-wsl-6.18.y",[],"2026-06-12 02:01:17","# Introduction\n\nThe [WSL2-Linux-Kernel][wsl2-kernel] repo contains the kernel source code and\nconfiguration files for the [WSL2][about-wsl2] kernel.\n\n# Reporting Bugs\n\nIf you discover an issue relating to WSL or the WSL2 kernel, please report it on\nthe [WSL GitHub project][wsl-issue]. It is not possible to report issues on the\n[WSL2-Linux-Kernel][wsl2-kernel] project.\n\nIf you're able to determine that the bug is present in the upstream Linux\nkernel, you may want to work directly with the upstream developers. Please note\nthat there are separate processes for reporting a [normal bug][normal-bug] and\na [security bug][security-bug].\n\n# Feature Requests\n\nIs there a missing feature that you'd like to see? Please request it on the\n[WSL GitHub project][wsl-issue].\n\nIf you're able and interested in contributing kernel code for your feature\nrequest, we encourage you to [submit the change upstream][submit-patch].\n\n# Build Instructions\n\nInstructions for building an x86_64 WSL2 kernel with an Ubuntu distribution using bash are\nas follows:\n\n1. Install the build dependencies:  \n   `$ sudo apt install build-essential flex bison dwarves libssl-dev libelf-dev cpio qemu-utils`\n\n2. Modify WSL2 kernel configs (optional):  \n   `$ make menuconfig KCONFIG_CONFIG=Microsoft\u002Fconfig-wsl`\n\n3. Build the kernel using the WSL2 kernel configuration and put the modules in a `modules`\n   folder under the current working directory:  \n   `$ make KCONFIG_CONFIG=Microsoft\u002Fconfig-wsl && make INSTALL_MOD_PATH=\"$PWD\u002Fmodules\" modules_install`\n   \n   You may wish to include `-j$(nproc)` on the first `make` command to build in parallel.\n\nThen, you can use a provided script to create a VHDX containing the modules:\n   `$ sudo .\u002FMicrosoft\u002Fscripts\u002Fgen_modules_vhdx.sh \"$PWD\u002Fmodules\" $(make -s kernelrelease) modules.vhdx`\n\nTo save space, you can now delete the compilation artifacts:\n   `$ make clean && rm -r \"$PWD\u002Fmodules\"`\n\nIf you prefer, you can also build the modules VHDX manually as follows:\n\n1. Calculate the modules size (plus 256MiB for slack):\n   `modules_size=$(du -bs \"$PWD\u002Fmodules\" | awk '{print $1;}'); modules_size=$((modules_size + (256 * (1\u003C\u003C20))));`\n\n2. Create a blank image file for the modules:\n   `dd if=\u002Fdev\u002Fzero of=\"$PWD\u002Fmodules.img\" bs=1024 count=$((modules_size \u002F 1024))`\n\n3. Setup filesystem and mount img file:\n   `lo_dev=$(sudo losetup --find --show \"$PWD\u002Fmodules.img\") && sudo mkfs -t ext4 \"$lo_dev\" && mkdir \"$PWD\u002Fmodules_img\" && sudo mount \"$lo_dev\" \"$PWD\u002Fmodules_img\"`\n\n4. Copy over the modules, unmount the img now that we're done with it:\n   `sudo cp -r \"$PWD\u002Fmodules\u002Flib\u002Fmodules\u002F$(make -s kernelrelease)\"\u002F* \"$PWD\u002Fmodules_img\" && sudo umount \"$PWD\u002Fmodules_img\"`\n\n5. Convert the img to VHDX:\n   `qemu-img convert -O vhdx \"$PWD\u002Fmodules.img\" \"$PWD\u002Fmodules.vhdx\"`\n\n6. Clean up:\n   `rm modules.img # optionally $PWD\u002Fmodules dir and the now-empty $PWD_modules_img dir too`\n\n# Install Instructions\n\nPlease see the documentation on the [.wslconfig configuration\nfile][install-inst] for information on using a custom built kernel.\n\n[wsl2-kernel]:  https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWSL2-Linux-Kernel\n[about-wsl2]:   https:\u002F\u002Fdocs.microsoft.com\u002Fen-us\u002Fwindows\u002Fwsl\u002Fabout#what-is-wsl-2\n[wsl-issue]:    https:\u002F\u002Fgithub.com\u002Fmicrosoft\u002FWSL\u002Fissues\u002Fnew\u002Fchoose\n[normal-bug]:   https:\u002F\u002Fwww.kernel.org\u002Fdoc\u002Fhtml\u002Flatest\u002Fadmin-guide\u002Fbug-hunting.html#reporting-the-bug\n[security-bug]: https:\u002F\u002Fwww.kernel.org\u002Fdoc\u002Fhtml\u002Flatest\u002Fadmin-guide\u002Fsecurity-bugs.html\n[submit-patch]: https:\u002F\u002Fwww.kernel.org\u002Fdoc\u002Fhtml\u002Flatest\u002Fprocess\u002Fsubmitting-patches.html\n[install-inst]: https:\u002F\u002Fdocs.microsoft.com\u002Fen-us\u002Fwindows\u002Fwsl\u002Fwsl-config#configure-global-options-with-wslconfig\n","微软的WSL2-Linux-Kernel项目提供了Windows Subsystem for Linux 2 (WSL2)所使用的Linux内核源代码及配置文件。该项目基于C语言开发，支持用户自定义内核配置并构建适用于WSL2环境的定制化内核版本，同时提供详细的构建指南帮助开发者编译和安装内核模块。此项目特别适合需要在Windows操作系统上运行Linux应用程序或进行跨平台开发的场景，同时也为希望深入了解Linux内核工作原理的技术爱好者提供了宝贵的学习资源。","2026-06-11 03:06:08","top_language"]