News for hackers. Stuff that matters.
Re:Initial Impressions of WSL 2 by k__ on Wednesday May 06, 2020 @08:34AM (#23090208)
How does it compare to real Linux distributions? Does it have a package manager? Is it like Debian? What are the limitations?
Re:Initial Impressions of WSL 2 by mehrdadn on Wednesday May 06, 2020 @08:45AM (#23090280)
It sounds fancy but it's just a VM with a bit more polished Windows integration.
Re:Initial Impressions of WSL 2 by k__ on Wednesday May 06, 2020 @08:47AM (#23090293)
Hm, okay. That doesn't sound impressive anymore.
Re:Initial Impressions of WSL 2 by moomin on Wednesday May 06, 2020 @08:57AM (#23090370)
No, but the good news is you can literally run Arch, Debian and Fedora on the same machine with shared files.
Re:Initial Impressions of WSL 2 by mehrdadn on Wednesday May 06, 2020 @09:07AM (#23090454)
You could already do that with WSL1.

Source: I have Arch and Ubuntu on WSL1.

Those didn't change. Other things did.

Re:Initial Impressions of WSL 2 by akho on Wednesday May 06, 2020 @09:59AM (#23090983)
WSL1 managed to corrupt SQLite dbs. Which is really annoying, and does not happen with WSL2.

My (casual, not work) use relies heavily on Nix, which is built around a centralized SQLite file. I did not enjoy that experience.

Re:Initial Impressions of WSL 2 by mahalol on Thursday May 07, 2020 @06:18AM (#23101421)
Thanks for that, I have hit this bug once with WSL1 in the past and didn't think much of it at the time. Good to know what caused the issue.
Re:Initial Impressions of WSL 2 by mehrdadn on Wednesday May 06, 2020 @10:03AM (#23091038)
Wow, that's amazing/terrible. Would you have a link to a repro?
Re:Initial Impressions of WSL 2 by akho on Wednesday May 06, 2020 @10:28AM (#23091337)
I think this is the relevant bug: https://github.com/Microsoft/WSL/issues/2395

WSL2 has been great so far (I’ve been using it for a few months now with no serious issues).

Re:Initial Impressions of WSL 2 by mehrdadn on Wednesday May 06, 2020 @10:42AM (#23091496)
Thanks!
Re:Initial Impressions of WSL 2 by petters on Wednesday May 06, 2020 @12:19PM (#23092784)
Thanks, this perfectly explains a weird error I have been seeing!
Re:Initial Impressions of WSL 2 by k__ on Wednesday May 06, 2020 @09:13AM (#23090525)
They didn't say that something changed.

But I'm intrigued, what did change?

Re:Initial Impressions of WSL 2 by exdsq on Wednesday May 06, 2020 @10:24AM (#23091279)
WSL2 uses a VM while WSL1 uses a Linux like interface over a system-call DLL.
Re:Initial Impressions of WSL 2 by k__ on Wednesday May 06, 2020 @11:50AM (#23092405)
WSL2 sounds like a step back.
Re:Initial Impressions of WSL 2 by zlynx on Wednesday May 06, 2020 @12:41PM (#23093154)
Their other choice was to make Windows file IO actually fast.

That just wasn't going to happen.

Re:Initial Impressions of WSL 2 by mehrdadn on Wednesday May 06, 2020 @10:11AM (#23091125)
I/O performance characteristics changed, your ability to share the same filesystem for both OSes changed, etc.
Re:Initial Impressions of WSL 2 by k__ on Wednesday May 06, 2020 @08:59AM (#23090386)
That sounds good.

How does it handle case-sensitivity?

Re:Initial Impressions of WSL 2 by greggyb on Wednesday May 06, 2020 @08:44AM (#23090266)
WSL gives you a full Linux distro. You can use Debian, Fedora, Ubuntu, from the top of my head. These are default options. There are others available. Additionally, you can bootstrap to other distros. I know Arch was an early target.

WSL1 replaced the init process. For Ubuntu, at least, snaps were not enabled, at least out of the box. There were occasional issues early on where the syscall translation was not perfect. For me, at least, these were all ironed out after a few revisions. Unsure if there were still edges I didn't hit.

WSL2 takes advantage of virtualization technology, so should be an even better Linux experience.

Re:Initial Impressions of WSL 2 by texasbigdata on Wednesday May 06, 2020 @08:48AM (#23090301)
There were 4 "standard" distros in the Microsoft store IIRC
Re:Initial Impressions of WSL 2 by greggyb on Wednesday May 06, 2020 @05:58PM (#23096819)
Just double checked in a Windows VM. These are available when searching WSL in the Microsoft Store. Some of these are for a fee. There are also a few results for terminal emulators and an X server.

- Ubuntu (18.04 and 20.04)

- Kali

- Debian

- Fedora (remix for WSL)

- openSUSE-Leap-15

- SUSE Linux Enterprise

- Alpine

- Pengwin (Debian-based and apparently optimized for WSL, and an enterprise version)

- Centos (7 and 8.1)

-

Re:Initial Impressions of WSL 2 by Tomte on Wednesday May 06, 2020 @08:37AM (#23090218)
It is a real Debian (or, by default, Ubuntu). Original packages from Debian's servers are used. You're using apt, as usual.
Re:Initial Impressions of WSL 2 by tapland on Wednesday May 06, 2020 @08:44AM (#23090269)
You can run various Debian distros. It works like it should. You can run an x server and get a GUI as well.
Re:Initial Impressions of WSL 2 by tym0 on Wednesday May 06, 2020 @08:40AM (#23090237)
It is an actual linux distribution. The default is Ubuntu but there are others (Suse, Alpine...)
Re:Initial Impressions of WSL 2 by jessermeyer on Wednesday May 06, 2020 @08:40AM (#23090234)
WSL2 is a full blown emulator / virtualization solution, so it runs a real linux kernel / distribution. The largest downside to me is no gpu passthrough from the host.
Re:Initial Impressions of WSL 2 by tyingq on Wednesday May 06, 2020 @08:49AM (#23090311)
They say GPU passthrough is on the backlog in their post build FAQ. https://devblogs.microsoft.com/commandline/wsl-2-post-build-...
Re:Initial Impressions of WSL 2 by jessermeyer on Wednesday May 06, 2020 @12:42PM (#23093179)
I've been tracking that. Almost certainly AMD exclusive since, AFAIK, NVIDIA prohibits GPU passthrough on their consumer cards so VPNs are forced into purchasing 'professional' grade GPUs.
Re:Initial Impressions of WSL 2 by satvikpendem on Wednesday May 06, 2020 @08:43AM (#23090257)
You can even compile your own custom kernel for it. I've had to do so in order to run some modules that the WSL 2 kernel currently doesn't have.
Re:Initial Impressions of WSL 2 by 6gvONxR4sf7o on Wednesday May 06, 2020 @02:44PM (#23094769)
I'm using full ubuntu in it. The only real pain is anything that relies on systemd (which comes up unsurprisingly often).
Re:Initial Impressions of WSL 2 by tsar9x on Wednesday May 06, 2020 @09:05AM (#23090430)
Systemd is not working.