Re:Microsoft submits Linux kernel patches to enable complete...
by crumbshot on Wednesday September 16, 2020 @08:25AM
(#24491912)
That is not quite correct, it is in WSL1 that they are NT processes, with Linux syscall emulation.
But in WSL2 the whole thing runs in a Hyper-V VM, with a customised Linux kernel (available via http://linux.microsoft.com) to help with interoperability between WSL and Windows.
Re:Microsoft submits Linux kernel patches to enable complete...
by qalmakka on Wednesday September 16, 2020 @08:56AM
(#24492196)
You got it completely wrong. WSL1 was a system call translation layer, and everything worked directly on the Windows kernel, like Windows programs do under WINE.
WSL2 is an standard Hyper-V virtual machine, no more no less, with a custom Linux kernel build and a ext4 root filesystem stored in a .vhdx image. Every process runs as a native Linux process under the Microsoft's Linux kernel, _inside_ the VM. What makes it more convenient than simply opening the Hyper-V manager and creating a VM is ease of installation, maintenance and integration with Windows (using the 9p protocol to allow file access).
Re:Microsoft submits Linux kernel patches to enable complete...
by withinboredom on Wednesday September 16, 2020 @09:30AM
(#24492505)
And you got it all wrong :p. It’s not a “standard Hyper-V virtual machine” you can’t make one from scratch.
Re:Microsoft submits Linux kernel patches to enable complete...
by qalmakka on Wednesday September 16, 2020 @11:34AM
(#24493652)
With "standard Hyper-V virtual machine" I mean that's like every other VM, because it runs under its own instance of vmwp.exe, spawned by vmms.exe, like every other one you may have in the system.
Re:Microsoft submits Linux kernel patches to enable complete...
by withinboredom on Wednesday September 16, 2020 @12:41PM
(#24494379)
Now I want to take those executables apart and see if it does any special handling.
Re:Microsoft submits Linux kernel patches to enable complete...
by Sangeppato on Wednesday September 16, 2020 @08:12AM
(#24491832)
Do you have any source/documentation for this? I'd really like to read more about it, my understanding has always been that WSL2 was more or less a classic VM on a type-1 hypervisor (Hyper-V)
AFAIK, there's no way to achieve anything like this on macOS.