Followup. On the release version of 2004, Turn Windows Features On and Off will not say whether you have version 1 or 2
You can verify the installed version of WSL in Powershell using:
wsl -l -v
If you had Version 1 before running the 2004 Feature Update, you will stay on Version 1
To upgrade from WSL1 to WSL2 on Windows 10 version 2004 up:
Open PowerShell as admin and run:
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
Restart computer
Restart again if prompted
Run in PowerShell:
wsl --set-default-version 2
If it says kernel must be upgraded, install the update from:
then, rerun:
wsl --set-default-version 2
You can check the version for all running distros by:
wsl -l -v
To change version of existing distro use:
wsl --set-version <distribution name> <versionNumber>
Edit:
Even after performing the above steps, you may be greeted with the message:
Exporting the distribution failed.
bsdtar: (null)
And have to reinstall your distro.
LOL
Further Edit:
Reason for upgrade failure: Windows Defender blocked your Kali distro as a trojan
Add folder to exclusions list, and reperform upgrade
Edited by cknoettg, 31 May 2020 - 12:46 PM.