Skip to content
This repository was archived by the owner on Nov 13, 2026. It is now read-only.
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

Open

Description

@AceHack

Activity

  1. added this to the Future milestone on Dec 16, 2015
  2. MichalStrehovsky commented on Dec 16, 2015

    @MichalStrehovsky
    Member

    @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...

  3. tijoytom-zz commented on Dec 31, 2015

    @tijoytom-zz
    Contributor

    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#

    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 the page fault.

    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.

  4. b3nt0 commented on Jan 25, 2016

    @b3nt0

    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.

  5. tijoytom-zz commented on Jan 25, 2016

    @tijoytom-zz
    Contributor
  6. b3nt0 commented on Jan 25, 2016

    @b3nt0

    That's the one. Thanks!

  7. xied75 commented on Feb 2, 2016

    @xied75

    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?

  8. ilackarms commented on May 26, 2016

    @ilackarms

    @tijoytom definitely interested in seeing the work you did with OSv

  9. tijoytom-zz commented on May 26, 2016

    @tijoytom-zz
    Contributor

    @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 ?

  10. ilackarms commented on May 26, 2016

    @ilackarms

    @tijoytom you did not cross-compile dotnet CLR? all you did was compile some C# to a native binary? and that worked?

  11. tijoytom-zz commented on May 26, 2016

    @tijoytom-zz
    Contributor

    @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.

  12. ilackarms commented on May 26, 2016

    @ilackarms

    @tijoytom were there any changes you had to make to CLR source to make it cross compile to run on OSv?

  13. tijoytom-zz commented on May 26, 2016

    @tijoytom-zz
    Contributor

    @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.

  14. ilackarms commented on May 26, 2016

    @ilackarms

    great! thanks. I am interested in trying this out on top of a rumprun unikernel instead of OSv.

  15. radu-matei commented on Dec 14, 2016

    @radu-matei

    Hi, everybody!

    Did any of you continued working on running .NET on top of a unikernel?

    Thanks!

  16. wub commented on Jul 11, 2017

    @wub

    Any updates on this stuff?

  17. AceHack commented on Dec 27, 2017

    @AceHack
    Author

    any updates?

  18. carlpaten commented on Dec 27, 2017

    @carlpaten

    @AceHack two things:

    1. Odds are, if they were making progress on this there would be a highly visible blog post popping up on Reddit and elsewhere;
    2. You can probably do this yourself via Rump kernels :)))
  19. moloneymb commented on Dec 27, 2017

    @moloneymb

    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.

  20. CRCinAU commented on Aug 13, 2018

    @CRCinAU

    Just wanted to give this a punt.... Any news / progress as yet?

  21. philiplaureano commented on Aug 23, 2018

    @philiplaureano

    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.

  22. CRCinAU commented on Aug 23, 2018

    @CRCinAU

    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...

  23. philiplaureano commented on Aug 24, 2018

    @philiplaureano

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions