Thank you for an easy to follow guide. I'm still going through this and want to point out that on Step 6
It might help to tell the reader how to find out what Linux distro they already installed if it's not a fresh install. It took me a bit to figure out since I thought my distro was Ubuntu-22.04.1. The conversion command to WSL 2 came back with "There is no distribution with the supplied name." So here's how I figured out the distro name is just Ubuntu on my system using this command:
PS C:\WINDOWS\system32> wsl --list --all Windows Subsystem for Linux Distributions: Ubuntu (Default)
Then I was able to upgrade to WSL 2 with the correct distro name:
PS C:\WINDOWS\system32> wsl --set-version Ubuntu 2 Conversion in progress, this may take a few minutes... For information on key differences with WSL 2 please visit https://aka.ms/wsl2 Conversion complete. PS C:\WINDOWS\system32>