News for hackers. Stuff that matters.
Re:Arch Linux adapted for Windows Subsystem for Linux by e40 on Wednesday September 14, 2016 @10:57PM (#12503009)
Don't know why you were downvoted without explanation, because that's my understanding how this new feature works. Just like the Posix subsystem before it, completely cut off from the Win32 subsystem. So, yeah, it feels like it would be like a VM to me.
Re:Arch Linux adapted for Windows Subsystem for Linux by flukus on Wednesday September 14, 2016 @11:38PM (#12503225)
> Don't know why you were downvoted without explanation

If past conversations on reddit are anything to go by it's because a lot of people don't want to recognize that WSL is essentially a VM. Docker too for that matter.

Re:Arch Linux adapted for Windows Subsystem for Linux by voltagex_ on Thursday September 15, 2016 @12:05AM (#12503329)
WSL is definitely not a Virtual Machine, unless you're saying that WINE is also a VM, in which case you have a very broad definition of VM that's different from most other people.

The way WSL is implemented is actually really interesting. Linux syscalls are translated by an NT kernel driver and some other shims handle the NTFS->POSIX transition on the filesystem side.

Re:Arch Linux adapted for Windows Subsystem for Linux by flukus on Thursday September 15, 2016 @12:18AM (#12503374)
> WSL is definitely not a Virtual Machine, unless you're saying that WINE is also a VM, in which case you have a very broad definition of VM that's different from most other people.

Wine runs on the host OS, WSL runs apps from linux image. This image is self contained, just like a VM.

Aside from that, I said it's practically a VM. There might be some different technical stuff going on underneath, but for a user there is very little difference between WSL and a VM.

Re:Arch Linux adapted for Windows Subsystem for Linux by int_19h on Thursday September 15, 2016 @12:52AM (#12503513)
It's not truly contained, though. There is no security boundary between the host and the guest there - WSL can access your entire filesystem, for example (subject to usual ACL checks, of course).

The reverse is also true, by the way - WSL portion of filesystem can be observed directly from Win32 (cd %USERPROFILE%\AppData\Local\lxss and look around, but don't touch - there's some magical pixie dust there that's easy to disturb and break things from the Linux side of things).

Re:Arch Linux adapted for Windows Subsystem for Linux by flukus on Thursday September 15, 2016 @01:09AM (#12503594)
Can't you make whole drives available to a true VM in the same way?
Re:Arch Linux adapted for Windows Subsystem for Linux by int_19h on Thursday September 15, 2016 @04:00PM (#12509342)
You can, but in a VM, you still have two different and separate filesystems, and then some mechanism to provide a window into one from another (custom FS driver mounted in a directory, SMB share etc). In WSL, there is only one filesystem.

And it's not just filesystems. We're also talking about potentially shared file descriptors/handles (where appropriate), access to processes in both directions etc.

So from user's perspective, I would argue that it's actually more similar to Wine. Even if the implementation is more low-level (syscall emulation vs userspace API emulation).

Re:Arch Linux adapted for Windows Subsystem for Linux by noinsight on Thursday September 15, 2016 @02:12AM (#12503839)
> Wine runs on the host OS, WSL runs apps from linux image. This image is self contained, just like a VM.

Actually (it's been a long time since I last used Wine though, so I might remember incorrectly), Wine is "self contained" as well and there's a "C: drive" directory structure with notepad.exe etc. too, just like the WSL system.

Re:Arch Linux adapted for Windows Subsystem for Linux by tremon on Thursday September 15, 2016 @10:46AM (#12506563)
That's a very narrow definition of self-contained though. Wine does not implement its own filesystem operations, it uses the host's filesystem api to access host-native files. It doesn't even emulate a jail/chroot, because the host's / filesystem is by default accessible through Z:\
Re:Arch Linux adapted for Windows Subsystem for Linux by flukus on Thursday September 15, 2016 @02:29AM (#12503889)
I think your right, now that you've jogged my memory.
Re:Arch Linux adapted for Windows Subsystem for Linux by davrosthedalek on Thursday September 15, 2016 @10:07AM (#12506223)
The main point is that it does not run a linux kernel.