WSL 2: Getting started

The Windows Subsystem for Linux 2 (WSL 2) is here. It’s now easy to get started with Linux and integrate Ubuntu 20.04 LTS quickly from within Windows 10.

WSL2 is part of Windows 10, version 2004 which was released in May 2020. Rather than using a translation or compatibility layer between Linux and Windows which was used in WSL 1, WSL 2 uses virtual machine technology to allow you to run a real Linux kernel directly on Windows 10. This also allows you to run Docker within Ubuntu running on Windows 10.

Overview: 0:00
Requirements: 1:19
Enable WSL 2: 2:36
Download Ubuntu 20.04 LTS: 3:48
Fix Error: WSL 2 requires a kernel component: 4:36
Start Ubuntu on Windows 10: 6:46
PowerShell Commands: 6:58
Download Ubuntu 18.04 LTS: 8:24
Run two versions of Ubunbu: 10:52
Use VMware Workstation Player and Virtual Box with WSL2: 12:59
Visual Studio Code, Python and Linux integration: 15:47
Connect to a Cisco switch using Python on WSL2: 19:00

Good Links:
What is WSL?
WSL documentation:
WSL 2 Announcement:

Ubuntu 20.04
Ubuntu 18.04
windows subsystem for linux

#wsl2 #linux #windows .



Related Articles


  1. Just out of curiosity, as I already had Hyper-V installed, I skipped the 'Virtual Machine Platform' feature installation, and WSL still works fine, which makes sense if 'VIrtual Machine Platform' feature is really just a mini-HyperV without Hyper-V Manager…

  2. Even after shutting down the WSL/Ubuntu, if I restart it, I have the prompt *instantly*….how is that possible? (It pops up just as quickly as if I had failed to shut it down)

  3. Thank you for this video… I have already all the steps for the installation,, however I don't have access connectivity . Then I am not able to update the version or download packages… Do you have any recommendation to solve this issue ? thank you

  4. Hey DAVID i am getting "The virtual machine or container with the specified identifier is not running." displayed when switching ubuntu 18.04 to Wsl 2. Any suggestions?

  5. Hii david
    I want to say you that i want to run kali linux in my windows and I don't have virtualization option in my Bios so what I have to do please tell me I will be very Greatefull to you

  6. Great tutorial! But i have a question, not about wsl, how did you connect laptop with pc?😅 I guess it s not only screen sharing…

  7. I have been searching this for the last 6 months and somehow your video pops in on the list of recommendations. I guess i am lucky. Thanks a lot, man👍

  8. Very nice, thank you!
    If you also have this problem of wsl not running command 'code .' check that vsc is added to path by using command 'echo $PATH.
    If it is not there then you can just reinstall vsc with option of adding to path clicked, hope that helps!

  9. Hello david
    I came here to find information if i can install esxi the same way
    But i think not possible
    Isnt it?
    Sorry for the dump question

  10. Sir, i use HP probook AMD Rayzen, i do not have any external graphics card so, whenever i enable my virtual mechine platform it just destroy my pc resolution… what can i do?
    drawing your kind attention here, Thanks in advance.

  11. Hello david you have discrod you good teacher ilike your videos ihave problem with my kali linux when i open broswe on youtube idont have any sound ? and ican t open blutetoh program idont know why

  12. says
    Please enable the Virtual Machine Platform Windows feature and ensure virtualization is enabled in the BIOS.

  13. Thanks for the great intro! Sorry for the offtopic but what kind of chair are you sitting on? Looks amazing!

  14. I wouldn't use WSL2. It takes a strange approach to almost everything. It also appears to be somewhere between 20 to 50% slower than WSL. WSL2 is a great idea just not ready for production yet.

  15. hi david, i follow your instructions but i can't chnge wsl to wls2 with many failures, requirement of wsl2 is checked nd i do all i.e version of window nd update nd…. , but i tried .. help m.

  16. Mine says::::: Error: 0x80370102 The virtual machine could not be started because a required feature is not installed.

Leave a Reply