Upgrade WSL1 to WSL2

Published: Updated:

I have upgrade WSL 1 to WSL 2.

To install WSL 2 I use: How to Enable WSL 2 on Windows 10

To get the list of the disto:

$ wsl --list -v
* Debian Stopped 1

Conver existing distro to use WSL 2

wsl --set-version Debian 2

To make all the future distro to use WSL 2:

wsl --set-default-version 2

After i have all set, trying to access the local websites, get err connection, not good at all.
So I have found myself spending more than one to found the solution.

In Windows 10 host file is not enough to have added test.local, have to add also ::1 test.local and luckily everything works again.

Related Post: