Windows Subsystem for Linux 2 (WSL 2) is here

Поделиться
HTML-код
  • Опубликовано: 17 ноя 2024

Комментарии • 428

  • @GaryExplains
    @GaryExplains  4 года назад +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 4 года назад +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!

  • @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

  • @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

  • @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 4 года назад

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

  • @ShaunMcCready
    @ShaunMcCready 4 года назад +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!!!

  • @schillaci5590
    @schillaci5590 4 года назад +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!

  • @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 3 года назад

      Sounds like me

  • @dustinkrejci6142
    @dustinkrejci6142 4 года назад +18

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

  • @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.

  • @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? :-)

  • @wisteela
    @wisteela 4 года назад +1

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

  • @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

  • @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.

  • @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/

    • @shny_scott
      @shny_scott 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?

  • @wlgrd7052
    @wlgrd7052 4 года назад +6

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

  • @st3ddyman
    @st3ddyman 4 года назад +12

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

  • @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 4 года назад

      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

  • @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...)

  • @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.

  • @agungbuana6796
    @agungbuana6796 4 года назад

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

  • @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)

  • @ruadeil_zabelin
    @ruadeil_zabelin 4 года назад +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

  • @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.

  • @AbhiravGholba
    @AbhiravGholba 4 года назад +2

    Great video again, Professor!

  • @ykhatat
    @ykhatat 4 года назад +1

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

    • @GaryExplains
      @GaryExplains  4 года назад +2

      I already have one here ruclips.net/video/nBwJm0onzeo/видео.html

    • @ykhatat
      @ykhatat 4 года назад +1

      @@GaryExplains thanks

  • @valshaped
    @valshaped 4 года назад +6

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

  • @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

  • @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

  • @maxfate9006
    @maxfate9006 4 года назад

    thanks, nice explanation, I update to wsl2

  • @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.

  • @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

  • @shuoleikang
    @shuoleikang 4 года назад +1

    怎么解决wsl2的docker开机自启呢

  • @clearlyunwell
    @clearlyunwell 4 года назад

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

  • @JimmyMerrildKrag
    @JimmyMerrildKrag 4 года назад +4

    From Ubuntu 19.10 you can just install Docker with:
    sudo apt install docker.io

  • @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.

  • @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?

  • @1MarkKeller
    @1MarkKeller 4 года назад +2

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

  • @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)

  • @janebrown3402
    @janebrown3402 4 года назад +15

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

  • @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.

  • @Kuratius
    @Kuratius 4 года назад +5

    Honestly it sounds like the opposite, as it's a linux subsystem for windows.

    • @igorthelight
      @igorthelight 4 года назад +3

      I had the same thoughts before.
      But actually it makes sense: Windows Subsystem for Linux - Windows subsystem for what purpose? For Linux.

  • @NickyNiclas
    @NickyNiclas 4 года назад +7

    We started calling WSL *weasel*

  • @vng
    @vng 4 года назад +11

    But there is still no access to the GPU from within WSL... :(

    • @hammerheadcorvette4
      @hammerheadcorvette4 4 года назад +2

      Maybe run native Linux

    • @rossonerodiavolo8074
      @rossonerodiavolo8074 4 года назад +2

      Maybe you can run a native Linux distrobution or a KVM Virtualization...

    • @wadud92
      @wadud92 4 года назад +2

      You can run an X server if you would like a GUI

  • @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

  • @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?

  • @countreechen4417
    @countreechen4417 4 года назад +2

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

  • @techzone2009
    @techzone2009 4 года назад +9

    Why microsoft not replace windows nt kernel by Linux kernel??

    • @lawrencedoliveiro9104
      @lawrencedoliveiro9104 4 года назад

      That will become more and more attractive over time. ;)

    • @shny_scott
      @shny_scott 4 года назад +1

      Microsoft loves their backwards compatibility, switching to a new kernel will throw that all out the window.

    • @lawrencedoliveiro9104
      @lawrencedoliveiro9104 4 года назад

      @@shny_scott They’ve broken that so many times in the past ... what’s another breakage? ;)

    • @ragilmalik
      @ragilmalik 4 года назад

      They already have their own linux distro, clear os. What's the point ?

    • @techzone2009
      @techzone2009 4 года назад

      @@ragilmalik clear Linux is by intel

  • @itaco8066
    @itaco8066 4 года назад

    Super Gery!
    thank you

  • @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.

  • @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.

  • @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.

  • @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

  • @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.

    • @shny_scott
      @shny_scott 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

  • @JR-mk6ow
    @JR-mk6ow 4 года назад +4

    WSL2? Oh boy I've been enjoying Windows Powershell and its functionalities but you can tell easily it has a lot of flaws. I hope WSL2 can fix them (I'm locked to Windows rn, I miss Linux).
    Edit: can you run docker and VMs without having to change Hyper-V and reboot the system? That's the worst part about windows

    • @yeesh2630
      @yeesh2630 4 года назад

      WSL2 is pretty much native Linux with dynamic memory that returns RAM to the host OS if it's not in use. Theres literally no reason *not* to use WSL2 if your an engineer of the computing sort... and yes, docker runs without having to reboot the system, it's a one time install and configuration.

  • @phib3l
    @phib3l 4 года назад

    Great, but without an Linux ARCH based distro, WSL is not really helpful for me. The currently available Ubuntu 18.04 contains waaaay to old software packages, and PPAs are a mess! I switched to Opensuse which is not so outdated, but and ARCH based distro would be a game changer, to me.

  • @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.

    • @ContraVsGigi
      @ContraVsGigi 4 года назад +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).

  • @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.

  • @spirkinator
    @spirkinator 4 года назад +7

    So, was WSL 1 an inverse WINE?

    • @NazmusLabs
      @NazmusLabs 4 года назад +2

      Exactly

    • @saharatul
      @saharatul 4 года назад +1

      GNU/NT

    • @MyReviews_karkan
      @MyReviews_karkan 4 года назад +3

      Basically. It is their response to WINE to keep people from leaving windows. Because linux is becoming more popular, compatible with more things and easier to install.

    • @Griffith-Did-Nothing-Wrong
      @Griffith-Did-Nothing-Wrong 4 года назад

      @@MyReviews_karkan Linux market share of desktop OS has barely increased at all. gs.statcounter.com/os-market-share/desktop/worldwide
      WSL is just part of Microsoft's strategy under Nadella, along with things like .NET Core, Terminal, VSCode Remote Development, etc. to make developing on Windows less of a headache for developers who end up switching to Macs.

    • @williaamlarsson
      @williaamlarsson 4 года назад

      @@MyReviews_karkan lol, WSL made me leave Windows and install Ubuntu instead. So for me it's was an entry point to try Linux before I decide to go all in.

  • @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.

  • @airman122469
    @airman122469 4 года назад

    Your older intel machine may just not have the proper virtualization capabilities. So this isn't necessarily a problem with x86_64 processors.

    • @GaryExplains
      @GaryExplains  4 года назад

      I am sure it is something to do with that PC, rather than a general problem, however after spending a couple of hours trying to fix it and double checking the virtualization capabilities, etc, it should work, but doesn't. This will cause headaches for people since the error message is basically meaningless.

  • @4Simmix4
    @4Simmix4 4 года назад +5

    when will they change the name to Linux Subsystem for Windows? :D Will you also take a look at Ubuntu 20.04 and its updates?

    • @homelessrobot
      @homelessrobot 4 года назад +6

      Probably never. Its a subsystem in windows, for linux. You are just reading it wrong :P

  • @AnthonyEssaye
    @AnthonyEssaye 4 года назад

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

  • @A1n2o3s4h5
    @A1n2o3s4h5 4 года назад +2

    Pls do a running gui apps on wsl 2

  • @nanuqcz
    @nanuqcz 4 года назад

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

  • @l040352
    @l040352 4 года назад

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

  • @malding1
    @malding1 3 года назад

    Ok that was unexpected, wow

  • @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

  • @Franseven
    @Franseven 4 года назад

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

  • @pavelvrasskii1359
    @pavelvrasskii1359 4 года назад

    thx Gary

  • @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

  • @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???

  • @orangesage04
    @orangesage04 3 года назад

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

  • @diezgp
    @diezgp 4 года назад

    This was a good video.

  • @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.

  • @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'

  • @gosnooky
    @gosnooky 4 года назад

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

  • @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.

  • @MarioAparcero
    @MarioAparcero 4 года назад

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

  • @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...

  • @hwntwww
    @hwntwww 4 года назад

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

  • @arvinmi
    @arvinmi 4 года назад

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

  • @alexhu01
    @alexhu01 4 года назад

    the docker part no longer works, you need install Docker For Windows instead. other parts still work at this point.

    • @GaryExplains
      @GaryExplains  4 года назад

      What specifically has changed so I can leave a note in the description?

    • @alexhu01
      @alexhu01 4 года назад

      @@GaryExplains at 4:28, you used curl to get docker install shellscript, I tried with this way, the docker demon can't be connected. I did some googling, turns out this way no longer supported since May, 2020. We have to install Docker for Windows installation.

    • @GaryExplains
      @GaryExplains  4 года назад

      @@alexhu01 Great, thanks, I will update the description. I appreciate it. However I would like to point out that your original comment is a little vague, it sounded like the whole WSL 2 video is old information whereas in fact it was just the docker part you were referring to.

  • @blackdove511
    @blackdove511 4 года назад

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

  • @tonysu8860
    @tonysu8860 4 года назад

    Hello Everyone,
    Would be appreciative if anyone can answer 2 Q I have...
    1. I was disappointed with my first WSL2 image that that systemd commands were removed (apparently the entire systemd architecture may have been removed) and none of the old SysVinit architecture can be found, too. So, here is something basic... How or where do you find system events, is everything that's running in a WSL2 being written to the Windows Event logs now?
    2. I see that compatibility with Virtualbox and VMware running on the same machine might be resolved sometime soon. I just got a VMware update so I'll see if there is something new. The link to Virtualbox's raodmap doesn't mention WSL2 so I assume nothing new is available. Up until now, I've had to turn off everything (apps, services) related to any other virtualization to run a particular virtualization technology. You can't run different hypervisors simultaneously, only one can be used at a time. Apparently MS has provided an API for other virtualization to run on the Hyper-V hypervisor instead if their native hypervisors to resolve this incompatiblity, but details and implementation is left to the other technology. Has anyone actually done this (VMware is supposed to have this in Tech Preview schedled to be released officially sometime soon)
    TIA if anyone has an answer to either of these 2 issues.

  • @Gilotopia
    @Gilotopia 4 года назад +1

    Still no GPU support 😥

  • @gixxerblade
    @gixxerblade 4 года назад

    I’ve been using it for months. I love it! 2 means twice as good.

  • @user-rl4ow6js8n
    @user-rl4ow6js8n 3 года назад

    can we install wsl2 version {10240}

  • @ahmedharoon2740
    @ahmedharoon2740 4 года назад

    hi, if a person created dev environment, created app, then suddenly windows crashed, the developer will lost everything he/she created on WSL ?? IMO in case of dual boot or a VM he/she can have all things to continue his/her efforts. Just wants to know what you or people are saying for this situation?

    • @GaryExplains
      @GaryExplains  4 года назад

      If a person created dev environment, created app, then suddenly Linux crashed, the developer will lost everything he/she created on Linux. What is your point?

    • @ahmedharoon2740
      @ahmedharoon2740 4 года назад

      @@GaryExplains thanks for reply, i knew it but as per my knowledge Win* is more vulnerable than Linux, so there are chances to crash more often as compare to Linux.

  • @truthseeker2171
    @truthseeker2171 4 года назад

    I hope it'll be released this midnight

  • @AlexGavrishev
    @AlexGavrishev 4 года назад

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

  • @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?

  • @iangalli293
    @iangalli293 4 года назад +2

    Any way to run Gnome?

  • @Alhussain_Y
    @Alhussain_Y 4 года назад

    Can you Outline Server on subsystem?

  • @ARMENIA181
    @ARMENIA181 4 года назад

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

  • @RichardEricCollins
    @RichardEricCollins 4 года назад

    I don't get it. They have change what was a nice feature into a customised virtual machine. Feels like a backwards step.

    • @guibirow
      @guibirow 4 года назад +1

      The problem with wsl1 is the way they interface Linux kernel calls thought windows kernel, is a lot of work and does not support all Linux features. WSL will run the actual kernel and not a shim translating Linux to windows.

  • @Stoney_Eagle
    @Stoney_Eagle 4 года назад +1

    How far can you go into the matrix 🤔 How far will it let you go Linux inside docker on Linux in Windows?

  • @KingTrump2024
    @KingTrump2024 4 года назад +1

    They fix the network integration , so I can nmap, and wifi pentest on my laptop and not need a RasPi any more ?

  • @vaibhavbv3409
    @vaibhavbv3409 4 года назад

    I would like linux subsystem for windows more.

  • @laithmeister
    @laithmeister 4 года назад

    So how exactly is this beneficial for the average user if at all ?

    • @yeesh2630
      @yeesh2630 4 года назад +3

      This is mainly for the web & software developer / scientific computing crowd as well as the people who want to download and use Linux / Unix tooling which if you haven't experienced it.. is *vastly* superior to any (if any?) tooling by Windows or Mac OS.