24 ms·
Windows Subsystem For Linux a.k.a. WSL 1.0.0 released
- CoolCold 4y agoChangelog Removed the "Preview" label - WSL in the Store is now generally available! Use an override in generator.early to prevent the /tmp/.X11-unix socket from being removed during boot Don't create a pty for systemd to fix issue where systemd would time out during boot
- ljm 4y agoDidn't realise WSL used systemd now - for a long time it had its own init system.
- papercrane 4y agoIt's pretty new, released late September. They still have their own init system. If you are using a systemd enabled distro then their init will become a child process of systemd, allowing systemd to have PID 1. https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/ https://devblogs.microsoft.com/commandline/systemd-support-i...
- CoolCold 4y agoyeah, I finally (for last month or so) can have LXD based Virtual Environments right in my WSL - saves me from using separate VM for just that
- anderspitman 4y agoThe creator of systemd works at Microsoft now[0]. Not sure if that factored into the change. systemd seems pretty heavy for VMs, but apparently they still start fast so there must be ways to optimize it. [0]: https://en.wikipedia.org/wiki/Lennart_Poettering https://en.wikipedia.org/wiki/Lennart_Poettering
- deleted 4y ago[deleted]
- Tomte 4y agoIs that WSL 2 with version number 1 or the "old" WSL?
- weberer 4y agoIts actually WSL 360 Series X 365
- therealmarv 4y ago... for Workgroups
- last_responder 4y agoService Pack 3.1a
- 4y ago
- jfmatth 4y agoAwesome!
- oneplane 4y agoIt's somewhat sad that this is on GitHub, but the source isn't, the release contains a binary and sources that don't match and the installation suggests using the store anyway. It almost seems like this is just posturing on GitHub while just being the same old closed distribution. Should probably have been a GitHub.io website instead of a fake repo.
- dr-detroit 4y ago
- mynameisvlad 4y agoIt also uses GitHub issues to track issues (although I’m sure the team internally is using Azure DevOps), so there’s more use than just source code.
- nightski 4y agoPosturing? The repo states its intent right at the top. Just using git does not mean you are forced to provide source code lol.
- SQueeeeeL 4y agoDamn, if people really are this gullible I should become a con artist. "Well technically I never said that the gold plated gold watch I was selling was made of gold, sooooo I'm just gonna leave. And if you're mad at me, that's on you."
- AshamedCaptain 4y agoPeople _are_ influenced by this type of behavior indeed. Just look around how many people overestimate how much of e.g. Visual Studio Code is open.
- horsawlarway 4y agoHonestly - not the best project to pick on. VS Code is actually one of the more open projects Microsoft has made. A good chunk of the best functionality is behind extensions which are often proprietary, but that actually doesn't bother me that much. Especially because many of the proprietary extensions rely on functionality provided by 3rd party servers, where the owner (usually MS) is eating the cost. That seems fair to me. Ex: https://vscodium.com/ https://vscodium.com/ The core editor is about as open as you can get. The ecosystem around it is not. That's actually the same model that many Linux distros follow. --- edit - I'd love to see someone downvoting me provide a compelling response to the full source available here: https://github.com/microsoft/vscode https://github.com/microsoft/vscode under the MIT license... https://github.com/microsoft/vscode/blob/main/LICENSE.txt https://github.com/microsoft/vscode/blob/main/LICENSE.txt Again - Microsoft customizes that in the same way the google customizes chromium, but having built both from source... I find it hard to argue it's anything other than open source tooling. Again - the ecosystem is not (although it certainly can be, depending on the extensions used).
- Max-q 4y agoOne thing I have been thinking about: shouldn’t it be named Linux subsystem for Windows?
- soneil 4y agoIt's a horrible name that should never have been used externally, but it makes sense if you're familiar with the NT architecture. There's various environment subsystems for win32, os/2, unix, and now linux. If you look at the graphic at the top of https://en.wikipedia.org/wiki/Architecture_of_Windows_NT https://en.wikipedia.org/wiki/Architecture_of_Windows_NT it makes sense. But the fact that it needs this in order to make sense, is why it shouldn't have survived as a product name.
- ha8gda8gs11 4y agoThat's incorrect, they are not using any of the environment systems for WSL. WSL uses pico processes: https://learn.microsoft.com/en-us/archive/blogs/wsl/windows-subsystem-for-linux-overview https://learn.microsoft.com/en-us/archive/blogs/wsl/windows-... https://learn.microsoft.com/en-us/archive/blogs/wsl/pico-process-overview https://learn.microsoft.com/en-us/archive/blogs/wsl/pico-pro...
- anderspitman 4y agoThat's WSL1. This 1.0.0 announcement is about WSL2, which is based on Hyper-V VMs. As mentioned by others, the naming is quite confusing.
- ha8gda8gs11 4y agoCorrect, I should have been more clear. And to add to that -- WSL2 doesn't use any of the subsystems either.
- shagmin 4y agoBetween my current pre-coffee state and working with WSL2... seeing version 1.0.0 released I actually thought for a moment this meant the ability to run Windows as a subsystem on a Linux machine or something.
- m000 4y agoHow does one upgrade? WSL already nags me from this morning that "A new WSL update is available." But when I try to update it says that I already run the most recent version, which I don't - reported version is 0.70.5.0.
- 9front 4y ago"wsl --update --web-download" will pull version 1.0.0
- philliphaydon 4y agoI tried that but got > The most recent version of Windows Subsystem for Linux is already installed. I'm stuck on 0.70.4.0
- pxc 4y agoDownload the MSIX package from the GitHub release and install it with Add-AppxPackage in an elevated PowerShell session.
- thunderbong 4y agoWSL has been really amazing for our team. All our devs are on Windows systems and are staging & production are on Linux. Having a system identical to what's going to be in prod has saved us many hours of effort.
- Firmwarrior 4y agoWhy don't you guys just use linux for your dev systems? I've used it for years of Android dev work, and it's been great I only use Windows for games nowadays
- treesknees 4y agoIf it's similar to my employer, we have requirements from our board to have specific software such as anti-malware and anti-ransomware, among other protections. The IT team can also better manage and support it. And yes, I think it's a bit silly. But WSL has helped us comply with the business/security requirements while still using (IMO) better dev tools and workflows that Linux provides.
- deleted 4y ago[deleted]
- pxc 4y agoThere's no shittier OS to use than a Windows system loaded to the gills with corporate rootkits and their agents. And is it actually more secure than a sanely configured Linux desktop? Those running agents kinda seem like pretty sweet targets for hackers.
- vips7L 4y agoA sanely configured Windows is actually pretty good. I’m sure corporate would ruin Linux too.
- DaiPlusPlus 4y ago
- radicalbyte 4y agoIsn't this old? They release WSL 2 already a couple of years ago and it's works great!
- shmoe 4y ago"WSL 2 1.0" :)
- alophawen 4y agoWindows is trolling versioning in 4D. This is "WSL 2, 1.0". The software that was released as WSL2 some years ago, is some other version apparently.
- aidenn0 4y agomeh, This is 2.5d at best. See "USB 3.2 gen 2x2" for real 4D trolling.
- politelemon 4y agoWSL has been a deitysend, I appreciate it quite a bit now. It allowed me to get out of Macos development hell, allows 'dropping into' Linux easily from Win if one is too lazy to dual boot, and especially useful in enterprises where Win/Mac are the only options. That said I will agree with other comments here, the version numbering is weird. I can't even tell _how_ to tell what version of WSL I have. Versioning is still an unsolved problem even for tech giants I observe.
- 22SAS 4y agoTrue true! I am stuck to Windows at work, while we SSH into development Linux machines. Windows terminal and WSL keep me from going insane. All I need to do is just F11 the terminal, make it fullscreen and forget ever that I am on Windows. With Mac OS I still like the Mac terminal more than the Windows terminal and just SSH into Linux boxes. Still, for me, nothing beats a Linux desktop with i3wm on it.
- yusefnapora 4y agoYou can run i3 via WSL if you use an alternate X server like X410 or vcxsrv instead of the built-in wayland RDP bridge thing. vcxsrv is a bit nicer, since it lets you run the X display in fullscreen mode.
- Arnavion 4y agoI don't know anything about WSL, but if it has a wayland server like you say and if 22SAS wants to use i3, they could try sway with the wayland backend.
- altruios 4y agoI have not tried it yet, but there is a port of i3wm for windows... but I agree Linux is a better experience :)
- danuker 4y ago> SSH into development Linux machines If you need to keep doing this, I warmly recommend Mosh instead. https://mosh.org/ https://mosh.org/
- deleted 4y ago[deleted]
- chawyehsu 4y agoWSL 2 1.0.0 lol, bumping version number doesn't make sense imho, look at the changelog.. The critical high CPU issue [1] is yet fixed unfortunately. [1]: https://github.com/microsoft/WSL/issues/6982 https://github.com/microsoft/WSL/issues/6982
- bakugo 4y agoSubmitted a year and a half ago and no fix? What a shitshow, recently I've been having this issue with Docker Desktop more and more often, might just move to a normal VM, this is unacceptable.
- pxc 4y agoIt's not just a CPU usage issue, either— vmmem leaks and holds onto several times as much memory as the actual guests are using, inevitably chewing up whatever you've set as your maximum quota for WSL even when the guests are only using a few hundred megs of RAM.
- deleted 4y ago[deleted]
- jahnu 4y agoIs it still amazingly complicated to start a server in WSL 2 that is visible on the LAN?
- matsemann 4y agoOn localhost it's available by default on Windows side. If you'd like to access it by your machine's IP from a different machine on the LAN, you just need to run a single command to add a proxy for it. netsh interface portproxy add v4tov4 listenport=8001 listenaddress=0.0.0.0 connectport=8001 connectaddress=172.24.75.111 where connectaddress is whatever you get from running ifconfig on wsl side. Edit: Might also use localhost instead of IP as the connectaddress, as the IP might change. Depends on what your server software handles of bindings. Depending on your machine configuration, you might need to open the port in your firewall as well, ala netsh advfirewall firewall add rule name="Allowing connections on 8001" dir=in action=allow protocol=TCP localport=8001
- glitchc 4y agoKudos! This should be an answer to a StackOverflow question somewhere so that a broader audience can find it.
- matsemann 4y agoKudos should go to the SO question that showed me it, then ;) But for some reason hidden under RoR. https://stackoverflow.com/a/66485783/923847 https://stackoverflow.com/a/66485783/923847
- jahnu 4y agoPraise be!
- pram 4y agoYes it’s a huge mess, I pretty much just stick to portproxy.
- CoolCold 4y ago
- laxis96 4y agoI have yet to find an use case for WSL, when you can't interact with hardware devices and working with the filesystem has its (performance) limitations. Docker in WSL2? Yeah sure, but I'd rather install a VM or connect to a remote Docker host. MinGW/MSYS2 have been around far longer and have none of those issues... Then again, MSYS2 does not have a Linux kernel running under it but that shouldn't be a problem unless you want to run containers.
- spiffytech 4y agoI love WSL because it makes Windows just as nice to use for development as Linux / macOS. No weird janky "this is buggy on Windows" stuff, because as far as the app is concerned it's just a Linux VM.
- djfobbz 4y agoI've never looked back since WSL came out...I'm not promoting Windows but growing up in a corp environment, Windows is where my comfort zone was...I tried switching to Textmate on Mac back in 2007 but really hated not having a direct map of various shortcut commands using CTRL key. The closest I got to this Win experience was on Linux Mint using XFCE...but again, it was pain anytime I was sent MS Office docs. Sublime/WSL has been my goto since it dropped! Slowly getting used to VSCode as well.
- jefftime 4y agoI'm not sure why you're being down voted. This is my exact use case as well. For what I do (front end development) it's incredibly nice to have a Linux command line for most things. I'm stuck on Windows due to legacy .NET Framework apps, so when I have to dip back into Windows I can
- matsemann 4y agoFilesystem things are faster in WSL+Docker than native Windows for me. At least npm stuff. I'd rather skip the hassle of VM, and why use a remote Docker host? And same with MinGW. I like being able to just do stuff out of the box as if it was an Ubuntu install. Much more ergonomic, and can just follow whatever official guide for the tool I'm trying to use, without depending on someone making it possible to use in MinGW/MSYS. So I kinda disagree, for all things you mention I prefer WSL.
- smm11 4y agoThere was already Cygwin. Just like there was already A/UX. Oh, the hackjob world we could have lived in. Oh, wait ...
- jhoelzel 4y agoNice! Thank you! I have to admit WSL is hands down the single most amazing addtion that Microsoft has implemented into Windows since giving us 64 bit. I could totally still use Windows XP, but not without WSL
- mcdermott 4y agoI dumped WSL for Multipass, it works great on all platforms: https://multipass.run/ https://multipass.run/
- chazeon 4y agoNot being able to access WSL from within an SSH session due to "not possible to access wsl from session 0 (which is where the Windows OpenSSH server run)" [1,2] is now a deal breaker for me to upgrade to whatever they called 1.0.0 version or released over Windows Store. The old version (non-Store version) used to work, and now the upgraded / non-Preview version doesn't. I don't know how they dare remove that preview tag. [1]: https://github.com/microsoft/WSL/issues/9059 https://github.com/microsoft/WSL/issues/9059 [2]: https://devblogs.microsoft.com/commandline/a-preview-of-wsl-in-the-microsoft-store-is-now-available/ https://devblogs.microsoft.com/commandline/a-preview-of-wsl-...
- noveltyaccount 4y agoBummer, but at least it's described as a "known issue" and the fix appears to be in progress.
- kruptos 4y agoYou're you saying if I ssh into windows and am dumped into powershell, I'm unable to type wsl to drop into linux?
- chazeon 4y agoYes, that is the case when you upgrade to the current version.
- pxc 4y agoThis is a great example to keep in mind against the high praise WSL receives— not because it's particularly dire, but because it's representative of how surprising (and basically intractable) WSL issues generally are. The product is chock full of bugs like this which will only impact a small subset of users, but which are showstoppers for that subset. (Some of them can be worked around, but good God are they a PITA.) They tend to be issues that 'seem' advanced, but the missing functionality is usually something that the vast majorities of developers who have run a Linux desktop for development would take for granted as a possibility.
- runjake 4y ago
- deleted 4y ago[deleted]
- djfobbz 4y agoNow I'm really confused about WSL and WSL2...which one is this? WSL2 v1.0.0?
- jokoon 4y agoDo they provide the x server as well? Being able to do gpu stuff is also pretty awesome too. I can finally use makefiles in a sane way again. I also have an issue with flask having a buggy http server by default (sending files seems to stall with http 206), I still have to try if it works better on WSL.
- deleted 4y ago[deleted]
- gosukiwi 4y agoWSL is great. I use my personal computer for gaming, but I also like using it for side projects, and dual-booting is a pain in the ass. WSL makes it super smooth to have a proper dev env. I can use gvim from Linux just fine, with a bit of configuration I can even share clipboard. I think it still has a few rough edges,but fortunately I haven't had to deal with those. Also recently they added support for systemd which is awesome. Most packages "just work".
- pmontra 4y agoSo WSL -> WSL 2 -> WSL 1.0.0? Strange naming sequence. I thought it was a commemorative post about the anniversary of the first WSL, or something like that.
- deleted 4y ago[deleted]
- Sakos 4y agoFrom the company that gave us Xbox, Xbox 360, Xbox One, Xbox One X, Xbox One S, Xbox Series S, Xbox Series X.
- Scharkenberg 4y agoNo, the 2 in WSL2 refers to the generation (i.e. the one with VM architecture). This release simply "graduates" WSL2 from pre-release (0.xx days in quasi-semantic versioning). It's still WSL2 and for most intents and purposes the specific version of the package should be irrelevant, especially if one is using the Store-published version. It's not the only moving part anyway, as WSLg and the kernel are updated separately.
- tester756 4y agoDoes it work on Windows 10?
- hs86 4y agoIt works if you install the optional KB5020030 via Windows Update. edit: I can also confirm, that they ported WSLg back to Windows 10. \o/
- temeritatis 4y agoI wish they could finally include some mechanism to map running WSL instances to a hostname / static ip. Also, a big difference to running a vmware instance is that you never know when the WSL instance is shut down, and you can't save the "state", that is, hibernate or suspend it. Honestly, i just want a replacement for vmware that uses less resources. So i can run a completely isolated desktop for each project i'm working on. Suspend it, reboot my machine, and then load it up and continue where i left off, all windows and terminal sessions intact. The last bit assumes one can run a (non ephermal) graphical desktop of course, which rules out docker pretty much.
- nyolfen 4y agohttps://docs.linuxserver.io/images/docker-webtop https://docs.linuxserver.io/images/docker-webtop
- temeritatis 4y agoWow i didn't know about that project. Thanks for sharing!
- NelsonMinar 4y agoIt's wild to me that Windows is a better Unix than MacOS.
- Longhanks 4y agomacOS is certified unix, neither windows nor Linux are. To get the same environment that is WSL (namely a virtual machine with tight integration and low overhead), Apple provides Hypervisor.framework: https://developer.apple.com/documentation/hypervisor https://developer.apple.com/documentation/hypervisor
- anderspitman 4y agoIf this sounds interesting, see https://github.com/lima-vm/lima https://github.com/lima-vm/lima
- toqy 4y agoI've been using https://github.com/abiosoft/colima https://github.com/abiosoft/colima as a Docker Desktop replacement, which is based on Lima. It's pretty nice.
- samanator 4y agoI have to give kudos to Microsoft on their WSL2 product. It's not perfect, but its extremely accessible and allowed me to become comfortable enough in a Linux environment to change my primary driver to Ubuntu. Until then, I was trapped in Windows land as both a dev and a user.
- guenthert 4y agoLast time I tried, there where still some issues, e.g. the 'mailbox' (contrib) test of SBCL didn't succeed (just hangs). There are known issues with cancellation of threads in Windows, which I think explains why the test doesn't succeed there, but the fact that it doesn't succeed in WSL makes me wonder how well the hypervisor deals with multiple threads ...
- anderspitman 4y agoI wonder if this means WSL2 will be installed by default at some point in the future. I believe this is the only manual step remaining when installing Docker Desktop.
- 9front 4y agoThis is a good release, IMO. It finally brings WSLg to Windows 10, KB5020030 required.
- AcerbicZero 4y agoHonestly if I could find a Windows laptop of comparable quality (and my company gave me admin rights just like they do on my mac...unlikely I know) I'd switch and use WSL/windows for everything.
- beebmam 4y agoWSL gives me hope that the right people are making engineering decisions at Microsoft. Truly one of the most transformative pieces of tech we've gotten in the last decade, for developers.
- dr_faustus 4y agoI really love the concept of WSL and it is certainly useful but the file system performance was so bad for me that i could never get it to work with projects that had 1000+ files.
- isitmadeofglass 4y agoWSL2 1.0.0_final_kevinsfix_final4real
- bsnnkv 4y agoI use WSL2 as my daily development driver and it is a very pleasant experience. My road here was from macOS to Pop!_OS to WSL2 with Arch. The only missing piece for me was a tiling window manager, so I developed my own for Windows based on a mixture of bspwm, yabai and leftwm.