# Convert WSL1 to WSL2

To convert WSL1 to WSL2, we first need to ensure `Virtual Machine Platform` is enabled in Windows Programs and Features settings.

## Process

**Note:** First ensure, [kernel](https://aka.ms/wsl2kernel) component is installed, then run -

### To see current Linux Distros -

```shell
wsl --list --verbose
```

### Set WSL2 Version as default -

```shell
wsl --set-default-version 2
```

### Then to actually convert WSL1 Linux Distro to WSL2, run -

```shell
wsl --set-version {DISTRO_NAME} 2
```

### WSL1 Distro should now be converted to WSL2, you can verify the same by runnig -

```shell
wsl --list --verbose
```

***Source:*** [***Microsoft Docs***](https://docs.microsoft.com/en-us/windows/wsl/install-win10)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://til.devjugal.com/wsl/convert-wsl1-to-wsl2.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
