Code Monkey home page Code Monkey logo

klozz / wsl2-linux-kernel-fork Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nathanchance/wsl2-linux-kernel

0.0 1.0 0.0 1.78 GB

The source for the Linux kernel used in Windows Subsystem for Linux 2 (WSL2)

License: Other

Makefile 0.22% Roff 0.02% C 98.09% Assembly 0.93% C++ 0.03% Shell 0.33% Perl 0.12% Awk 0.01% Python 0.12% sed 0.01% Yacc 0.01% Lex 0.01% UnrealScript 0.01% Gherkin 0.01% XS 0.01% Clojure 0.01% M4 0.01% SmPL 0.02% Raku 0.01% Rust 0.10%

wsl2-linux-kernel-fork's Introduction

About

This is a custom kernel for Microsoft's Windows Subsystem for Linux 2, based on the bleeding edge linux-next and compiled with clang with Link Time Optimization and Control Flow Integrity. Follow the documentation on Microsoft's website to enable or upgrade to WSL2 for your device and distribution before attempting to install this kernel, as it will not work with WSL1.

Installation instructions

  1. Grab the latest release from the Releases page.

  2. Place the kernel somewhere in Windows, such as in a folder in your user folder named Linux (e.g., C:\Users\natec\Linux\bzImage).

  3. Open a file editor such as Visual Studio Code and type the following:

[wsl2]
kernel =

After that =, put the full path to the kernel image with all of the \ replaced with \\ (e.g. C:\\Users\\natec\\Linux\\bzImage).

It should look something like:

[wsl2]
kernel = C:\\Users\\natec\\Linux\\bzImage

If your username has a space in it (for example, nathan chance), do not attempt to escape it with \ or ":

[wsl2]
kernel = C:\\Users\\nathan chance\\Linux\\bzImage
  1. Save this file as .wslconfig in the current user's home directory (e.g. C:\Users\natec\.wslconfig).

  2. Restart WSL with wsl.exe --shutdown and check that the new image has been booted with uname -r.

To update the kernel, continuously download the latest release from the releases page or use one of the tools mentioned in this issue.

wsl2-linux-kernel-fork's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.