Based on all my searching, this really seems like I'm following the right steps, but my distro is just not updating to WSL2. I'm running W10 build 19042.1526, which should be compatible with WSL2.
The best instructions I could find are from here, they appear to match all the other guides I could find, this site just seemed the most concise. Steps attempted described in code block below:
# using elevated powershell
# install WSL
dism.exe /online /enable-feature /featurename:Microsoft-Windows-Subsystem-Linux /all /norestart
enable virtual machine platform
dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
restart W10
Download latest Linux kernel updat package and install
set WSL 2 as my default version
wsl --set-default-version 2
inspect installed distros and versions
wsl -l -v
set existing wsl1 distro to wsl2
wsl --set-version Debian 2
All these commands seems to run Ok, I'm not getting any bad output when running the commands, yet I can see from wsl -l -v that my Debian distro still isn't updating to WSL2. Anyone have any idea why?
Also, say I wanted to try uninstalling WSL1 and clean installing WSL2, would I lose all my Debian distro files? What's the best way of ensuring I don't have to completely re-configure my Debian distro if I go the uninstall/re-install route?
Output of wsl --status:
Default Distribution: Debian
Default Version: 2
Windows Subsystem for Linux was last updated on 11/16/2021
WSL automatic updates are on.
Kernel version: 5.10.60.1
--exportflag. – Saaransh Garg Mar 10 '22 at 17:15wsl --export Debian debian.tarfrom PowerShell (probably in something like your Windows$env:USERPROFILE/%userprofile% folder, then you can re-import it when and if needed withwsl --import <NewDistroName> <directory> debian.tar --version 2. You'll need to choose a new directory/location for the distribution when you--import. You'll also need to reset the default username per this answer. – NotTheDr01ds Mar 10 '22 at 22:07DebianGood) if it would be WSL2. How would one go about making a second Debian distro alongside the existing one? – Daniel Crisp Mar 11 '22 at 15:58wsl --exportthe existing one and thenwsl --importthe new one. Full instructions in this Stack Overflow answer. You may have already seen it in the last few minutes since I just got an upvote on it, or perhaps that wasn't you :-). – NotTheDr01ds Mar 11 '22 at 16:36wsl --statusshow? – NotTheDr01ds Mar 11 '22 at 16:39wsl --status– Daniel Crisp Mar 11 '22 at 17:13