this post was submitted on 25 Dec 2023
351 points (94.2% liked)

linuxmemes

20686 readers
849 users here now

I use Arch btw


Sister communities:

Community rules

  1. Follow the site-wide rules and code of conduct
  2. Be civil
  3. Post Linux-related content
  4. No recent reposts

Please report posts and comments that break these rules!

founded 1 year ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 4 points 8 months ago (1 children)

How does the wsl load the OS btw?

[–] [email protected] 9 points 8 months ago (1 children)

Wsl2? It's a VM. As for wsl1... Not sure, mb smth wine-ish.

[–] [email protected] 14 points 8 months ago* (last edited 8 months ago) (1 children)

The way WSL1 worked is actually quite interesting: The NT kernel always had the capability to run multiple subsystems, with Win32 only being one of them and there were subsystems available for OS/2, POSIX and later UNIX. WSL1 was pretty much a revival of that feature. So WSL1 is indeed somewhat like Wine, but making heavy use of some features built into the kernel. So yeah, no real boot process happening.

(Also it's kinda stupid that the 'S' in WSL2 still stands for 'subsystem', despite not using that feature anymore.)

[–] [email protected] 10 points 8 months ago

I liked the WSL1 approach better. I find it ironic that the Windows kernel lacks so many useful features that it simply wasn't possible to properly implement things like cgroups on top of it, so they just gave up and ran Linux in a VM for WSL2