WSL 2: Getting started

Sdílet
Vložit
  • čas přidán 22. 06. 2024
  • 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.
    Menu:
    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? docs.microsoft.com/en-us/wind...
    WSL documentation: docs.microsoft.com/en-us/wind...
    WSL 2 Announcement: devblogs.microsoft.com/comman...
    WSL2
    Ubuntu 20.04
    WSL 2
    WSL 1
    Ubuntu 18.04
    windows subsystem for linux
    #wsl2 #linux #windows
  • Věda a technologie

Komentáře • 928

  • @pranjalsingh9154
    @pranjalsingh9154 Před 3 lety +181

    What a nice guy! Goes over every thing step by step like a passionate and sincere teacher.

  • @wassimmefteh401
    @wassimmefteh401 Před 3 lety +115

    there's a big difference from learning from a professional and from a random kid doing weird stuffs in a 2 hours video tutorial, thanks man, you are the best

  • @davidbombal
    @davidbombal  Před 4 lety +127

    Menu:
    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? docs.microsoft.com/en-us/windows/wsl/about
    WSL documentation: docs.microsoft.com/en-us/windows/wsl/
    WSL 2 Announcement: devblogs.microsoft.com/commandline/announcing-wsl-2/

    • @ibal3616
      @ibal3616 Před 4 lety

      There will be no Linux version of WSL? @davidbombal

    • @davidbombal
      @davidbombal  Před 4 lety +2

      No need to use WSL if you have Linux natively. If you want to run Linux within Linux you could use Docker, or KVM or VMware workstation for example.

    • @samuelmatheson9655
      @samuelmatheson9655 Před 3 lety

      Thank you

  • @bap9394
    @bap9394 Před 4 lety +402

    Linux running on Windows using a Apple keyboard 👌

    • @davidbombal
      @davidbombal  Před 4 lety +28

      Thanks!

    • @KaushalBeladiya
      @KaushalBeladiya Před 4 lety +15

      combination is great actually!

    • @samuelmatheson9655
      @samuelmatheson9655 Před 3 lety +3

      Now all we need is Linux in windows in bootcamp

    • @caionakai3134
      @caionakai3134 Před 3 lety +12

      he was running a windows on mac and a linux on windows lol

    • @neiltaylor513
      @neiltaylor513 Před 3 lety +1

      Hate the modern apple keyboards, give me the old Quadra ones with the power button, could give them a good bash when typing.

  • @luigivampabbcw5172
    @luigivampabbcw5172 Před 3 lety +12

    Thank you so much, i was looking about WSL on differents french channels. But i haven't find videos like yours. Everything is explained. You are a great teacher !

  • @WifiNigel
    @WifiNigel Před 3 lety +4

    I've been waiting for my Windows laptop to upgrade to 2004 since you posted this video a few weeks back. It finally updated today so the first thing I did was install WSL2 & Ubuntu as per your instructions :) Thanks so much for this video! The integration with WSL2/Ubuntu/VSC is amazing - this is going to be so useful for me. Thanks David, I love your content.

    • @davidbombal
      @davidbombal  Před 3 lety +2

      Really happy to hear that - glad I could help!

  • @TJKhara
    @TJKhara Před 4 lety +4

    Great video David. Thank you for the detailed introduction to wsl 2. Just installed it and really exited about putting it to some good use.

  • @brianhansen8876
    @brianhansen8876 Před 3 lety

    Thank you VERY much, David. You are the first person on CZcams to show all small details how to get this Ubuntu-Docker stuff running i perfect harmony (on a Win 10). Thanx again!!! You truly saved my day. Best regards from Denmark

  • @ryanwolf2558
    @ryanwolf2558 Před 3 lety +21

    So easy to setup, other tutorials were doing weird things, thanks for this

  • @justicepeltier9001
    @justicepeltier9001 Před 3 lety +14

    Absolutely fantastic WSL2 tutorial! Recently discovered how unpleasant development on Windows could be and was told to try out WSL2. I was extremely intimidated by Linux but your video absolutely proved my nerves were for nothing. Looking forward to digging through the rest of your videos!

    • @davidbombal
      @davidbombal  Před 3 lety +1

      Glad it helped! Thank you for sharing :)

  • @CodeWarrior01
    @CodeWarrior01 Před 3 lety +1

    Great guide. Your extended comments about version checking saved me. The only thing you needed to add was a comment about possibly needing to enable virtualization in BIOS, which is what i needed to do. I got an error when I tried to install after setting to v2. Most people might get lost, but I've been doing this for >30 years, so I just found the setting in my BIOS under CPU config and all went well. Many thanks

  • @murats5863
    @murats5863 Před 7 měsíci

    I very much appreciate your clear explanation and the time you spend to dive deep into things, even if they seem easy.
    Thank you!

  • @reedlinares
    @reedlinares Před 4 lety +5

    As usual, great video, Dave. Quick update. I just completed my installation of Ubuntu and it did not require the update. All is working as expected. Thanks for such excellent content!

    • @davidbombal
      @davidbombal  Před 4 lety +1

      Thank you. Great to hear that James!

  • @muhammadamirulsamsulbahar2544

    The instructions are very clear, I really love this tutorial. Thanks!

  • @kracksmith4ejm1
    @kracksmith4ejm1 Před 2 měsíci

    super nice to go over every options and what's nice is, David goes over the error or what's needed to continue the accomplishment.

  • @ms365developer3
    @ms365developer3 Před 4 lety +2

    Just installed WSL 2 in my Win10 home by following your crisp and crystal clear instructions. Was waiting a lot for this upgrade. Thanks a lot.

  • @juanpcc5892
    @juanpcc5892 Před 4 lety +16

    Your videos make me get into a CCNA certification that i drop out many years ago, im not native english speaker, but your accent make your videos instructions very clear, so i keep improving my english and my networks knowledge

    • @davidbombal
      @davidbombal  Před 4 lety +1

      Thank you! I'm really happy to hear that :) Please keep on learning.

  • @antonurmensch4090
    @antonurmensch4090 Před 3 lety +8

    As a stone ager, I was just fascinated by seeing this guy named "Ballmer" on your show. He's looking just like our fellow Urrgh who once fought so bravely against the other tribe when they tried to capture the Great Water Pond. He fell into the water and drowned. Poor Urrgh.

  • @TiagoSilva4171
    @TiagoSilva4171 Před 3 lety +1

    Thank you for showing what we can do with WSL2 in simple e concise way.

  • @user-we7of6ow6h
    @user-we7of6ow6h Před 11 měsíci

    This was a definite help. I now have WSL2 running Ubuntu 20.04.06 on my windows laptop. It is refreshing to get clear concise instructions. Thank you.

  • @Reforitor
    @Reforitor Před 4 lety +10

    I love the way he wished us very best in the end.

    • @davidbombal
      @davidbombal  Před 4 lety +5

      Glad you liked that. And I do mean it. :)

  • @tigerfanxiao
    @tigerfanxiao Před 4 lety +6

    The best tutorial in the CZcams as always! Thanks a lot David.

    • @davidbombal
      @davidbombal  Před 4 lety +1

      Thank you!

    • @brandonphilander661
      @brandonphilander661 Před 4 lety +2

      @@davidbombal So you're running Linux in a virtual machine on Windows 10, could you then virtualize another OS in Linux?

    • @davidbombal
      @davidbombal  Před 4 lety +2

      @@brandonphilander661 Yes. I'll demonstrate this using Docker :)

    • @brandonphilander661
      @brandonphilander661 Před 4 lety

      @@davidbombal Thank you.

  • @sumitsingh3534
    @sumitsingh3534 Před 2 lety

    Thank You David. You have made things so much easier. Wonderfully explained.

  • @oldmansaturn972
    @oldmansaturn972 Před 3 lety

    I just sorted through almost a dozen WSL 2 tutorials. None of them were as clear and concise as yours, nor as helpful. Thank you.

  • @alyfraga9923
    @alyfraga9923 Před 4 lety +14

    I already had this installed, another great video, thank you!!!
    I have a dual boot on my laptop. I realize that gns3 runs better for me in Linux.

    • @davidbombal
      @davidbombal  Před 4 lety +6

      Thank you Aly. Agreed - for ultimate performance, GNS3 works best on native Linux.

  • @akshaysb526
    @akshaysb526 Před 3 lety +3

    yes,this man knows how each line of code works.

  • @sanjeevpenupala
    @sanjeevpenupala Před 3 lety

    A really awesome video, especially covering a use case for WSL at the end of the video. Cheers man!

  • @haciendadad
    @haciendadad Před 2 lety

    VERY thorough demonstration!! He didn't cut any corners and I like that he even ran into an error on the install and showed how to fix it quickly and easily! I just started a new job and they only offer Windows machines, I am really happy I saw this video today because I am doing this on my work computer. Who knows, a Windows machine may be in my future? .... naw. :-)

  • @josethemacho
    @josethemacho Před 3 lety +45

    Running Linux over Windows on a Mac... Savage!

    • @davidbombal
      @davidbombal  Před 3 lety +2

      lol... don't want to limit myself to only one OS :)

  • @umairm8595
    @umairm8595 Před 4 lety +4

    Thank you David really appreciate this it's very helpful in troubleshooting, in the previous version you cant run WSL as well as vmware together

    • @davidbombal
      @davidbombal  Před 4 lety +4

      Agreed. This version is better, but you can still not run nested virtualization 😔 For others that are interested, I demonstrate and explain this issue at 12:59 in the video.

    • @kielmoreland7704
      @kielmoreland7704 Před 4 lety +1

      @@davidbombal I, too, ran into a problem running WSL version 2 and VMWare Workstation Pro. I ran into the issue when I tried to fire up my GNS3 VM after upgrading my WSL from version 1 to version 2, and I'm pretty sure that the issue is due to enabling "Virtual Machine Platform," and based on your comments here. Unfortunately, I had to revert my WSL to version 1 and disable "Virtual Machine Platform" in order for my GNS3 VM to run properly. Here is a document I created showing what happened (maybe it might be helpful):
      app.box.com/s/wel5mx5tppkcpw38axwmjnzj52zhur4g
      Regardless, WSL does work and it's great; I've been using it to learn how to automate my home lab based on your Udemy network automation course.

    • @davidbombal
      @davidbombal  Před 4 lety +2

      @@kielmoreland7704 Great share! And thank you. Also see here: blogs.vmware.com/workstation/2020/01/vmware-workstation-tech-preview-20h1.html and here: docs.microsoft.com/en-us/windows/wsl/wsl2-faq

    • @ciscomoto
      @ciscomoto Před 4 lety

      So are there plans to tackle the 'nested' VMWare Workstation / WSL issues - it is a fairly restrictive issue given that a lot of people had created such environments and now find themselves having to hack & switch around their system to get over these issues?

  • @ldx8492
    @ldx8492 Před 3 lety

    Your videos are spectacularly clear, very well done!

  • @dalebarnett9318
    @dalebarnett9318 Před 4 lety

    Great info (as always) David ! Thanks for info...very handy! Can't wait to try it!

  • @wonerkang4034
    @wonerkang4034 Před 4 lety +3

    Thanks David, Very Cool! I just want to study Linux. .

    • @davidbombal
      @davidbombal  Před 4 lety +1

      Linux is great. Definitely worth learning.

  • @juancarlosgonzalez4161
    @juancarlosgonzalez4161 Před 3 lety +7

    Very handy, thank you!
    While installing WSL you may get an error 0x80370102. In such a case, you should look at your BIOS and check the virtualization features are turned on.

  • @ahmedsalman3294
    @ahmedsalman3294 Před 3 lety

    I was struggling with Virtual Box to install Ubuntu, but never knew the solution is under my nose. Thanks for the video, you are a life saver. I must appreciate you.

  • @alexperea6604
    @alexperea6604 Před 3 lety

    Thank you sir, I've been always hesitant to do my development work on windows, now I'm transitiong from mac OS to windows thanks to you and this great feature.

  • @joeljosephpaul9269
    @joeljosephpaul9269 Před 4 lety +3

    Love your voice!!!

  • @EyeIn_The_Sky
    @EyeIn_The_Sky Před 4 lety +9

    Thanks again, David! Also, you might find this useful. I just installed Windows Terminal (from the MS store). So much easier to use and has drop-down to choose which VM you want to use and puts them in Tabs!! So you can have PowerShell open in one tab, Ubuntu in anther and move between them easily. (I think you might be able to change the colour schemes on the terminals as well.
    czcams.com/video/8gw0rXPMMPE/video.html&app=desktop
    devblogs.microsoft.com/commandline/introducing-windows-terminal/

  • @priyabratdash2629
    @priyabratdash2629 Před 3 lety

    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👍

  • @dougdecoursin9919
    @dougdecoursin9919 Před 4 lety +2

    Well done David - thank you for taking the time to help others!

    • @davidbombal
      @davidbombal  Před 4 lety

      Thank you Doug! Glad the video helped you :)

  • @KangJangkrik
    @KangJangkrik Před 4 lety +7

    FYI, Steve Ballmer is fired. That's why microsoft change a lot

  • @jamesdietsch7868
    @jamesdietsch7868 Před 4 lety

    Another great video here David! Been using wsl for sometime now and its awesome! Especially using the new windows terminal as well :)

  • @datag1199
    @datag1199 Před 11 měsíci

    Thank you so much! Extremely helpful. Was setting a computer up at home for a family member, and hit the Ubuntu error (needed to visit BIOS and enable Virtualization) and that did the trick. Great page!

  • @olloffdenuyschen4233
    @olloffdenuyschen4233 Před 3 lety

    David Bombal, THE MAN!!! 😎Thanks for all your videos. Do not stop. 👏

  • @home-uf3tg
    @home-uf3tg Před 4 lety

    I can't deny that I impressed. Windows 10 is getting better and better and Linux integration is awesome. It will save a lot of time for me to start a new project on my home computer. Cool video and tidy explanation

  • @Chunda8
    @Chunda8 Před 8 měsíci

    Thanks for this David, I have been trying unsuccesfully for a long time to get any Unix distro to dual boot with Windows, this is much better. I followed your method carefully and it worked! This will be handy as I am trying to get into cybersecurity and have wanted to learn Unix for a long time. Subbed.

  • @Flora-ec4qz
    @Flora-ec4qz Před rokem

    Thank you so much for the video, this is amazing I got linux running on my laptop within 30 mins....dual boot /VM had me dying for at least a week to make it work, this is truly amazing!

  • @AlbrechtJ
    @AlbrechtJ Před 2 lety

    Thanks David for this excellent tutorial. You are a good teacher.

  • @JSL180
    @JSL180 Před 4 lety +1

    Thanks David, really useful. Nice video as always!!

  • @AbhishekNigam
    @AbhishekNigam Před 4 lety

    Very comprehensive info on WSL2. Thanks for the video!

  • @andrewgreen1970
    @andrewgreen1970 Před rokem

    Went off without a hitch. Thank you.
    Loving your fat-free style. Keep that going.

  • @zachsandvik1867
    @zachsandvik1867 Před 3 lety

    David, thank you for your tutorial. Top notch!

  • @mariusavram7823
    @mariusavram7823 Před 4 lety

    Very good tutorial. Thank you David. Keep up the good work.

  • @parameswarb8717
    @parameswarb8717 Před 2 lety

    I am so impressed with your teaching style.
    Seems you are a excellent professor
    Students are so lucky if you are a professor

  • @shreeramyadav837
    @shreeramyadav837 Před 4 lety

    Your channel intro video is superb!! 😍🤩 , Plus the video was very much informative.

  • @JawwadHafeez
    @JawwadHafeez Před měsícem

    Amazing competence and presentation.
    Impressive ...
    Thanks for sharing

  • @buildfrom
    @buildfrom Před 4 lety

    Fascinating. Very well put together explanation of WSL.

  • @krishnabala8403
    @krishnabala8403 Před 3 lety

    Awesome tutorial! Thank you! Super helpful.

  • @orleydoss3171
    @orleydoss3171 Před 4 lety

    Great tutorial, glad you are home safely.

    • @davidbombal
      @davidbombal  Před 4 lety

      Thank you Orley! Good to see you here again.

  • @antonlota9210
    @antonlota9210 Před 3 lety

    Hey David, excellent video! more power to you!

  • @alexisrs127
    @alexisrs127 Před 3 lety

    Great tutorial, very well explained and nice structure. I am glad to suscribe to the channel.

  • @bruceliu9808
    @bruceliu9808 Před 2 lety

    Thank you so much for getting me started with Ubuntu and Linux!

  • @44mod
    @44mod Před 3 lety

    Great video. Easy to follow and I thank you for your time.

  • @lucasasafe
    @lucasasafe Před 3 lety

    Thanks for that great sharing. I was eager to test this update

  • @cyberwolfie7344
    @cyberwolfie7344 Před rokem

    What an awesome tutorial! Thank you so much, kind sir

  • @anirbellahcen5551
    @anirbellahcen5551 Před rokem

    I am very let for bed time but I have to write this to say Thank you Sir, You have helped me so much. keep good work up.

  • @MegaBruceh
    @MegaBruceh Před 3 lety +2

    Thank you so much for this extremely helpful video. I only use Ubuntu for serious purposes such as programming, and have found it difficult to find a platform that runs Ubuntu seamlessly, always getting caught with some basic limitations such as with BIOS restrictions. WSL seems to be just what I am looking for. Shall start my search now to find a suitable pc.

  • @adrianoos1977
    @adrianoos1977 Před 4 lety

    Very Nice David! Thanks for the tips!

  • @smarty007us
    @smarty007us Před 4 lety

    Thank you sir for explaining that so clearly.

  • @candyman5185
    @candyman5185 Před 4 lety +1

    Well explained ! Thank You for sharing.

  • @geoffreyhibon2651
    @geoffreyhibon2651 Před rokem

    Amazing Video ... Very professional and clear!!! Thanks

  • @hariprasadoo
    @hariprasadoo Před rokem

    Thank you so much! Absolutely best WSL2 tutorial!!!

  • @niled.r.1639
    @niled.r.1639 Před 2 lety

    Thank you very much for the video, clear and concise. A tutorial for editing/debugging the code in wsl using eclipse or intellij on the windows would be awesome 😁. Thanks again.

  • @samola2803
    @samola2803 Před 4 lety

    Thank you David!!!, another great video...

  • @tom23j
    @tom23j Před 3 lety

    Thank you. Your videos are always awesome!!

  • @dencam
    @dencam Před 4 lety +2

    Great video 👍.
    I will start learning Linux from my Windows 10 PC

    • @davidbombal
      @davidbombal  Před 4 lety +2

      Thank you Dennis! All the best learning Linux - it's a fantastic operating system.

  • @rahulxcr
    @rahulxcr Před rokem

    Thanks, that was simple and very informative. This helped a lot.

  • @miovieira
    @miovieira Před 4 lety

    Very good. It will be extremely useful. Thanks one more, excellent video [s]

  • @lucaterraneo7274
    @lucaterraneo7274 Před 10 měsíci

    Very nice video! Thank you very much, it's been a long time since I first wanted to install WSL2 on my windows10 home.. :)

  • @viaualexis27
    @viaualexis27 Před rokem

    thx a lot David! helped setup WSL 2 on my laptop for some linux actions

  • @lyleclassen4698
    @lyleclassen4698 Před 3 lety

    Was following along then realised im also doing this on a VivoBook extra useful. Thanks

  • @mrmuranga
    @mrmuranga Před 3 lety

    well explained.. especially the part of toggling btwn wsl1 and wsl2 ..thanks I enjoy your tutorials emmensely...

  • @naomiibe6348
    @naomiibe6348 Před rokem

    Thank you very much for this
    Thanks to this video I successfully installed wsl2 today on my system😊

  • @RogerGay
    @RogerGay Před 3 lety

    Great video. Thanks a lot. I did find that on the old laptop that I tried this on, not setup for gaming, I also had to turn on virtualization in the BIOS to get WSL2. I suppose that's just one of those things that can vary.

  • @gaius_marius
    @gaius_marius Před 3 lety

    Excellent tutorial. Thank you.

  • @infoseppd1023
    @infoseppd1023 Před 3 lety

    Great video 👌 . Thanks for this effort a montage & information 🇲🇦💝

  • @TheCezerian
    @TheCezerian Před 3 lety

    Thank David - very good training.

  • @marioandresheviacavieres1923

    Thanks a lot for all this information it has been very helpful!

  • @Ahmed-AWS
    @Ahmed-AWS Před rokem

    The step by step is amazing

  • @dkryptonut
    @dkryptonut Před 4 lety

    Great video! Keen to try it out with Ansible, especially with the nice VSCode integration.

  • @Smackindaface
    @Smackindaface Před 2 lety

    great video, super simple and explained well

  • @christophermaisch
    @christophermaisch Před 4 lety

    Hi David, lekker video man! Thanks! Have you managed to get your head around sharing environment variables between Windows and WSL? I can't seem to get the two to share their toys... Thank you again for the effort you put into all your content, you are a goldmine of knowledge and experience and we really appreciate you!

  • @ramadhanfajar3236
    @ramadhanfajar3236 Před 4 lety +1

    Penjelasan yang rinci dan sangat mudah dicerna... salam hormat dari Indonesia :)

  • @KaramveerSikarwar
    @KaramveerSikarwar Před 3 lety

    Really nice. Good explanation

  • @wingwing2683
    @wingwing2683 Před 2 lety

    This is very useful! Thanks David

  • @gustavoleo8946
    @gustavoleo8946 Před 4 lety

    Fantastic explanation! Cheers mate!

  • @dimon.digital
    @dimon.digital Před 2 lety

    Thank you, David, for help!

  • @RonSheely
    @RonSheely Před 3 lety

    Thank you David. Excellent and helpful. Subscribing ...

  • @yassirg4365
    @yassirg4365 Před 4 lety +2

    Big thanks from Belgium! Didn’t know this was possible..

    • @davidbombal
      @davidbombal  Před 4 lety

      Thank you Yassir

    • @Sheikhazeemsh
      @Sheikhazeemsh Před 4 lety

      Another thanks from Belgium as well
      I guess now its trendy here in IT Techheads here 😀

  • @allezvenga7617
    @allezvenga7617 Před 4 lety

    Thanks for your great sharing!