News for hackers. Stuff that matters.
Re:Microsoft's Linux Kernel by giancarlostoro on Friday June 28, 2019 @07:10PM (#20309574)
Windows Subsystem for Linux is really close to that though. If you have not tried it yet you can download a Windows VM for developers from Microsoft that includes WSL and other dev goodies. Its mostly for evaluation but good enough to get started with.

Edit:

Here is the link to the Microsoft provided VMs:

https://developer.microsoft.com/en-us/windows/downloads/virt...

Re:Microsoft's Linux Kernel by mullingitover on Friday June 28, 2019 @07:15PM (#20309605)
This is still with Linux running in a VM though, right? I'd like a lightweight VM for legacy Windows and Linux running on metal.

Given Microsoft's zeal for legacy support I'd say there's a snowball's chance in hell for this, but a man can dream.

Re:Microsoft's Linux Kernel by naikrovek on Friday June 28, 2019 @09:28PM (#20310229)
When you run a type-1 hypervisor, the only thing running on the metal is the hypervisor.

This is what happens in the case of WSL 2; both Linux and Windows (the host OS) run in very (very) lightweight VMs.

Re:Microsoft's Linux Kernel by inlined on Saturday June 29, 2019 @12:48AM (#20310866)
Iirc, even the Win32 APIs sit above the subsystem layer. There was the OS/2 subsystem back in the day, Win32, and one more I can’t remember from my training 11 years ago.
Re:Microsoft's Linux Kernel by Avery3R on Saturday June 29, 2019 @01:39AM (#20310968)
posix subsystem?
Re:Microsoft's Linux Kernel by inlined on Saturday June 29, 2019 @03:10PM (#20314200)
I think that was newer than my training. This was the Vista timeframe.
Re:Microsoft's Linux Kernel by Avery3R on Friday July 12, 2019 @05:39PM (#20424763)
The posix subsystem was a thing even when xp was around
Re:Microsoft's Linux Kernel by tbrock on Friday June 28, 2019 @08:46PM (#20310044)
Just run Linux and then run a Windows VM in QEMU, seems like you can do this now.
Re:Microsoft's Linux Kernel by godelski on Friday June 28, 2019 @07:18PM (#20309624)
I just want Linux with the ability to use PowerPoint.

(I also want to just be about to plug in my HDMI to my laptop and have it work. Literally the only two things I care about)

Re:Microsoft's Linux Kernel by marcianx on Friday June 28, 2019 @08:09PM (#20309901)
FWIW, I have given major conference talks years back on my linux laptop with PowerPoint running via Crossover Office (wine), mostly due to my advisor's insistence on using PowerPoint. So that has already been a thing for a long while.
Re:Microsoft's Linux Kernel by godelski on Saturday June 29, 2019 @02:06AM (#20311030)
My issue is that with nvidia laptops the hdmi connection almost never works as expected, when I have cuda installed. I'll try proprietary or noveau drivers. I've driven my monitor with intel drivers. I've tried so many things, but it has been multiple laptops that I've just never gotten this to work. I just can't have cuda and use my laptop for presentations. So I just always keep a windows partition just for presentations. If you do have a suggestion I'd love to hear it.

I've never used crossover. Thanks, I'll look into it.

Re:Microsoft's Linux Kernel by rightbyte on Saturday June 29, 2019 @05:49AM (#20311693)
I tried to do CUDA programming on a laptop with Ubunto but gave up. It worked fine on a stationary computer.

There has to be something with Cuda that messes everything up on laptops.

Re:Microsoft's Linux Kernel by kop316 on Friday June 28, 2019 @07:23PM (#20309651)
I would actually wonder if it could do that via VMs. That why you can keep compatibility, but then change the underlying system.
Re:Microsoft's Linux Kernel by SteveNuts on Friday June 28, 2019 @07:18PM (#20309623)
WSL version 2 uses the Hyper-V Virtualization API but is not a VM.

The first version of WSL is just another process in task manager, with all the syscalls and filesystems emulated.

Re:Microsoft's Linux Kernel by chrismorgan on Friday June 28, 2019 @08:58PM (#20310089)
Well, each WSL1 process is a Windows process. If you’re running vim in bash, for example, you’ll see “vim” and “bash” as separate processes in Task Manager. WSL is all about ELF binaries natively, just as Win32 runs PE executables natively.
Re:Microsoft's Linux Kernel by kevingadd on Friday June 28, 2019 @10:03PM (#20310345)
"windows process" is misleading, WSL uses a separate "linux subsystem" with its own syscalls, process/thread data structures, etc. It also uses its own file system (albeit with all the state stored in NTFS and affected by filter drivers, which is why its I/O is slow)
Re:Microsoft's Linux Kernel by chrismorgan on Saturday June 29, 2019 @01:27AM (#20310945)
They are Windows processes, just as the Win32 subsystem also spawns Windows processes.
Re:Microsoft's Linux Kernel by dblohm7 on Saturday June 29, 2019 @08:09PM (#20315626)
Probably best to refer to them as NT processes for the sake of clarity.
Re:Microsoft's Linux Kernel by chrismorgan on Sunday June 30, 2019 @02:52AM (#20316778)
True, I thought that a few hours after I wrote my last comment but couldn’t update it by that point and didn’t respond to it. Windows NT is the kernel, Win32 is the Windows subsystem that everyone’s used to (including kernel32.dll), WSL is a subsystem that runs ELF binaries and implements the Linux syscalls. It’s not yet obvious to me how much WSL2 is actually even a Windows subsystem, given that it’s running it as an actually separate OS.
Re:Microsoft's Linux Kernel by giancarlostoro on Friday June 28, 2019 @07:19PM (#20309628)
I dont think its a VM like Docker no. WSL processes show up under the task manager. This is more like Wine but Line... In a sense. But a little trickier.
Re:Microsoft's Linux Kernel by fortran77 on Friday June 28, 2019 @09:47PM (#20310300)
Do Docker people really think it’s a VM? Or has the meaning of “VM” shifted this past year?
Re:Microsoft's Linux Kernel by robrtsql on Friday June 28, 2019 @10:57PM (#20310526)
I think the OP is probably referring to the fact that running Docker on Windows and macOS is accomplished by running a Linux VM which the Docker containers run in. Not that Docker containers are VMs.
Re:Microsoft's Linux Kernel by giancarlostoro on Saturday June 29, 2019 @05:28PM (#20314892)
This is what I meant by this. Most people I know using Docker are not on Linux but on Mac and Windows.
Re:Microsoft's Linux Kernel by fortran77 on Saturday June 29, 2019 @12:00AM (#20310740)
I didn't know that macOS users don't run Docker natively! On Windows, it's native:

https://docs.docker.com/docker-for-windows/

Re:Microsoft's Linux Kernel by tsimionescu on Saturday June 29, 2019 @02:21AM (#20311073)
In practice, the vast majority of docker containers are Linux containers, so most uses of docker for windows need a Linux kernel to do anything useful.

As such, the 'native' docker for windows you linked is actually managing a Linux VM (HyperV or VBox) fot you; the docker server runs on that VM, and the native docker windows binary simply connects to that server.

They also do a lot of tricks to connect networking and file shares with that VM. The file shares part is almost completely non-working in my experience, with scary comments in the bugs like 'doesn't work if your windows password contains certain characters' (it sets up CIFS shares between the Linux VM and some parts of your Windows file system).

So, not sure what docker for Mac looks like, but Docker For Windows is only 'native' in a very hand-wavy sort of way, unless (maybe) if you're running Windows docker containers.

Re:Microsoft's Linux Kernel by merb on Saturday June 29, 2019 @06:06AM (#20311730)
docker for mac uses xhyve/hyperkit and has a really really slow i/o.
Re:Microsoft's Linux Kernel by mtzet on Saturday June 29, 2019 @02:42AM (#20311142)
Docker desktop runs a Hyper-V VM. Prior to that, Docker used a Virtualbox VM on Windows. The current plan seems to be to integrate with WSL2 once that ships [1].

[1] https://engineering.docker.com/2019/06/docker-hearts-wsl-2/

Re:Microsoft's Linux Kernel by pritambaral on Saturday June 29, 2019 @02:22AM (#20311074)
That cannot run Linux containers, only Windows containers, no?
Re:Microsoft's Linux Kernel by fortran77 on Saturday June 29, 2019 @11:21AM (#20313068)
Yes. If you're running Windows containers you can be "native" docker.

However, we use VMs managed with Salt for our Centos VMs. I never saw the need for Docker. Maybe if I did "web" stuff.

Re:Microsoft's Linux Kernel by rleigh on Saturday June 29, 2019 @08:38AM (#20312247)
You can switch between one or the other. Oddly, it can't run both at the same time.
Re:Microsoft's Linux Kernel by monocasa on Friday June 28, 2019 @07:41PM (#20309750)
Docker's not a VM.
Re:Microsoft's Linux Kernel by dboreham on Friday June 28, 2019 @08:10PM (#20309907)
Someone who uses MacOS might think Docker implies a VM perhaps? (Linux VM needed to get Linux Containers to run).