Skip to content
This repository has been archived by the owner on Nov 21, 2022. It is now read-only.

Update README #18

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,19 @@ It should look something like:
kernel = C:\\Users\\natec\\Linux\\bzImage
```

or

```
[wsl2]
kernel = C:\\Users\\nathan chance\\Linux\\bzImage
```

If your user PC name has space like above

4. Save this file as `.wslconfig` in the current user's home directory (e.g. `C:\Users\natec\.wslconfig`).

5. 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](https://github.com/nathanchance/WSL2-Linux-Kernel/issues/5).

Please make sure that you are on WSL version 2. If you haven't already on that version yet, please read [this guide](https://docs.microsoft.com/en-us/windows/wsl/install-win10) first. To check in which version you are, simply just open powershell then type `wsl --list --verbose`. If you see your current WSL version is 1 then just switch it into version 2 by typing `wsl --set-version <distro_name> 2` on powershell (e.g. `wsl --set-version Ubuntu-20.04 2`).