runtime icon indicating copy to clipboard operation
runtime copied to clipboard

Run DotNet Core App on X86 Without OS

Open zero0000zero opened this issue 8 years ago • 6 comments

How to run DotNet Core app on X86, without OS?

zero0000zero avatar Aug 10 '18 03:08 zero0000zero

Well, by installing any supported OS, then by installing the .NET Core Runtime for that OS.

Or do you mean something different? If so, please eloberate your concern.

gfoidl avatar Aug 10 '18 08:08 gfoidl

I mean run DotNet Core on X86, without any OS.

zero0000zero avatar Aug 10 '18 09:08 zero0000zero

Since a OS is a prerequisite for .NET Core this won't be possible.

The runtime calls "into" the OS in several ways (memory, IO, etc.) so .NET Core can't live without the OS.

gfoidl avatar Aug 10 '18 09:08 gfoidl

@gfoidl Thanks for the answer

jkotas avatar Aug 10 '18 14:08 jkotas

Since a OS is a prerequisite for .NET Core this won't be possible.

It is not entirely true. In HPC area so called library operating systems are often used to replace whole OS. It usually works in such configuration that on one node you have minimal hypervisor with multiple VMs. One VM runs linux kernel and some drivers to serve selected OS services to all other VMs (usually IO) which run on bare metal hypervisor. To run on bare metal you need to provide basic services to runtime what is done using external library. Library OS is often statically linked with runtime as seamless runtime-os package on top of which you can run whatever runtime supports.

Similar idea is to use unikernels or in other words one process operating system - runtime package.

4creators avatar Aug 10 '18 18:08 4creators

Forgot to add that there are no library OS'es or unikernels which would support .NET Core. But if anybody wants to create one than it is definitely possible.

4creators avatar Aug 10 '18 18:08 4creators