Windows Subsystem for Linux 2 (WSL 2) is here

แชร์
ฝัง
  • เผยแพร่เมื่อ 27 มิ.ย. 2024
  • WSL2 will officially be part of Windows 10, version 2004, which will be rolled out very soon. The design of WSL 2 is quite different to WSL 1. It includes a real Linux kernel, not just a compatibility layer, which means you can run Docker. Here is a quick look at WSL 2 and a quick demo on Ubuntu running inside of Ubuntu running inside Windows!
    Introduction to Android app development: www.dgitacademy.com
    Let Me Explain T-shirt: teespring.com/gary-explains-l...
    Twitter: / garyexplains
    Instagram: / garyexplains
    #garyexplains

ความคิดเห็น • 428

  • @GaryExplains
    @GaryExplains  3 ปีที่แล้ว +8

    NOTE: Since I published the video the official way to now install docker for WSL 2 is to use "Docker Desktop for Windows" rather than downloading the script via curl. See docs.docker.com/docker-for-windows/wsl/

    • @icy-spoon85
      @icy-spoon85 3 ปีที่แล้ว +2

      Thanks for the video! Just wanted to point out that Docker Desktop for Windows only works on Windows Pro, not home edition!

    • @patcoder1287
      @patcoder1287 3 ปีที่แล้ว

      Thanks, this video was helpful anyway

  • @TLAngus1337
    @TLAngus1337 4 ปีที่แล้ว +19

    wow the twist at the end really surprised me!

  • @ShaunMcCready
    @ShaunMcCready 3 ปีที่แล้ว +1

    Great explanation!! I was having issues with someone elses install video and yours filled in all the problem areas I had. Luckily I did the docker desktop for windows install instead of your script. Only after the fact did I see the pinned comment stating this. Thanks a ton!!!

  • @AbhiravGholba
    @AbhiravGholba 4 ปีที่แล้ว +2

    Great video again, Professor!

  • @dustinkrejci6142
    @dustinkrejci6142 4 ปีที่แล้ว +18

    That computer hardware reveal got me to emotionally go, “ 😳 😯 woah”

  • @wisteela
    @wisteela 4 ปีที่แล้ว +1

    Excellent. Now I know what I'm getting in what I'm currently upgrading to. :)

  • @mercedesquintanilla4387
    @mercedesquintanilla4387 3 ปีที่แล้ว +1

    Thank you very much! Your explanation was very helpful to me. I did manage to install WSL2 in an intel machine with the command wsl set default version 2 on PowerShell. I did not have the first version. It seemed that everything was going well but when I tried to start Ubuntu I got the same error message. In my case I did have to enable the virtualization in the BIOS and then uninstall and reinstall Ubuntu and that solved the problem.

  • @itaco8066
    @itaco8066 4 ปีที่แล้ว

    Super Gery!
    thank you

  • @hermanstokbrood
    @hermanstokbrood 4 ปีที่แล้ว +66

    I must see Inception again one day.

    • @SenileOtaku
      @SenileOtaku 4 ปีที่แล้ว

      You mean "Paprika". It predates "Inception" by four years.

    • @hermanstokbrood
      @hermanstokbrood 4 ปีที่แล้ว

      @@SenileOtaku No I meant Inception

    • @royk7712
      @royk7712 4 ปีที่แล้ว

      @@hermanstokbrood GRAND PIANO INTENSIFIES

    • @Pkkumarcool
      @Pkkumarcool 3 ปีที่แล้ว

      can you explain the ending? i guess he was still in dream.

  • @b00i00d
    @b00i00d 4 ปีที่แล้ว +1

    yes, i got some of the troubles you mentioned when upgrading to WSL2 on an AMD Ryzen. I had to go into the BIOS and enable Virtualization, among other things, but it's working fine now.
    Good video and really interesting to hear about the Surface Pro X havng an ARM! (man, don't i love all the wordplay you can get out of tech...)

  • @ZerqTM
    @ZerqTM 4 ปีที่แล้ว +197

    they should have named the conversion layer "eniw" since its kind like wine in reverse

    • @alnm645
      @alnm645 4 ปีที่แล้ว +31

      how about "Windows Subsystem Is Not an Emulator" WSINE

    • @xybersurfer
      @xybersurfer 4 ปีที่แล้ว +24

      @@alnm645 that breaks the recursive joke though. maybe "WSINE Subsystem Is Not an Emulator"

    • @alnm645
      @alnm645 4 ปีที่แล้ว

      @@xybersurfer maybe :thinking:

    • @VictorRodriguez-zp2do
      @VictorRodriguez-zp2do 4 ปีที่แล้ว +11

      @@alnm645 Windows subsystem actually uses a virtual machine so it is an emulator

    • @AdolphusOfBlood
      @AdolphusOfBlood 4 ปีที่แล้ว

      @@VictorRodriguez-zp2do they mean the first version

  • @Gabriel-kl6bt
    @Gabriel-kl6bt 4 ปีที่แล้ว +6

    I love Microsoft is doing it. Now, it all comes down to a matter of preference of what system to use. If one is a gamer and a programmer, using WSL is just more convenient.

    • @78anurag
      @78anurag 2 ปีที่แล้ว

      Sounds like me

  • @maxfate9006
    @maxfate9006 4 ปีที่แล้ว

    thanks, nice explanation, I update to wsl2

  • @glebkoshelev
    @glebkoshelev 4 ปีที่แล้ว +50

    In Microsoft presentation of WSL2 they showed a different conceptual image of how the whole thing is structured. According to their presentation both linux and windows kernels work on top of hypervisor and not like in your picture where linux runs on top of windows kernel. I might got that wrong, but as far as I understood linux in wsl2 is a normal linux except that resources are dynamically allocated by hypervisor the same way they do it on the cloud and there is a communication bridge in application layer between windows and linux.

    • @guibirow
      @guibirow 4 ปีที่แล้ว +14

      You are correct, when Hyper-v is enabled, windows runs on top of Hyper-v the same way VMs like the wsl2 and other standard Hyper-v VMs.
      This is the reason why virtualbox and other virtualization tools does not work when Hyper-v is enabled.

    • @eidrag
      @eidrag 4 ปีที่แล้ว

      @@guibirow so, when there's no hyper-v, it's like explained in video?

    • @rescenic
      @rescenic 4 ปีที่แล้ว +1

      i dont like hyper-v. cant use vmware and virtualbox at the same time.

    • @rossonerodiavolo8074
      @rossonerodiavolo8074 4 ปีที่แล้ว +2

      So from what you are saying, this is just a Hypervisor running both kernels... Something you could do previously without this, like KVM or QEMU

    • @Dr_MKUltra
      @Dr_MKUltra 4 ปีที่แล้ว +1

      Rescenic just use hyper v then

  • @agungbuana6796
    @agungbuana6796 4 ปีที่แล้ว

    you really have good talent in writing movie script. the ending is exceptional...

  • @st3ddyman
    @st3ddyman 4 ปีที่แล้ว +12

    I had noticed the Arm64 message in the docker hello-world and wondered why that was :)

  • @FinlayDaG33k
    @FinlayDaG33k 4 ปีที่แล้ว +6

    As a heavy user of Docker, I'm happy to see this being worked on :)
    One thing I have on my mind though... how does it work with volumes?

    • @SuperMarkusparkus
      @SuperMarkusparkus 4 ปีที่แล้ว +1

      I use docker on wsl2. Just make sure to use wsl version 2. Install docker and then *manually* start it using /etc/init.d/docker start.

  • @ThomasWSmith-wm5xn
    @ThomasWSmith-wm5xn 4 ปีที่แล้ว

    I want to like wsl2 but I keep running into issues when I try to actually work with it.
    In the case that I have mysql installed via ubuntu wsl2.
    But want to use workbench to interact with my mysql db. Could I have the server running through ubuntu and workbench working with the dbs through windows?
    Same with mongodb and 3T.

  • @schillaci5590
    @schillaci5590 3 ปีที่แล้ว +7

    Warning, if installing on Windows Server 2019, you need to be on build version 1909 which is not generally available even as an update (unless you're on Core edition?). 1809 is the latest you'll get on Windows Server 2019 Standard via Windows update. A lot of online videos and guides fail to mention the build number. You'll be able to install the WSL and Windows Image features but you will not be able to use the WSL commands. You'll get stuck and wishing people told you about this basic stuff!

  • @NOPerative
    @NOPerative 4 ปีที่แล้ว +4

    Good stuff.
    I think Windows will eventually become a hyper-visor itself one day (type 1 [hardware based]). Problem is that it's not coming into fruition fast enough for my tastes. XBox, Windows and other O.S.s will all be run in virtualized environments using a Windows/Microsoft type 1 hyper-visor VM manager - it will be awesome. System crashes could be managed without having to hard reset the system thus debugging could be far more powerful with real time trace & dump that was previously impossible for most. The implications are staggering in my observations.
    Anyway, excellent video & treatment.

  • @clearlyunwell
    @clearlyunwell 4 ปีที่แล้ว

    You are so good. I love your clear and correct explanations of all interesting things. Thank you for your videos!

  • @ykhatat
    @ykhatat 4 ปีที่แล้ว +1

    Nice 👍🏼 a video on docker would be interesting to watch.

    • @GaryExplains
      @GaryExplains  4 ปีที่แล้ว +2

      I already have one here th-cam.com/video/nBwJm0onzeo/w-d-xo.html

    • @ykhatat
      @ykhatat 4 ปีที่แล้ว +1

      @@GaryExplains thanks

  • @carlosbornes
    @carlosbornes 4 ปีที่แล้ว +2

    After making the upgrade from WSL to WSL2 I'm getting some trouble running GUI. Before I was using X-ming and export Display:0 now this does not work. How had the same problem? How did you solve it?

  • @debojitmandal8670
    @debojitmandal8670 4 ปีที่แล้ว

    Hey Gary I have a question and this question is a bit out of this topic . Will there be a ecosystem between android and windows in future I mean a fully fledged where I can transfer files bw them.right now we can only trasfer photos from your phone app but only limited to 25 photo's.

  • @pavelvrasskii1359
    @pavelvrasskii1359 4 ปีที่แล้ว

    thx Gary

  • @john-r-edge
    @john-r-edge 4 ปีที่แล้ว +25

    Gary. Interesting stuff for sure. One question. Could you describe the pros and cons of this WSL-2 setup over using a traditional Type-2 hypervisor like Virtualbox (beyond the obvious fact that Vbox can so a Linux guest with desktop GUI) . Thanks.

    • @bakedbeings
      @bakedbeings 4 ปีที่แล้ว +9

      John Edge The main use case of WSL for me is clicking ubuntu as my ssh shell or choosing it as a terminal in vs code. In each case it loads instantly without having to load a whole virtual machine explicitly. I haven’t looked into how it grabs resources but I dont dedicate 6-8GB of ram to it like I normally do with a vm either.

    • @homelessrobot
      @homelessrobot 4 ปีที่แล้ว +10

      the primary advantage is resource allocation. A typical type-2 hypervisor has to allocate all of the memory for the 'machine' will ever use up front, and needs to do so for every guest. WSL-2 integrates allocation of machines into the operating system, so most of it can be allocated dynamically as-needed like native processes, and every machine shares some amount of common kernel state so it doesn't all need to be allocated for every single guest.
      So you don't need to pre-allocate gigs and gigs of memory for every guest. They share a kernel (with some resource isolation between guests), and they only consume as much memory beyond that as is required.
      The main con is that its linux only, and only the one kernel you have installed in wsl2 for all guests. So no BSD or plan9 or arbitrary-home-grown non-linux operating systems (or linux distributions that rely on specific sorts of early initialization to make sense). Distributions like TinyCore for instance that configure the system with kernel parameters would be pretty hard to port, and are generally outside of the intended use case.
      I guess it could be possible to also port other sorts of kernels, but it would be a significant effort, and this would still mean all of your guests would have to use just that.

    • @TLAngus1337
      @TLAngus1337 4 ปีที่แล้ว +6

      The big Pro for WSL 2 is the tight integration to windows using their customized version of the Linux kernel. Network share, port forwarding and mounting your real drives are built-in.
      On the other hand, you miss out on specific configuration of the VM like in other hypervisors.

    • @lawrencedoliveiro9104
      @lawrencedoliveiro9104 4 ปีที่แล้ว

      @@TLAngus1337 “Customized version of the Linux kernel” sounds like a bad idea. That’s going to be an extra support headache for them, trying to keep up with changes in the mainline kernel. How long do you think it will be before they fall irretrievably behind?

    • @TLAngus1337
      @TLAngus1337 4 ปีที่แล้ว

      @@lawrencedoliveiro9104 i dont really worry about that. I mean, given the Effort that they Put in to build this in the first place, also with their New direction to open Source and Linux, I dont think they Will just Abandon it.

  • @wlgrd7052
    @wlgrd7052 4 ปีที่แล้ว +6

    How about accessing hardware connected to USB ports? Can I connect to a UART/CDC device?

  • @TheVerrm
    @TheVerrm 4 ปีที่แล้ว +2

    Guys a serious question - if this is basicaly a VM running underneath is it being reset with each opening or Windows reboot? Also is there any other interface between VM and windows other than shared network and storage access?

  • @randallanderson4999
    @randallanderson4999 4 ปีที่แล้ว +17

    If, when you try to do the 'wsl -l -v' command, and you get an usage screen - it means that your version of Windows does not support wsl2 - yet.
    I had tried to use windows insider slow track - but it still would not do wsl -v... I had to upgrade to Windows insider Fast track to get the latest version of Windows. Now when I do wsl -l -v I get a listing of my Ubuntu and it's version 1.

    • @juliandave3648
      @juliandave3648 4 ปีที่แล้ว +1

      Thank you!

    • @jiagengliu
      @jiagengliu 4 ปีที่แล้ว +1

      Yes. I'd like to add that many enterprise versions of Windows lag behind, so it may take several months before you could try if you're using Enterprise versions

  • @diezgp
    @diezgp 4 ปีที่แล้ว

    This was a good video.

  • @FreeLearnclass
    @FreeLearnclass 4 ปีที่แล้ว

    question ... whay not just use docker instead of downloading wsl .. if both runs the same thing ?????

    • @uzplay
      @uzplay 4 ปีที่แล้ว

      Good Question!! This is actually just what Docker.com wants you to do. In fact, they don't support installing docker this way anymore.

  • @countreechen4417
    @countreechen4417 4 ปีที่แล้ว +2

    So can a external drive be mounted in the wsl2 now?

  • @1MarkKeller
    @1MarkKeller 4 ปีที่แล้ว +2

    *GARY!!!*
    *GOOD MORNING PROFESSOR!!!*
    *GOOD MORNING FELLOW CLASSMATES!!!*

  • @hwntwww
    @hwntwww 4 ปีที่แล้ว

    how do you start Exlorer with a lower case initial e? I have to use upper case E

  • @ataru4
    @ataru4 4 ปีที่แล้ว +6

    Does the Hyper-V implementation still cause problems running VirtualBox or VMware on the same machine? I've been running WSL1 for a while but was a bit frustrated by its limitations.

    • @davidg4512
      @davidg4512 4 ปีที่แล้ว +3

      Yes. Hyperv actually technically virtualizes your current windows when you turn it on, thus causing problems for VirtualBox, VMware, or any other type 2 hypervisor.

    • @enricosevenfoldism
      @enricosevenfoldism 4 ปีที่แล้ว +1

      I got wsl1 and still be able to use vmware workstatiom nicely gor gns3 simulation, idk about vbox

    • @hoterychannel
      @hoterychannel 4 ปีที่แล้ว +1

      maybe because wsl1 is translator and not an VM. so no problems when using virtualization software

  • @sandys1999
    @sandys1999 4 ปีที่แล้ว +3

    this was very helpful - but you missed a critical step "sudo service docker start". without this, the docker run command does not work

  • @nanuqcz
    @nanuqcz 4 ปีที่แล้ว

    How did you get from Windows console into the Linux console? I'm missing basic info in the video...

  • @MrMysticphantom
    @MrMysticphantom 4 ปีที่แล้ว +1

    Dude...some of us are REALLY psyched on this being GA soon... heck..this ALONG SIDE Powershell 7 (7.1 soon which is LTS) make us EXTREMELY giddy ... mix that with .Net Notebooks (with Powershell) on Jupyter Notebooks ..reports, analytics, and automation for days yo

  • @orangesage04
    @orangesage04 3 ปีที่แล้ว

    Does uninstalling the distro from settings also clean all the files in ubuntu subsystem and installed packages stuff?

  • @mrwang420
    @mrwang420 4 ปีที่แล้ว

    I wish there was an android app Call Remote Task Manager and is the while entire windows task manager in all its functions and appearance that you run on your phone but it shows you your pcs information as well as allows you to remotely monitor your pcs usages as well as to close as well as open tasks and processes as literally as if you were doing the same on your pc. So that you can run full screen apps and still see the task manager.

  • @marcd1981
    @marcd1981 3 ปีที่แล้ว

    Hello Gary, thank you for this video.
    I was attempting to set up my Windows 10 machine today with WSL 2, and have run into a snag.
    I upgraded Windows 10 to the latest build, and then downloaded Ubuntu 20.04 (the latest at the Windows Store). after launching Ubuntu, I received the successfully installed message, and my screen was at a prompt to enter my UNIX user name and password.
    However, no matter what user name I typed in, I received this message: enter a username to match the regular expression configured via the NAME_REGEX[_SYSTEM] configuration variable.
    I do not know what this means, and cannot get past this step to use WSL 2 on my computer. Any thought or suggestions?
    Thank you,
    Marc

  • @blueskyredkite
    @blueskyredkite 4 ปีที่แล้ว

    Been away from Windows for a long time. New job means I *must* use it, I can try, but I'm not sure the support desk will allow me to install this on my Windows desktop machine. I *so* wanted perl for some data munging recently, this would be so useful. Thanks for the heads-up, I had no idea MS had become enlightened.

    • @FlorinArjocu
      @FlorinArjocu 3 ปีที่แล้ว +1

      They haven't, they are just following their interest and pretending to be friendly with linux (see for instance the exfat driver they submited to linux kernel, later to be replaced by Samsung's driver, which was better than the one created by the maker ox exfat).

  • @malding1
    @malding1 3 ปีที่แล้ว

    Ok that was unexpected, wow

  • @hermesgarcia9612
    @hermesgarcia9612 4 ปีที่แล้ว

    1 Quest...!!! I have Ubuntu 20.04 subsystem, and the patch doesn´t apply. What should I do next. Or, is it only that solution for 18.04???

  • @orlybriceno
    @orlybriceno 4 ปีที่แล้ว +1

    I got here from your video of WSL on Surface X, what laptop would be a good to have a developer machine with this? I am a mac user looking for an alternative *nix dev environment

    • @igorthelight
      @igorthelight 4 ปีที่แล้ว

      Why not normal Linux then?
      For example - Linux Mint.
      Or if you are advanced user - Linux Manjaro (enable AUR and update system ONLY with Terminal).

    • @yeesh2630
      @yeesh2630 4 ปีที่แล้ว +1

      I'm a backend developer (Go, Python, Docker, K8s) and I use the Surface Pro X on a daily basis for development. I chose it because I want modern and portable machine coupled with a stable Linux environment (Ubuntu, Debian) . It would be significantly cheaper to follow Igors advice if you don't mind potentially dated hardware (unless you go for the dell xps route).

  • @A1n2o3s4h5
    @A1n2o3s4h5 4 ปีที่แล้ว +2

    Pls do a running gui apps on wsl 2

  • @truthseeker2171
    @truthseeker2171 4 ปีที่แล้ว

    I hope it'll be released this midnight

  • @ruadeil_zabelin
    @ruadeil_zabelin 3 ปีที่แล้ว +2

    So this essentially means that the nice idea of executable compatibility was just shifted to a glorified VM? I'm not sure if that's better

  • @blackdove511
    @blackdove511 4 ปีที่แล้ว

    I have problem on using wsl when using kali distro. Checking today if there are any more issue

  • @Rednunzio
    @Rednunzio 4 ปีที่แล้ว

    can I create a bash script that makes changes on winodws or does it all remain on the Linux side? If I have to make changes to file permissions on windows, for example, can I launch a chmod from wsl or not?

  • @Warrentheo
    @Warrentheo 4 ปีที่แล้ว

    How long till we have Androidx86 running under WSL2? I think it will be awesome to be able to actually install native Google Play Store under Windows...

  • @gosnooky
    @gosnooky 4 ปีที่แล้ว

    Can I mount another hard drive with Ubuntu from a different machine?

  • @ARMENIA181
    @ARMENIA181 4 ปีที่แล้ว

    Docker can map network port to windows localhost port, like "-p 8080:8080"

  • @ekirchman8765
    @ekirchman8765 4 ปีที่แล้ว +8

    How well do Graphical tools and desktop environments run now? They used to run very poorly before and w/o hardware acceleration. Any changes to that?

    • @ViewBothSides
      @ViewBothSides 4 ปีที่แล้ว +6

      Linux on WSL2 is (understandably) text mode only, and you have to be careful not to touch Linux files from within Windows or vice-versa because of the file system incompatibilities. This video is a bit misleading regarding files - it's ok to read/view the alternate filesystems but any changes from the 'wrong' side can lead to a world of pain. The alternative to WSL/WSL2 is to repurpose your old PC as a 'real' Linux box and simply ssh to that.

    • @SlyEcho
      @SlyEcho 4 ปีที่แล้ว +4

      @@ViewBothSides It's not safe if you find and change them in the AppData folder, but it is safe if you access them through the wsl$ network share.

    • @bakedbeings
      @bakedbeings 4 ปีที่แล้ว +2

      ViewBothSides It’s totally fine to edit files on your windows partitions through wsl. I can edit in vim and then, in a powershell run hugo to serve the files.

    • @homelessrobot
      @homelessrobot 4 ปีที่แล้ว +2

      @@ViewBothSides wsl2 is text mode, but linux graphics do not actually require any sort of 'local' graphics hardware or acceleration. You can run an x11 server on windows and connect to it from linux, just as you generally do on linux. Hardware access of all kinds (USB, GPU, PCI) is currently extremely limited (read non-existent) but it is planned. You cannot run accelerated graphics on x11(or wayland either, not really sure how wayland works) without some sort of GPU acceleration feature parity between the client and the server.

    • @homelessrobot
      @homelessrobot 4 ปีที่แล้ว +1

      @@ViewBothSides And also, filesystem access is only unsafe if you are not going through the WSL network filesystem. For WSL2 this isn't really a problem, since the filesystem is inside of a VHD, and not encoded into the filesystem itself, so you cannot really get at it without going through the network filesystem layer.

  • @ericfu156
    @ericfu156 4 ปีที่แล้ว

    Hi, How did you open the bash terminal in windows which connected to the Linux subsystem in 4:19?

    • @GaryExplains
      @GaryExplains  4 ปีที่แล้ว

      You need to install WSL first.

  • @jGRite
    @jGRite 4 ปีที่แล้ว +67

    This is neat.
    In other news, who's excited about 20.04 LTS?

    • @lemur7
      @lemur7 4 ปีที่แล้ว +1

      Hell yeah (at least for the GNOME updates that it'll bring). Trying GNOME 3.36 on Fedora 32 Beta and it's great!

    • @hammerheadcorvette4
      @hammerheadcorvette4 4 ปีที่แล้ว +2

      Run something other than Ubuntu...

    • @rossonerodiavolo8074
      @rossonerodiavolo8074 4 ปีที่แล้ว +2

      Run a proper Linux Distribution.

    • @AA-zm9hk
      @AA-zm9hk 4 ปีที่แล้ว +2

      @@rossonerodiavolo8074 wdym proper?

    • @igorthelight
      @igorthelight 4 ปีที่แล้ว +2

      @@AA-zm9hk Maybe he doesn't like Snap? Or systemd? :-)

  • @AnthonyEssaye
    @AnthonyEssaye 4 ปีที่แล้ว

    Your machine said armV8, not a surprise at the end 🙊

  • @valshaped
    @valshaped 4 ปีที่แล้ว +6

    I'm so used to calling WSL "wuzzle" that hearing W S L was kinda strange.

  • @LampJustin
    @LampJustin 4 ปีที่แล้ว +2

    Docker in ChromeOS would be even more Inception: container -> Linux container (If you install a Linux distro on ChromeOS it comes as a container within a VM) -> VM -> Gentoo(ChromeOS)

  • @AlexGavrishev
    @AlexGavrishev 4 ปีที่แล้ว

    x410 doesn't work for my anymore on Pro X after moving to WSL2

  • @Ultrajamz
    @Ultrajamz 4 ปีที่แล้ว +1

    Only feature I still want is for the linux kernel to have access to the GPU so I can run machine learning from the linux side of things on my single GPU (the same one windows is accessing to display my desktop)

  • @edhalferty
    @edhalferty 4 ปีที่แล้ว

    If I'm already using WSL (without "Virtual Machine Platform"), can I check the "Virtual Machine Platform" box to upgrade to WSL 2? Will that break my existing WSL Linux?

    • @edhalferty
      @edhalferty 4 ปีที่แล้ว

      Oh I see, you answered this in the video (I think). Great! Thanks!

  • @williaamlarsson
    @williaamlarsson 4 ปีที่แล้ว +15

    It's funny how WSL was made to try and keep developers on Windows, but for me it became an entry point for Linux Desktop.

    • @ShaunMcCready
      @ShaunMcCready 3 ปีที่แล้ว

      Normally I prefer to use either Mac OSX or Linux however I recently got a work laptop that has some compatibility issues with ubuntu 20.04 so I opted for windows. I still believe mac > linux > windows

  • @Franseven
    @Franseven 4 ปีที่แล้ว

    is it really working on arm? or we are just in a dream? damn Nolan should be proud of us

  • @nathanwebb2800
    @nathanwebb2800 4 ปีที่แล้ว

    Your error about virtualising just looks like VT-x is disabled in the BIOS. This is common for most X86/X64 off the shelf hardware and most likely has nothing to do with the Surface Pro X initially. Considering the SP-X is an ARM based platform, I wonder if you get a performance hit running WSL if the virtual machine has to translate to ARM calls and vice versa or if ARM calls are already packaged in the M$ Linux kernel. It would actually be great to see a comparison against this and your intel platform.

  • @thelookofdisapproval8234
    @thelookofdisapproval8234 4 ปีที่แล้ว

    Can you explain what's the difference b/w WSL and Linux running in docker container (Before WSL was a thing)
    because docker uses a VM to run linux containers
    I think that microsoft just microsoft just added "Docker" to windows, renamed it WSL

    • @homelessrobot
      @homelessrobot 4 ปีที่แล้ว +4

      Part of the justification for WSL2 is to actually use linux containerization with docker on windows without a a type 2 hypervisor. This makes allocating resources for containers more dynamic, so docker on windows doesn't need to grab a huge amount of resources on the host preemptively, and can just grab what it needs to meet the needs of the containers dynamically, like it can on a native linux host. This also streamlines the integration of windows server and linux containers.
      Docker and microsoft have been partnered since 2014. Theres no 'in quotation idea thievery' and rebranding. They are partnered, and there is a whole hell of a lot more to wsl than 'der windoze docker amirite'

  • @belthazor6415
    @belthazor6415 3 ปีที่แล้ว

    I tried installing Linux apps on wsl2 but it tells me that it can’t find the Ubuntu package can you help me

  • @l040352
    @l040352 4 ปีที่แล้ว

    My hosts have stopped working all of a sudden. Any ideas what should I do

  • @saurabhchougule9483
    @saurabhchougule9483 4 ปีที่แล้ว

    Could you try gui too ?

  • @bertieblob3387
    @bertieblob3387 4 ปีที่แล้ว

    Cool.

  • @Zuxx_0
    @Zuxx_0 4 ปีที่แล้ว

    sir, I installed it and reboot my laptop, but suddenly while rebooting it made a very noisy beep sound and the screen was total dark.In order to stop that noise I shut it with by pressing the power button. I am very scared right now. Please tell me, will my Laptop be crashed ? Well, I will restart again tommorow to see what happens. If the sound doesn't stop what should I do ?... Plzzz someone help with this

  • @MarioAparcero
    @MarioAparcero 4 ปีที่แล้ว

    is better cygwin than xming? and with wsl 2 ???

  • @IAMSolaara
    @IAMSolaara 4 ปีที่แล้ว

    The only thing that bothers me is that I won't be able to use VMWare or VBox no more. Had to turn Hyper-V off to get that going

  • @greyman1104
    @greyman1104 4 ปีที่แล้ว

    Ok, so I installed WSL2 manually, but the --l -v and --set-version options aren't available in my wsl.exe. Can not upgrade my Linuxes to WSL2. What did I do wrong?

    • @GaryExplains
      @GaryExplains  4 ปีที่แล้ว +3

      How did you install WSL2 manually?

  • @NickyNiclas
    @NickyNiclas 4 ปีที่แล้ว +7

    We started calling WSL *weasel*

  • @D3ND
    @D3ND 4 ปีที่แล้ว +1

    Two questions
    1) what about system calls (POSIX) on WSL? Do they work? If so, how do they work and how well do they work?
    2) one of the limitations of WSL was that it only works on 64 bit systems and I thought it was because of the comparability layer. Does WSL2 have the same limitation? Since it uses the kernel itself it may be working on 32 bit.

    • @thekakan
      @thekakan 4 ปีที่แล้ว +1

      2> He was running this in an ARM powered device. So, if windows NT and linux can run in your target platform, you're good to go.

    • @scott0852
      @scott0852 4 ปีที่แล้ว

      I'm pretty sure the entire point of WSL is that it's posix compliant...

    • @totzinfo
      @totzinfo 4 ปีที่แล้ว

      WSL 2 could run Unix kernel derive from Microsoft very own Unix OS called Xenix, maybe it could run POSIX

  • @Alhussain_Y
    @Alhussain_Y 3 ปีที่แล้ว

    Can you Outline Server on subsystem?

  • @franciscosusana2292
    @franciscosusana2292 4 ปีที่แล้ว +5

    He did mention that you has to be on the "slow ring" program of MS to use it, right?

    • @homelessrobot
      @homelessrobot 4 ปีที่แล้ว

      you can use it on fast ring in earlier versions. I am on fast ring using 19041, and wsl2 is here. Its been on fast ring for quite a while.

    • @franciscosusana2292
      @franciscosusana2292 4 ปีที่แล้ว

      @@homelessrobot how stable has it been for you?

    • @homelessrobot
      @homelessrobot 4 ปีที่แล้ว

      @@franciscosusana2292 Fast ring? I have never had any issues. I am not really probing the edges of the 'questionably stable' parts of it though, so it isn't too surprising.
      The biggest annoyance is the frequency of updates, so I generally just pause them once I get to the set of features I work with.
      I don't really care that much about stability in general so long as it isn't completely bricking my desktop environment.
      I imagine if you are using newer hardware for which drivers are getting touched more frequently in the fast ring it's a different story, but I am on a pretty plane jane machine with older hardware that has stable 3rd party drivers.

    • @homelessrobot
      @homelessrobot 4 ปีที่แล้ว

      ​@Jean-Paul Teitu II It's acceptable for my use cases (mostly development). I do not know what you mean by startup time though. The way WSL1 works, nothing is really 'started up' other than your shell when you execute `[wsl -d] distroname`. all of the initialization happens when you install the distro, and when the host system starts.
      The most obvious performance distinction between the two is how the disks work, so heavy disk operations will almost always be faster in WSL2.

    • @homelessrobot
      @homelessrobot 4 ปีที่แล้ว

      @Jean-Paul Teitu II have you tried just starting wsl from an existing command shell? I imagine this might have nothing to do specifically with the WSL system but rather the mechanism windows uses for starting up a command shell that it uses to launch WSL from the start menu/a shortcut (maybe it runs it in powershell, i know powershell initialization is disgusting).
      When actually just engaging wsl directly (through an existing command shell) there is no initialization that needs to happen. You aren't really 'starting wsl' (its functionality baked into the OS), you are starting bash in the context of the existing container space.

  • @Ou8y2k2
    @Ou8y2k2 4 ปีที่แล้ว +26

    You know what WSL 3 should be? Swapping the Windows 10 kernel for the latest Linux kernel, then allowing the installation of Cinnamon or Gnome. 🤞🌠🤞

    • @skatcat743
      @skatcat743 4 ปีที่แล้ว

      x11 or wayland would need to come first xd

    • @newstar346
      @newstar346 4 ปีที่แล้ว +6

      And rename to Lindows 10

    • @Ou8y2k2
      @Ou8y2k2 4 ปีที่แล้ว +1

      @@skatcat743 Yep.

    • @Ou8y2k2
      @Ou8y2k2 4 ปีที่แล้ว +1

      @@newstar346 You might be joking, but that name is taken: www.linux.org/threads/lindows.11236/

    • @scott0852
      @scott0852 4 ปีที่แล้ว

      If you're doing that, you're not running windows, you're running linux. If someone wanted to run linux as their main os, why would they install windows and then replace windows with linux?

  • @eranraz
    @eranraz 4 ปีที่แล้ว

    can you run linux gui on WSL 2?

  • @azuwan
    @azuwan 4 ปีที่แล้ว

    I have old PC without Intel-VT, WSL1 or WSL2 is good? I think since WSL2 involved with Hyper-V so maybe it needs VT supported CPU

    • @homelessrobot
      @homelessrobot 4 ปีที่แล้ว +1

      it does

    • @abhileshxd621
      @abhileshxd621 4 ปีที่แล้ว

      It does. You may be better off running a full Linux desktop on an old pc since windows will only make it suffer.

  • @skatcat743
    @skatcat743 4 ปีที่แล้ว

    can we dd now?

  • @techzone2009
    @techzone2009 4 ปีที่แล้ว

    directX 12 support in Linux
    ... please make a video

  • @chakpaangom1972
    @chakpaangom1972 3 ปีที่แล้ว

    Is possible o run kvm qemu

  • @terryosborne2964
    @terryosborne2964 4 ปีที่แล้ว

    Can anybody explain to me the right steps to or right commands to uninstall it? There seems to be plenty of web articles installing wsl 2 but not a way to get uninstall it I. like to be able to run VMware on VirtualBox again.

    • @GaryExplains
      @GaryExplains  4 ปีที่แล้ว

      Make sure you uninstall "virtual machine platform" and if you have Windows 10 Pro you also need to uninstall Hyper-V. You need to uninstall WSL as well of course. You do all of these by unticking the boxes in "turn windows features on or off"

  • @ricardomilos2674
    @ricardomilos2674 4 ปีที่แล้ว

    It is nice but cannot access hardware directly specially wsl cannot run aircrack-ng

  • @mobluse
    @mobluse 4 ปีที่แล้ว

    It seems the biggest disadvantage with WSL2 vs WSL1 is that WSL2 grabs a large fixed part of your HDD, which is SSD in my case. OK, you can resize the part, but it's still no that flexible.

  • @arvinmi
    @arvinmi 4 ปีที่แล้ว

    So is it no okay to use windows computer instead of Mac???

  • @SkyyySi
    @SkyyySi 4 ปีที่แล้ว

    I think many people don't reaslize it, but WSL (2) is a thread towards Linux and open source. Because it only exists to prevent developers to actually use Linux for development, so that everyone stays bound to Windows.

    • @GaryExplains
      @GaryExplains  4 ปีที่แล้ว +1

      But the stuff you develop under WSL is still Linux development, no? If an obstacle to developing for Linux is that a developer needs to switch away from Windows and onto Linux then surely WSL allows developers to increase their Linux development without having to switch away from Windows? That means that WSL increases, not decreases, Linux development.

    • @SkyyySi
      @SkyyySi 4 ปีที่แล้ว

      @@GaryExplains That's what I thought at first as well. Then they sayed they would bring GUI support to WSL 2 - but not via OpenGL or Vulcan, but a propriotary DirectX implementation that relys on Windows to work. And worst of all: OpenGL apps running in gui mode will be translatet to DirectX. You've probably heard of microsoft's EEE strategy - "Embrace, Extend, Extinguish". Fist they randomly started to embrace Linux even though they litterally called it a cancer a few years back. Now they are extending it with propriotary features so that developers start to write "WSL optimized" apps - that don't work correctly on Linux since they are made for DirectX. And then they'll basically have killed Linux since many, many developers will move to WSL. I've actually read several blog posts from devs confirming just this today.

    • @GaryExplains
      @GaryExplains  4 ปีที่แล้ว

      I think you have misunderstood Microsoft's announcements about GPU support for WSL. I just re-read it to be sure. For example, bringing GUI support (as in X11 support) is a different thing to offering GPU acceleration. Both were announced at Build2020 along with support for NVIDIA CUDA. From reading your comments it seems like you have mixed some things up in your mind and have come to some wrong conclusions.

  • @vaibhavbv3409
    @vaibhavbv3409 4 ปีที่แล้ว

    I would like linux subsystem for windows more.

  • @RedDragon42420
    @RedDragon42420 4 ปีที่แล้ว

    You say windows 10, does this mean a update for windows 10 home will cone out that will allow you to use WSL2?

  • @eugenem4854
    @eugenem4854 4 ปีที่แล้ว

    hiperv is hypervisor, not vm

  • @janebrown3402
    @janebrown3402 4 ปีที่แล้ว +15

    Where is Mark?
    Oh late again. class is ending !.

    • @kanumanu1656
      @kanumanu1656 4 ปีที่แล้ว +1

      Lol

    • @1MarkKeller
      @1MarkKeller 4 ปีที่แล้ว

      *JACK BROWN!*

    • @1MarkKeller
      @1MarkKeller 4 ปีที่แล้ว

      @@SmilerOnline *CANZUK!*

    • @1MarkKeller
      @1MarkKeller 4 ปีที่แล้ว +1

      @@kanumanu1656 *KANU MANU!*

  • @user-rl4ow6js8n
    @user-rl4ow6js8n 3 ปีที่แล้ว

    can we install wsl2 version {10240}

  • @AndersJackson
    @AndersJackson 4 ปีที่แล้ว +2

    2004? We are at 2020 now. :-)
    (You also want to run graphical systems in the Linux system. Like a X11 server running on MS Windows, and get Linux talking to that X11-server)

    • @GaryExplains
      @GaryExplains  4 ปีที่แล้ว

      I don't get the reference to 2004, did I say 2004 by mistake somewhere? Also I published a video a while back on getting X11 working under WSL.

    • @Psychlist1972
      @Psychlist1972 4 ปีที่แล้ว +1

      2004 as in April 2020.

  • @phillipmarnik
    @phillipmarnik 4 ปีที่แล้ว

    Is it pronounced twenty oh four or twenty zero four ? Is the third character a letter or number?

  • @mairacristian54
    @mairacristian54 4 ปีที่แล้ว

    can it run X server?

  • @serhioromano
    @serhioromano 4 ปีที่แล้ว

    The point that it will update through Windows update is not that it is not through Linux update. The point is that it will be delivered within bound to updates of Windows itself. Look know we have to wait wsl2 only with new windows. But later we will get wsl2 updates more often. It is not that it will update Linux not wsl2

  • @marcin2x4
    @marcin2x4 3 ปีที่แล้ว

    I got Confluent Platform set on Docker (windows 10 machine). According to confluent it is possible to browse Kafka entrails using WSL but I had no luck in doing so (docs.confluent.io/current/cli/installing.html). Did anyone encountered same issue?
    In Docker I did open connection for my WSL Ubuntu installation but CLI is not working.

  • @danielarriola9084
    @danielarriola9084 4 ปีที่แล้ว

    5:52 I did'nt watch that version, thanks