You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 13, 2026. It is now read-only.
Please create a .NET Core Unikernel, Nano Server is too Big #541
Containers like Docker and Server OSs like Nano Server are too big and bring to much baggage. Please create an ultra tiny .NET Core Unikernel for the ultimate cloud OS. Make sure it runs perfect in Hyper-V and Xen.
Reacted by Rudy Alvarez, Jonathan Dickinson, Alex Nikitin, spyke, Laurent Grangeau, Jarrod Mosen, Riley White, Kees C. Bakker, codemkey, cocowalla and 10 more
Reacted by Jarrod Mosen, Wis, codemkey, dzmitry-lahoda, Imperatorn, Eitan Har-Shoshanim (old account), Divyang Panchasara and David Cumps
@AceHackRump Kernels linked from one of your articles provides support running POSIX'y software. Chances are that if you play around a bit, you can get the Linux-targeting CoreRT running with it...
There is actually a really nice write up by one of the founders of Joyent about how unikernels may be missing the point a bit. (Sorry, I don't have the URL.) His point, in short, was basically that applications these days actually aren't bound by context switches, which are the main thing that unikernels save you from. I'm probably not doing it justice, but it did make the case that what's intuitively better sometimes really isn't that much better when you make measurements.
Understandable given how open .NET now is, we surely can pick other unikernel systems as the base, yet why trash the valuable work of DrawBridge to not "Change the World"? If Docker "forced" MS to embrace container and being a follower, why repeat this again and lose unikernel game? Everybody would benefit if considering the IoT thing, as Mary Jo said.
Anyone interested to start a petition to Open the DrawBridge?
@ilackarms It's been a while back that i did the experiment , i still have the run-time changes on my machine. The path that i look was the easiest ie use cpp compile and then use clang / gcc to compile to native binary.
Is there anything particular you are interested in ?
@ilackarms Yes , I did cross compile the runtime (dotnet CLR) and link it to produce the final binary.
1 . Use CoreRT cpp codegen to generate c++ code for the test c# application . The output here is a cpp file with all the necessary plumbing to initialize the run-time and jump to app's main method.
2. Compile the run-time.
3. Compile an link the cpp from (1) and runtime from (2) to produce the final binary.
@ilackarms I didn't actually make any change to compile CLR , but i had to make some changes to get 'helloworld' running on OSV .
1.Removed bool QueryCacheSize() from PalRedhawkUnix , opendir("/sys/devices/system/cpu") do not work on OSV.
2.Disabled the finalizer thread since PalWaitForSingleObjectEx(hFinalizerEvent .. was triggering a page fault.
I'm looking at using WebAssembly based unikernels in the distant future. I assume .Net -> WebAssembly and Non-Web Embeddings for WebAssembly are both much more likely to happen independently than a lightweight .Net Unikernel.
I just recently saw a talk done by the creators of the vorteil.io unikernel and they claim that they can get .NET core running on top of their custom Linux unikernel. The only caveat is that their kernel is not open source.
Activity
MichalStrehovsky commentedon Dec 16, 2015
@AceHack Rump Kernels linked from one of your articles provides support running POSIX'y software. Chances are that if you play around a bit, you can get the Linux-targeting CoreRT running with it...
tijoytom-zz commentedon Dec 31, 2015
I did some experiments with OSV using C++ codegen and was able to get a simple helloworld working
Got the simple hello world working after I disabled QueryCacheSize and the finalizer thread.
tijoytom@uberbot:~/osv$ sudo ./scripts/run.py -nv -c1
OSv v0.24-36-gcd362a2
eth0: 192.168.122.89
/# Hello Unikernel from C#
I will be updating https://github.com/tijoytom/capstan-example with instructions on how get the hello world working if anyone wants to playground with it.
b3nt0 commentedon Jan 25, 2016
There is actually a really nice write up by one of the founders of Joyent about how unikernels may be missing the point a bit. (Sorry, I don't have the URL.) His point, in short, was basically that applications these days actually aren't bound by context switches, which are the main thing that unikernels save you from. I'm probably not doing it justice, but it did make the case that what's intuitively better sometimes really isn't that much better when you make measurements.
tijoytom-zz commentedon Jan 25, 2016
I think this's what you are refereeing to https://www.joyent.com/blog/unikernels-are-unfit-for-production
But there are lot of well thought argument for unikernel in the comments "https://news.ycombinator.com/item?id=10953766".
b3nt0 commentedon Jan 25, 2016
That's the one. Thanks!
xied75 commentedon Feb 2, 2016
Understandable given how open .NET now is, we surely can pick other unikernel systems as the base, yet why trash the valuable work of DrawBridge to not "Change the World"? If Docker "forced" MS to embrace container and being a follower, why repeat this again and lose unikernel game? Everybody would benefit if considering the IoT thing, as Mary Jo said.
Anyone interested to start a petition to Open the DrawBridge?
ilackarms commentedon May 26, 2016
@tijoytom definitely interested in seeing the work you did with OSv
tijoytom-zz commentedon May 26, 2016
@ilackarms It's been a while back that i did the experiment , i still have the run-time changes on my machine. The path that i look was the easiest ie use cpp compile and then use clang / gcc to compile to native binary.
Is there anything particular you are interested in ?
ilackarms commentedon May 26, 2016
@tijoytom you did not cross-compile dotnet CLR? all you did was compile some C# to a native binary? and that worked?
tijoytom-zz commentedon May 26, 2016
@ilackarms Yes , I did cross compile the runtime (dotnet CLR) and link it to produce the final binary.
1 . Use CoreRT cpp codegen to generate c++ code for the test c# application . The output here is a cpp file with all the necessary plumbing to initialize the run-time and jump to app's main method.
2. Compile the run-time.
3. Compile an link the cpp from (1) and runtime from (2) to produce the final binary.
ilackarms commentedon May 26, 2016
@tijoytom were there any changes you had to make to CLR source to make it cross compile to run on OSv?
tijoytom-zz commentedon May 26, 2016
@ilackarms I didn't actually make any change to compile CLR , but i had to make some changes to get 'helloworld' running on OSV .
1.Removed bool QueryCacheSize() from PalRedhawkUnix , opendir("/sys/devices/system/cpu") do not work on OSV.
2.Disabled the finalizer thread since PalWaitForSingleObjectEx(hFinalizerEvent .. was triggering a page fault.
ilackarms commentedon May 26, 2016
great! thanks. I am interested in trying this out on top of a rumprun unikernel instead of OSv.
radu-matei commentedon Dec 14, 2016
Hi, everybody!
Did any of you continued working on running .NET on top of a unikernel?
Thanks!
wub commentedon Jul 11, 2017
Any updates on this stuff?
AceHack commentedon Dec 27, 2017
any updates?
carlpaten commentedon Dec 27, 2017
@AceHack two things:
moloneymb commentedon Dec 27, 2017
I'm looking at using WebAssembly based unikernels in the distant future. I assume .Net -> WebAssembly and Non-Web Embeddings for WebAssembly are both much more likely to happen independently than a lightweight .Net Unikernel.
CRCinAU commentedon Aug 13, 2018
Just wanted to give this a punt.... Any news / progress as yet?
philiplaureano commentedon Aug 23, 2018
I just recently saw a talk done by the creators of the vorteil.io unikernel and they claim that they can get .NET core running on top of their custom Linux unikernel. The only caveat is that their kernel is not open source.
CRCinAU commentedon Aug 23, 2018
If it's based on the linux kernel, I'm not sure they can keep it closed source if they distribute the binary to people...
philiplaureano commentedon Aug 24, 2018
IANAL, but what I can say is that if they can do it for the JVM, then they can most certainly do the same thing with the CLR: https://www.youtube.com/watch?v=C_YEfT7bZm8