This is seriously awesome! Light years from how Bill and Steve would try their hardest to block unix/windows interoperability. Oh how times change.. for the better.
actually that is an incorrect statement. Bill and Steve were best of friends.. so obviously NOT what you believe. MS actually bailed out Apple a couple of times, they were not counter, they just have different ways of doing things. Both wanted to be a front runner so of course they could let the other side win, but there was very little they interfered with. Both OS has it's merits.
Thanks for the introduction. I just switch from Mac to Windows. WSL completes the last missing piece. From my engineering sense, simulation via translating system calls is supposed to be faster than via running entire OS on a VM. Interestingly, you got different result.
I would not be surprised if this is something Microsoft is working on next. I assume the goal of this update was focusing on 100% compatibility and performance. Next definitely could be a native Xserver, but we are probably a year away sadly.
@@BennoKushnir can you point me to a user friendly guide for that? Currently I am developing a website on my virtualbox linux machine since I have to work with windows as well and can't really dual boot. Using WSL would be better for me along with VNC or xserver or xming.
@@SahilP2648 I'll post details in a few minutes on my site at https:\\techzerker.com , as with WSL1, I use a quick and dirty .vbs script w/ VcXsrv on windows to use a full i3 Desktop on my Windows 10.
WSL is Awesome. I Love it... And with WSL2, specially the Much Better File I/O Performance, it's even better. I liked the way you explained why you prefer Spaces to Tabs and it's a very very good point... Thanks a Lot and Keep Developing and Improving WSL... From India
The weird thing is that i prefer tabs for the exact same reason, you can configure how wide you want the tabs to display so if one person prefer 2 spaces and the other one prefer 4, then they just configure they editor to display now much they want. Using spaces don't allow this. So weird that this debates still exists since tabs can do the same thing and more, and also require less button pressing.
Moved away from MacOS. Keep up the good work, windows seems to be having a bright future (until linux devs figure out how to do fractional scaling in 50 years from now)
So you are showing Docker in Windows is available in the WSL2 does that mean it still required Hyper-V ? I was hoping that I could install Docker in Ubuntu/WSL2 while still not have Hyper-V enabled so that I can continue to also run vmware.
I believe that this is on the team's backlog to build in support for, but currently not officially supported. github.com/microsoft/WSL/issues/2195 That said, been meaning to try this to see if it works, just need to make the time... github.com/microsoft/WSL/issues/2195
I hope they're working on performance of working on files on the windows file structure. Would love to have my code sync to my google drive, makes working across different machines a lot easier
The file i/o speed increase I'm guessing are only when running on the WSL file system. Given its now a vm guessing it will actually be slower accessing ntfs files in Windows folders?
It shouldn't be too bad as the 9P protocol is actually pretty efficient. It's possible it's even slightly faster (as in only twice or three times as slow as native, in-VM access)
Paul-Stelian Olaru quick google search shows a lot of complaints about how slow WSL2 file performance is. And some comparing to WSL1. THInk showing the IO performance inside the vm is a bit dumb as you will want to be using the mounted NTFS drives for your work.
This looks really cool. I've tried it for ruby but the plugins like solargraph, rubocop, never work because they're still looking in the windows system for those gems I've installed. would love it if the plugins were also working for vscode
What are the specs of the laptop you were doing demos on? Just wondering for comparison sake. Do you have SSD and what is the RAM \ CPU configuration. Just basics. Also very good presentation, explanations and details. Nice video. Thank you.
This would be great if I could only use it at the same time as Virtualbox / VMWare Workstation instead of having to restart several times to disable Hyper-V, then virtualization Guard or whatever any time I want to use one or the other.
Great news! One question though: will enabling the virtual machine feature of windows conflict with any other vm client installed on the same machine, like virtualbox for example???
Someone else correct me if I am wrong, but If the Linux kernel is running in A windows hyperv virtualization environment. Then I believe this will interfere with any other virtualization software that would be used to run vms in windows. (like vmware or virtualbox) normally most processors (Intel and Amd) will not let you run multiple virtualization solutions at the same time on one operating system.
Δημήτρη το VirtualBox δεν μπορεί να δουλέψει μαζί με το HyperV, αλλά μπορείς να χρησιμοποιήσεις το HyperV για να φτιάξεις δικά σου VMs όπως κάνεις και με το VirtualBox. Εγώ έχω στήσει Windows XP, Windows 7 μέχρι και Ubuntu έχει να βάλεις που είναι optimized.
The feature you are supposed to enable is the "virtual machine" and not hyper V. If you enable hyper V in windows it surely isn't going to work with another VM proprietary client like VMware or VirtualBox, but what about this specific windows virtual machine feature..? (Το ξέρω Χρηστάρα, ευχαριστώ!)
@@dimitriskatsoulis4986 το feature "Virtual Machine" χρησιμοποιεί το Hyper-V. Σε προηγούμενες εκδόσεις δεν υπήρχε καν virtual machine και έπρεπε να βάλεις HyperV και WSL. Σου προτείνω να το δοκιμάσεις το HyperV. Και εγώ δούλευα VirtualBox αλλά από τότε που το docker το γύρισε σε HyperV μετέτρεψα όλα τα VMs και σε HyperV και το ξήλωσα το VB
Is WSL v2 on par with v1 in terms of hardware support now? If I recall correctly WSL didn't have some USB functionality along with other hardware support like serial.
Have they fixed the problem where if you try to run Node.js in WSL after the VS Code SSH server is installed it tries to start the actual Windows installation of Node? That has driven me mad to a point where I simply stopped using WSL and started using an Ubuntu virtual machine instead. The fixes/workarounds seemed long and complicated and risky to my environment.
I installed NVM on WSL2 Ubuntu and I didn't have any issues when connecting from VSCode and working with node, even changing versions. Maybe you experienced an issue that you haven't installed nodejs in Ubuntu and WSL picked it up from Windows.
hello, i am having issue to run .exe from windows directly from wsl, if i do notepad.exe it opens correctly, but when i type paraview.exe (that is the exe i want to run) it says command not found :/
Ok so if WSL2 has a full blown linux kernal, doesnt there still have to be an interface/compatibility layer to interface with Windows to access the files/folders/ and executables? How does that work now? BTW I am a fresh engineer.
Hey buddy, I looked over many blogs and stuffs but never found any solutions for that, When i run my JavaScript projects on wsl2 like react and node the auto-completion code suggestion (vs-code intellisense) becomes slow...Please help me out if any solution Thanks in advance
You can do that, just install Xming, do some "export DISPLAY=0" something-something in your .bashrc, and you're done I've actually run OpenArena, QtCreator and Firefox on WSL years ago doing this
Yeah, WSL2 and Docker for Windows both use Hyper-V which is incompatible with VMware and Virtualbox products. docker-machine can be made to use either Hyper-V or Virtualbox.
Since WSL2 will use Hyper-V architecture, will I be able to use WSL2 and VirtualBox at the same time? VirtualBox only works when all Hyper-V functionalities are disabled.
Using Hyper-V and VirtualBox together has been possible for over a year now (since VirtualBox 6.0) - for more info see forums.virtualbox.org/viewtopic.php?f=6&t=90853
So just to confirm, I was hoping that WSL2 would alleviate us from using HyperV. Seems you've still managed to keep HyperV busy, just with a more lightweight kernel and no translation layer. So WSL2 doesn't mean the dependency on HyperV is going away?
Hyper-V works, what is the problem exactly? WSL 2 works, if you use Windows I have news for you.. hyper-V will be even MORE dependent later. I imagine there will be an embedded ROM chip that boots and you choose to run any OS you want... virtually. It will be come the future. Phones I suspect will do the same. You buy a phone run whatever OS you want, iOS, Android, Blackberry, Windows, whatever.. it's just a VM. So what is the problem as long as it works.. plus with Virtual you can have many OS on same hardware, no dual booting not complicated install just scripts that switch \ install and integrate. Don't understand the resistance to using Hyper-V. It's stable and its natively a part of Windows. Even if you 'turn off' it's not really off..it's just dormant.
All nice but what would be really nice if you stopped hogging up cpu in the background i am seeing huge drop in performance with wsl2 installed in cinebench my score go's from 7450 down to 7200 max and 400 point drop in 3dmark, all i would use it for is to compile ipxe kernel im better off using virtual box if its gonna sacrifice performance.
Or give wsl the ability to load up and run a linux distributions you have installed via dual boot. So that gives you the ability to run linux seperate or run windows and then tell it to also sideload the linux os as a workspace or in a container window as if the os was a program.
How to do you assign an IP number to wsl2? I had a lot errors after installing Postgres. I can't see the port for example. Installing Postgres on CentOS VPS is pretty straight forward. pgAdmin works fine on Windows 10. WSL2 still needs alot of work. Powershell works just fine the way it is. The new windows terminal is beta a best.
um.. you obviously don't have a clue. WSL 2 is a vehicle. nothing more. They have pre-built install of certain Linux versions (you can choose between a few). Linux RUNS as a NATIVE OS inside hyper-v but it's integrated at the command level with Windows. has ZERO to do with WSL 2 being a different method of installing Linux. Linux runs and it works great, you clearly just want to keep your Windows the way it is and have no interest in trying to work with Linux. That much is abundantly clear. CentOS, Redhat, Debian, Ubuntu any of those can install in WSL 2, natively. Don't understand your complaint. They didn't change ANY Linux code it's the same as always so if Postgres works it will work in WSL 2 as well.
Anaconda, Haskell should all work just fine under it since it's actual Linux. The only things that still don't work are the things that require custom hardware drivers, including USB, GPU.
@@dimamaharika3361 Thanks for suggestion, unfortunately I don't have spare PC to install Insider one, I'd love to wait it's come to stable release of Windows.
@@feryardiant you can update to windows insider without losing your files and apps. Other information is available on microsoft official site. Hope this can help.
No. PCI passthrough is not supported by Hyper-V. Would have been nice though. Hardware must support GPU passthrough and Hyper-V must be updated to have this.
but wsl2 takes a lot of memory whereas VirtualBox is not increasing memory indefinitely, I have to throttle up in .wslconfig to 4 GB ram but I cannot run a script which requires more than 4 GB ram
@@picious Not directly, however there are ways to convert. You can still use Virtualbox's command line utilities. Extract the disk file (vdi/vmdk), use Virtualbox's built in disk converter (it's a command line executable that isn't as exposed to the world, but it is available) to convert the disk image to vhd then create a Hyper-V VM that uses that disk file.
@@lemur7 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?
performance is dictated by GUI. Linux has no GUI, so everything is very fast. VM performance is usually around 90 to 95% native speed, so it's very, very close.. only time you would notice is heavy I/O or multitasking with heavy CPU. Even then it depends on hardware. Laptops these days have the same power as Enterprise Server (up to about 8 core), so in reality you have a portable server. Suffice to say for purposes of comparison you will not notice the difference.
I'd love to have GPU hardware support for WSL versions in the future to run my deep learning algorithms on linux environment.
That is the only reason why don't use it yet
GPU passthrough should be doable since other VMs also has it
Hyper-V doesn't have PCI passthrough support at all for now.
@@paulstelian97 PCI passthrough is available for years in Hyper-V via discrete device assignment
@@paulstelian97 So you could technically use WSL2 for machine learning?
Nice video, but the guitars between subjects are way to loud.
Screw you microsoft! ;-) nothing personal Theo
I started laughing every time ... So damn annoying
lol
LEGALIZE RANCH!
U damn right. The girl next door had to knock my door. lol
This is seriously awesome! Light years from how Bill and Steve would try their hardest to block unix/windows interoperability. Oh how times change.. for the better.
actually that is an incorrect statement. Bill and Steve were best of friends.. so obviously NOT what you believe. MS actually bailed out Apple a couple of times, they were not counter, they just have different ways of doing things. Both wanted to be a front runner so of course they could let the other side win, but there was very little they interfered with. Both OS has it's merits.
@@rparker061 I think zubinix was referring to Steve Ballmer not Steve Jobs.
instead of fighting Linux, Microsoft decided to absorb it
Thanks for the introduction. I just switch from Mac to Windows. WSL completes the last missing piece. From my engineering sense, simulation via translating system calls is supposed to be faster than via running entire OS on a VM. Interestingly, you got different result.
What you guys have done with your WSL is phenomenal. Kudos to all of you and Microsoft.
Translation: Running Linux is phenomenal, finally Windows users get to experience the benefits :D
@@rolmops883 While not deal with the headaches that come with running Linux desktop.
@@rano12321 headaches like what? I've been running Linux for years now, and I honestly can't think of anything
Love the progress so far. Next step is ditching
for
in Windows O:)
haha this will never happen
Super excited for the release of WSL 2!!
Oh its not release yet?
@@slowtyper95
it is but you need to be on the buggy version of windows , its like a beta windows 10, not the regular windows 10
@@Tux0xFF i mean, is there a difference? haha
WSL need of Xserver native.
I've had x server working on wsl1 and ran php storm from it. Just follow a guide to setup x server
I would not be surprised if this is something Microsoft is working on next. I assume the goal of this update was focusing on 100% compatibility and performance. Next definitely could be a native Xserver, but we are probably a year away sadly.
xming should be good enough
@@BennoKushnir can you point me to a user friendly guide for that? Currently I am developing a website on my virtualbox linux machine since I have to work with windows as well and can't really dual boot. Using WSL would be better for me along with VNC or xserver or xming.
@@SahilP2648 I'll post details in a few minutes on my site at https:\\techzerker.com , as with WSL1, I use a quick and dirty .vbs script w/ VcXsrv on windows to use a full i3 Desktop on my Windows 10.
We need USB support for engineering tasks - FPGA Development, DSP Programming and so on ...
definately agree ! With usb support I could let go of linux!
Damn this is impressive... Can't wait until it get's released - I can't sign up to be an insider on my work computer.
Tab vs Spaces. It's ok that you are wrong :) Thanks for the video on WSL 2.
WSL is Awesome.
I Love it...
And with WSL2, specially the Much Better File I/O Performance, it's even better.
I liked the way you explained why you prefer Spaces to Tabs and it's a very very good point...
Thanks a Lot and Keep Developing and Improving WSL...
From India
Why not just use Linux
@@anuragstutorials9484 Because my workflow requires Windows Apps and I love them. Example: Office, One Note, To Do etc
The weird thing is that i prefer tabs for the exact same reason, you can configure how wide you want the tabs to display so if one person prefer 2 spaces and the other one prefer 4, then they just configure they editor to display now much they want. Using spaces don't allow this. So weird that this debates still exists since tabs can do the same thing and more, and also require less button pressing.
So wsl on windows 10 is just like a reverse wine?
WSL1 was a bit like that. WSL2 is a real Linux Kernel running in a Hyper-V VM behind the scenes and some nice tooling around it.
It's better
@@prashand4899 worse actually, since Wine allows to run apps with graphical UI and even games
@@ml_serenity F LOVE IT!
@@ml_serenity so what? You want to run Linux games on Windows now?
The transition guitar soundtrack tho lol
I loved that guitar sound lol. That was so good and catch me off guard.
Nice! The tab part is totally random though :)
I still have no idea why they put it there I don't think it was supposed to be part of the video but the editors decided what the heck put it in.
Late to this video but this was a great overview of WSL2 for windows
So, would WindowsDefender find malware in linux-binaries?
Linux doesn't have that many malware which is why Most people use linux without any anti-virus.
did WindowsDefender ever find ANY malware?
lmao i don't know if that was a serious question or not, but it's still funny to even think about the prospect.
Moved away from MacOS. Keep up the good work, windows seems to be having a bright future (until linux devs figure out how to do fractional scaling in 50 years from now)
So you are showing Docker in Windows is available in the WSL2 does that mean it still required Hyper-V ? I was hoping that I could install Docker in Ubuntu/WSL2 while still not have Hyper-V enabled so that I can continue to also run vmware.
which software are you using to get all the terminals at one place
wsl is just awesome, I'm using it since day 1
Microsoft Developers please don't stop develop wsl2! This is best feature in windows ever created....
About time that Docker came to windows home!
Loppy2345 it has literally yesterday
So I will be able to use the Docker that I install in my WSL2 as my Docker engine? Because I do not want to rely on Docket Toolbox anymore!
Thank you for this-- more to come please....
"But, However I use Tab key and make editor insert spaces for me" :) If you watched till the end.
Crazy 😂
Liking the iron ring sir!
Hey, can I access USB devices from wsl2 yet? I need to access my yubikey
I believe that this is on the team's backlog to build in support for, but currently not officially supported. github.com/microsoft/WSL/issues/2195
That said, been meaning to try this to see if it works, just need to make the time... github.com/microsoft/WSL/issues/2195
I hope they're working on performance of working on files on the windows file structure. Would love to have my code sync to my google drive, makes working across different machines a lot easier
The file i/o speed increase I'm guessing are only when running on the WSL file system. Given its now a vm guessing it will actually be slower accessing ntfs files in Windows folders?
It shouldn't be too bad as the 9P protocol is actually pretty efficient. It's possible it's even slightly faster (as in only twice or three times as slow as native, in-VM access)
Paul-Stelian Olaru quick google search shows a lot of complaints about how slow WSL2 file performance is. And some comparing to WSL1.
THInk showing the IO performance inside the vm is a bit dumb as you will want to be using the mounted NTFS drives for your work.
This looks really cool. I've tried it for ruby but the plugins like solargraph, rubocop, never work because they're still looking in the windows system for those gems I've installed. would love it if the plugins were also working for vscode
When are we getting the full WSLconf 2020 recordings?
The ring on his right pinky tells me he's a Canadian engineer. And if I had to guess, probably U Waterloo.
I love the information in the video is very clear, in a side note I also love how lame the music is :D
What are the specs of the laptop you were doing demos on? Just wondering for comparison sake. Do you have SSD and what is the RAM \ CPU configuration. Just basics. Also very good presentation, explanations and details. Nice video. Thank you.
This would be great if I could only use it at the same time as Virtualbox / VMWare Workstation instead of having to restart several times to disable Hyper-V, then virtualization Guard or whatever any time I want to use one or the other.
Agree
does ubuntu flatpak work and do you need w10 professional to run docker in wsl2 ?
docs.docker.com/docker-for-windows/install-windows-home/
This is a new article showing that with WSL2 you can run it on home
I hope WSL3 gives us even more integration. I can run a XFCE desktop through RDP but the experience isn't all that great.
How do i integrate WSL 2 using IntelliJ?
Just shange the the shell terminal in your settings to the WSL command no path needed just "WSL"
Can I do cuda programming in wsl2?
Is there a way to keep the TOP command results shown a browser or windows client ? I would like one place I can view the resources of all my servers.
Great news! One question though: will enabling the virtual machine feature of windows conflict with any other vm client installed on the same machine, like virtualbox for example???
Someone else correct me if I am wrong, but If the Linux kernel is running in A windows hyperv virtualization environment. Then I believe this will interfere with any other virtualization software that would be used to run vms in windows. (like vmware or virtualbox) normally most processors (Intel and Amd) will not let you run multiple virtualization solutions at the same time on one operating system.
Δημήτρη το VirtualBox δεν μπορεί να δουλέψει μαζί με το HyperV, αλλά μπορείς να χρησιμοποιήσεις το HyperV για να φτιάξεις δικά σου VMs όπως κάνεις και με το VirtualBox. Εγώ έχω στήσει Windows XP, Windows 7 μέχρι και Ubuntu έχει να βάλεις που είναι optimized.
The feature you are supposed to enable is the "virtual machine" and not hyper V. If you enable hyper V in windows it surely isn't going to work with another VM proprietary client like VMware or VirtualBox, but what about this specific windows virtual machine feature..?
(Το ξέρω Χρηστάρα, ευχαριστώ!)
It uses hyper-v so yes it will interfear.
@@dimitriskatsoulis4986 το feature "Virtual Machine" χρησιμοποιεί το Hyper-V. Σε προηγούμενες εκδόσεις δεν υπήρχε καν virtual machine και έπρεπε να βάλεις HyperV και WSL. Σου προτείνω να το δοκιμάσεις το HyperV. Και εγώ δούλευα VirtualBox αλλά από τότε που το docker το γύρισε σε HyperV μετέτρεψα όλα τα VMs και σε HyperV και το ξήλωσα το VB
that guitar on 00:29 like... ew..
For real what is that
@@mosk11tto cringe
I liked the guitar.
It reminds me some peruvian chicha's guitar style.
Well, what did you expect from Microsoft?
Is WSL v2 on par with v1 in terms of hardware support now? If I recall correctly WSL didn't have some USB functionality along with other hardware support like serial.
docs.microsoft.com/en-us/windows/wsl/wsl2-faq#can-i-access-the-gpu-in-wsl-2-are-there-plans-to-increase-hardware-support
I can't ping from wsl2 to the my vpn network? In wsl1, it works fine.
Real awesome features, I believe Windows is helping Linux to defeat it self.
Still can't run GUI Using wsl :(
Have they fixed the problem where if you try to run Node.js in WSL after the VS Code SSH server is installed it tries to start the actual Windows installation of Node? That has driven me mad to a point where I simply stopped using WSL and started using an Ubuntu virtual machine instead. The fixes/workarounds seemed long and complicated and risky to my environment.
I installed NVM on WSL2 Ubuntu and I didn't have any issues when connecting from VSCode and working with node, even changing versions. Maybe you experienced an issue that you haven't installed nodejs in Ubuntu and WSL picked it up from Windows.
Does VS Code support WSL out of the box or some special plugins are required to make things work? Can I use other IDE's like Clion?
it auto installs or recommends (dont remember) the wsl plugin when it detects it's installation
hello, i am having issue to run .exe from windows directly from wsl, if i do notepad.exe it opens correctly, but when i type paraview.exe (that is the exe i want to run) it says command not found :/
I have tried Docker Desktop on WSL2 installed machine. I thought it will not create a virtual machine no more, but it still there.
I am using Version 1909 ( OS Build 18363.900) I believe I am not able to install WSL2? Could you please help me with this?
Ok so if WSL2 has a full blown linux kernal, doesnt there still have to be an interface/compatibility layer to interface with Windows to access the files/folders/ and executables? How does that work now? BTW I am a fresh engineer.
Hey buddy, I looked over many blogs and stuffs but never found any solutions for that,
When i run my JavaScript projects on wsl2 like react and node the auto-completion code suggestion (vs-code intellisense) becomes slow...Please help me out if any solution
Thanks in advance
Does any body know what is the tool that he used to switched between different shells?
What is better WSL Vs Docker Vs VM? Please enlighten me!
12:30 that's the point
All right, WSL2 is up to 6 times faster than WSL. But what if we compare it a real Linux installation on the same machine?
when will it be released? I want to use it without setting my box to the windows developer program
With the first release of Windows this year. April, I think.
@@naikrovek I cant wait, I've been enjoying coding using WSL, Windows has won me over again.
Hard to say for sure... things are crazy over here currently with the COVID-19 outbreak, but should be this year.
They said first half of 2020. So as late as June if not earlier
I've been using WSL2 for about a month. But it needs me to join the Windows 10 Insider Program to have the latest Windows Update.
Great video. Can some wsl2 user comment on how much extra resources CPU, ram and disk are used by wsl2?I don't have wsl now.
Do you not have issues with webpack not reloading?
One day hoping to test Linux GUI apps ...
@@timcook8999 lol , i expected too much from Microsoft.
You can do that, just install Xming, do some "export DISPLAY=0" something-something in your .bashrc, and you're done
I've actually run OpenArena, QtCreator and Firefox on WSL years ago doing this
@@arsnakehert thanks, will try it out.
Actually you can.
Since WSL2 needs Hyper-V, does it run on windows home edition?
I don't think so.
It does
Do you people NOT know how to 'google'? docs.microsoft.com/en-us/windows/wsl/wsl2-install
What version of powershell is that? Mine is blue and doesn't have tabs or that dropdown. Can someone explain how to enable that?
for anyone else who is interested, i found it www.microsoft.com/en-us/p/windows-terminal/9n0dx20hk701?activetab=pivot:overviewtab
I sure wish I could figure out how to install this without internet. I can only find one set of instructions and they still require internet.
What is the terminal you are using? How are you able to get multiple tabs?
It's called Windows Terminal ruclips.net/video/7bqoXHiXTHA/видео.html
can someone help on how to have the 202 build ?
i tried everything looked everywhere nobody talks abt it
any idea on how to install the wifi driver?
Would it be possible now to use virtualbox and docker simultaneously on Windows pro ?
You don't need VirtualBox. You can use HyperV to mount .iso files and create as many VMs you want.
Yeah, WSL2 and Docker for Windows both use Hyper-V which is incompatible with VMware and Virtualbox products. docker-machine can be made to use either Hyper-V or Virtualbox.
Is WS2 is available for windows 10 home edition
Still wondering why WSL1 didn't go straight to VM archi and went with translation/wrapper thingy.
There are machines where VM-based WSL cannot work and WSL1 is the only thing remaining.
Ok, but when it's coming for stable releases?
First half of 2020, so when the 20h1 update rolls out
tabs vs spaces - both!
Since WSL2 will use Hyper-V architecture, will I be able to use WSL2 and VirtualBox at the same time? VirtualBox only works when all Hyper-V functionalities are disabled.
Using Hyper-V and VirtualBox together has been possible for over a year now (since VirtualBox 6.0) - for more info see forums.virtualbox.org/viewtopic.php?f=6&t=90853
So just to confirm, I was hoping that WSL2 would alleviate us from using HyperV. Seems you've still managed to keep HyperV busy, just with a more lightweight kernel and no translation layer. So WSL2 doesn't mean the dependency on HyperV is going away?
Hyper-V works, what is the problem exactly? WSL 2 works, if you use Windows I have news for you.. hyper-V will be even MORE dependent later. I imagine there will be an embedded ROM chip that boots and you choose to run any OS you want... virtually. It will be come the future. Phones I suspect will do the same. You buy a phone run whatever OS you want, iOS, Android, Blackberry, Windows, whatever.. it's just a VM. So what is the problem as long as it works.. plus with Virtual you can have many OS on same hardware, no dual booting not complicated install just scripts that switch \ install and integrate. Don't understand the resistance to using Hyper-V. It's stable and its natively a part of Windows. Even if you 'turn off' it's not really off..it's just dormant.
All nice but what would be really nice if you stopped hogging up cpu in the background i am seeing huge drop in performance with wsl2 installed in cinebench my score go's from 7450 down to 7200 max and 400 point drop in 3dmark, all i would use it for is to compile ipxe kernel im better off using virtual box if its gonna sacrifice performance.
Or give wsl the ability to load up and run a linux distributions you have installed via dual boot. So that gives you the ability to run linux seperate or run windows and then tell it to also sideload the linux os as a workspace or in a container window as if the os was a program.
Did wsl work offline
Game changer for the best!
what is the tool that allows to have different shells and select them? It reminds me of cmdr but but it does not seem to be that?
It's the new Windows Terminal. You can find it in the Windows Store.
How come MS Developer got a pet and it is a rabbit now?
Also I am using WSL 2 at work, works great so far. I enjoy the Docker Desktop integration.
How to do you assign an IP number to wsl2? I had a lot errors after installing Postgres. I can't see the port for example.
Installing Postgres on CentOS VPS is pretty straight forward. pgAdmin works fine on Windows 10.
WSL2 still needs alot of work. Powershell works just fine the way it is. The new windows terminal is beta a best.
um.. you obviously don't have a clue. WSL 2 is a vehicle. nothing more. They have pre-built install of certain Linux versions (you can choose between a few). Linux RUNS as a NATIVE OS inside hyper-v but it's integrated at the command level with Windows. has ZERO to do with WSL 2 being a different method of installing Linux. Linux runs and it works great, you clearly just want to keep your Windows the way it is and have no interest in trying to work with Linux. That much is abundantly clear. CentOS, Redhat, Debian, Ubuntu any of those can install in WSL 2, natively. Don't understand your complaint. They didn't change ANY Linux code it's the same as always so if Postgres works it will work in WSL 2 as well.
Could you test it with installation and launch of Anaconda? I found that it's possible to install but not to launch the anaconda from WSL1.
Anaconda, Haskell should all work just fine under it since it's actual Linux. The only things that still don't work are the things that require custom hardware drivers, including USB, GPU.
@@paulstelian97 thanks, I will give it a try.
Hi ,
Can we access GPU with wsl 2 ???
Nishant Kumar Not yet.
Will WSL2 work on Windows 10 Home?
For now, its not supported by all versions, but after some time, it will most probably be supported by all windows 10 versions
@@atanki5682 Hopefully ^_^
You can try update to Windows 10 Insiders Home to try WSL2 right away.
@@dimamaharika3361 Thanks for suggestion, unfortunately I don't have spare PC to install Insider one, I'd love to wait it's come to stable release of Windows.
@@feryardiant you can update to windows insider without losing your files and apps. Other information is available on microsoft official site. Hope this can help.
Wow, thats awesome !
Translation layer VS VM, which one has a higher overhead?
With hardware acceleration, VM should have a lower overhead, especially since it's a lightweight VM. You'd see RAM usage get a bit higher though.
Why use WSL instead coding on Windows? There is any benefits? I tried here using Intellij + Java openjdk on WSL2, but the performance is ugly.
Could it work on GPUs directly now?
No. PCI passthrough is not supported by Hyper-V. Would have been nice though. Hardware must support GPU passthrough and Hyper-V must be updated to have this.
yes: www.phoronix.com/scan.php?page=news_item&px=Microsoft-DX12-WSL2
but wsl2 takes a lot of memory whereas VirtualBox is not increasing memory indefinitely, I have to throttle up in .wslconfig to 4 GB ram but I cannot run a script which requires more than 4 GB ram
what terminal is that?
I hope WSL2 will support for win 10 LTSC.
Didn't know it was build on top of Hypervisor.
Does that mean that wsl2 won't be coming to Windows 10 home?
What is the terminal window you are using?
Windows terminal,you can get it on Microsoft Store
can you run virtualbox with docker installed?
no
You don't need VirtualBox. Just use HyperV to install custom VMs.
@@christoslytras7912 can i mport .ova or .vdi files in hyperV?
@@picious Not directly, however there are ways to convert. You can still use Virtualbox's command line utilities. Extract the disk file (vdi/vmdk), use Virtualbox's built in disk converter (it's a command line executable that isn't as exposed to the world, but it is available) to convert the disk image to vhd then create a Hyper-V VM that uses that disk file.
Yes you can, and it has been possible for over a year now. You need the Windows Hypervisor Platform installed and VirtualBox 6.0 or newer.
Why there is a tabs vs spaces topic?
I would love to have LSW
You mean Wine?
Actually nvm it's not the full system, just a compatibility layer.
WSL2 performance vs a normal linux install?
Not as fast (obviously) , but generally performant enough to run many Linux command-line apps without major issues.
@@lemur7 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?
@@Rednunzio You can create a bash script on your C: drive and run it with WSL.
performance is dictated by GUI. Linux has no GUI, so everything is very fast. VM performance is usually around 90 to 95% native speed, so it's very, very close.. only time you would notice is heavy I/O or multitasking with heavy CPU. Even then it depends on hardware. Laptops these days have the same power as Enterprise Server (up to about 8 core), so in reality you have a portable server. Suffice to say for purposes of comparison you will not notice the difference.
Is this better than dual boot systems?
LOL
Now I want know ho he managed to enable tmux mouse support in windows terminal ...
Was it tmux? Windows terminal does have its own split panes feature.