What are linux wsl Images and how to use them?

Run those guwe apps a little configuration is required but if you need those steps you can check out the wsl page on the ubuntu wiki and we have those commands that you can use to launch those guwe apps um later this fall we expect some news coming from uh the wsl team at microsoft on native guwe applications.

 

 So that a third-party application x server won’t be required but coming later this month we are expecting gpu acceleration for gpu compute workflows like aiml and um you know machine artificial intelligence machine learning that are really going to take wsl to the next level you can already deploy a kubernetes cluster with microcase on wsl and now you’ll be able to deploy uh tensorflow you know in kubernetes on wsl uh before deploying to the cloud or if you’re lucky enough to have a cluster of main frames of your own to power them.

 

 A few things uh you need to know there’s actually two versions of wsl wsl1 and wsl2 wso1 has been out since about 2007. it’s a binary translation layer it actually runs the linux binaries translates the linux system calls to windows system calls and executes them it’s very stable it’s got about 95 percent binary compatibility uh with linux so there’s still some edge cases that you run into but that’s okay because microsoft released wsl2 and it just made it into the may 2020 update of windows 10. so it is now in stable release and wsl 2 features a virtualized linux kernel.

 

It is a linux kernel that is actually updated via windows update uh but you can go look at the sources on github and see the customizations that are made to work in wsl and it is much faster um you can even build your own kernel if if you’d like that’s something matthias my uh co-presenter has done and has a great article on um but wsl 2 unlocks a lot of new opportunities performance wise the new docker desktop as we’ll see uses wsl-2 on the back end it actually hooks into wsl-2 and uses it to power the containers and those changes have also landed in stable in docker desktop and that’s very exciting as well.

 

 So um we’ve covered um why you might want wsl which is the access to the uh massive repositories of open source tools and utilities that you can now integrate directly into your workflow even on windows we’ve talked about leveraging that an open source some of the interesting workflows i’ve seen include node.net embedded as matches will be showing also seeing things like software defined radio fpga programming very exciting stuff there’s some limitations to wsl.

 

There’s no external hardware support so you’re not going to plug in third-party devices like to usb um and um there’s no init process we think there’s a cat outside we really hope you guys can’t hear that um uh anyway um uh it’s making it hard to focus um but uh there’s some limitations there’s no hardware support there’s no init and so you’re going to have to manually start your services if anything has a really hard dependency on system d like you’re probably not going to be able to start your whole gnome desktop mate sure xfce.

 

Yes if you really wanted to run a linux desktop next to your windows desktop you definitely could but probably not full gnome you have the code extension you have visual studio integration also a fair number of jet brains ides not all of them but some of them do have integration with wsl and you should know that wsl one is good uh if that’s what you have wsl 2 is even better there’s some compromises between the two uh at times um w sub 1 is a little lighter wsl 2 is more performant but you definitely need windows 10 may 2020.

Okay we think the cats are done uh to um keep going uh to get wsl 2. so uh and then doctor desktop for wsl 2 um is uh uses wsl 2 on the back end and with that after i’ve been thoroughly distracted by the cats outside something we don’t usually have to worry about uh when presenting conferences and we have a question if you want to address it or at the end because while we wait for this so yeah this is taking a while i’m i’m we should be on my faster computer but yeah let’s take this drop it down fine just let me change this layout for a moment george is asking us um can we transfer files between file systems yes um so let me show you real quick there’s two ways to do that let’s step let’s just open a new.

 

All right well that’s going so right away you see your c drive is mounted um at mount c so all of your c5 files on your c drive are going to be accessible this way um including your uh you know your program files your user files they’re all there now in if you need to access them from windows let me show you this make sure there we go you can access them in explorer and even mount internal wsl files folders as drives are you there we go with backslash backslash wsl dollar sign and then the name of your distro.

 If you don’t if you have multiple distros they would all appear here but we have ubuntu you click here and you have all your files so you can access your files either on the mount c folder in wsl or an explorer using uh slash wsl dollar sign slash the name of your distro so we generally recommend for performance reasons anytime you cross your files across the file we o boundary um they it’s going to be a little bit of a bottleneck because it’s having to translate them between windows and and linux formats but if you keep them all on your wsl image and access them as needed from windows using this explorer.

 

 You’re going to see a lot better performance so if you really want to take advantage of wsl 2 we strongly recommend keeping those files on the wsl image and accessing them this way and you know keeping them backed up you know pushing to get as needed or mounting them as a drive and backing them up offside any other questions let me take a look yeah there is a few questions here um there you go let’s let’s go let’s pause let’s pause and um transition to matthias for his demo and we’ll pick all these up at the end.

Leave a Comment