Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Generic User Avatar

WSL2 on Insider Builds


  • Please log in to reply
1 reply to this topic

#1 cknoettg

cknoettg

  •  Avatar image
  • BC Advisor
  • 1,897 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Delray Beach, FL
  • Local time:01:34 AM

Posted 28 May 2020 - 05:18 AM

Just out of curiosity, when you search for Windows Features on the recent Insider Builds, does Windows Subsystem for Linux show a 2 after it, or no?

 

I just ran a plain-vanilla Windows 10 2004 Update, and it doesn't specify that the version was upgraded.

 

I had WSL1 enabled before the update.


Microsoft MCE, CASP+, Linux+, Server+, Cloud+, Certified Forensic Computer Examiner


BC AdBot (Login to Remove)

 


#2 cknoettg

cknoettg
  • Topic Starter

  •  Avatar image
  • BC Advisor
  • 1,897 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Delray Beach, FL
  • Local time:01:34 AM

Posted 31 May 2020 - 12:18 PM

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.

Microsoft MCE, CASP+, Linux+, Server+, Cloud+, Certified Forensic Computer Examiner





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users