7 ms·
IncludeOS: Run your C++ code directly on virtual hardware
- nvartolomei 11y agoIs this even a thing when we have container boom? Any advantage of running a virtualization layer just to run a C++ application, why not run it in a container?
- vezzy-fnord 11y agoWhere the container virtualizes an instance of an operating system, the libOS (related: the unikernel and exokernel) goes further into virtualizing the operating system services and interfaces themselves. It's a logical step further.
- phire 11y agoOne advantage is that the application gets full control over the page tables. At least one program I work on would gain huge advantages in that kind of environment.
- vezzy-fnord 11y agoThe same is true for microkernels, FWIW. As far back as Mach, a large advantage was separating the mechanism of VMM from the policy of handling page faults, which was done by external pagers in userspace.
- josteink 11y agoAre we just inventing new stuff which will make our code harder to debug for the sake of making something "new" at this point, or am I just being overly cynical?
- vezzy-fnord 11y agoThis idea isn't new at all. In fact, it's largely a conceptual throwback to the days before even batch schedulers where programs had to initialize the machine they were running on. The modern libOS dates from MIT research in exokernels during the 90s, itself an incremental step further of the numerous microkernel projects like SPIN, V-System, Mach, Amoeba and so forth. It's a 1950s idea updated to 21st century standards using 1970s dynamic linking, sometimes but not necessarily meant to be run under a hypervisor.
- rewqfdsa 11y agoWell, hypervisors and OS kernels are largely mirrors of each other, and it doesn't make architecturally to have both. Some people, like the creator of this project, favor squeezing out the OS kernel. Other people, like the LXC people, prefer squeezing out hypervisors and letting OS kernels do it all. Both suck. All software sucks. Software is hell. Every moment is a living nightmare of pain.
- TerryADavis 11y agoI have God's endorsement and He wrote it. If I believe I am telling the truth and I am, you can understand why I laugh my ass off at my enemies.
- billconan 11y agogood to see a unikernel for c++
- bluejekyll 11y agoI'd love to see some consolidated efforts here. I'm currently looking at rumprun but need to support Java and at least I haven't found anyone who's done that successfully. So now I'm also looking at OSv which looks like it's trying to be compatible with Docker.
- anttiok 11y agoDo you know anyone who's even tried to make Java work on Rumprun? I only tried Python, that worked out of the box. From what I've been following others, e.g. Erlang, Rust and Javascript (node.js) more or less provided the same experience.
- peeyek 11y ago> A minimal, service oriented, includeable library operating system for cloud services I think the operating system for cloud services is need to be able to run heterogeneous system. Which Mesos & CoreOS are headed towards this idea via containerization. Why build an OS that only run a C++ for cloud services? Is there any use case/problems that the author trying to solve?
- ZenoArrow 11y agoWhat I want to know is how this is better/different compared to Rumprun or OSv. They appear to be its closest competitors. https://github.com/rumpkernel/rumprun/ https://github.com/rumpkernel/rumprun/ http://osv.io/ http://osv.io/
- tinco 11y agoIt is generally assumed virtual machines have better isolation (security-wise) than operating system level isolation like the containerization Mesos and CoreOS are making use of.
- Leon 11y agoCoreOS and SELinux together is pretty secure if set up properly; even if you broke out of a container you wouldn't be able to do anything, even start a process. But still, yeah, in a unikernel there is no 'breaking out' at all.
- nv-vn 11y agoWhat is the advantage of this over running a unikernels in Xen?
- bjackman 11y agoThis is the only unikernel I know of that supports "raw" applications - OSv applications run in a JVM and MirageOS applications are in OCaml. Edit: looks like there's a direct alternative called Rumprun: https://github.com/rumpkernel/rumprun https://github.com/rumpkernel/rumprun. I hadn't heard of it. Anyway, right now this whole unikernel thing is still pretty new so it's good to have multiple projects.
- smithclay 11y agoThere's also a JavaScript unikernel project: http://runtimejs.org/ http://runtimejs.org/
- anttiok 11y agoNotably, there's ongoing work (with an already functional result) to run Mirage on top of the low-level drivers provided by Rumprun. The idea in doing that is enabling the "top-level" Mirage stack to run in environments for which they don't have native OCaml drivers yet. (disclaimer: I don't speak for Mirage, though I do speak for Rumprun)
- narrowrail 11y ago>OSv applications run in a JVM While this may be the most typical use for OSv, my understanding from their wiki[0] is that OSv can handle Ruby or Node, or Linux apps (most of the Linux ABI is supported). [0]https://github.com/cloudius-systems/osv/wiki https://github.com/cloudius-systems/osv/wiki
- nv-vn 11y agoWhat is the advantage of this over running a unikernels in Xen?
- voltagex_ 11y agoCould I port Python to this and then run a Flask app directly under Xen?
- FraaJad 11y agoYou should be looking at Rump kernels for this, specifically https://github.com/rumpkernel/rumprun-packages/tree/master/python https://github.com/rumpkernel/rumprun-packages/tree/master/p... directory.
- rmrfrmrf 11y agoIs the assumption here that scheduling, drivers, resource management etc. will all be on par with or better than full-fledged operating systems? Seems like what you might gain in being closer to the metal could easily be lost by wheels that have already been invented.
- nostrademons 11y agoI suspect it's that you won't need most of them in a typical application. The idea behind unikernels is that now that we have pervasive virtualization, most virtual machines are running only a single application anyway. So you have an instance type for memcached, one for postgres, one for Node, one for nginx, one for Redis, one for your JVM, etc. In many cases, these apps already include user-level scheduling and resource management, which often works at cross purposes with the OS. In other cases, they could run much faster if they implemented these specialized to their particular workload, and didn't need to run through an OS scheduler that also needs to support responsive desktop apps.
- sillysaurus3 11y agoThe reason this is a bad idea is because it restricts your ability to redesign a system. If you want to add another program, you can't do it by definition. Though I suppose the solution in that scenario is "Take it out of the unikernel, then." Still, if you rip out the fundamental abstractions of an OS, how would you run an application that relies on e.g. fork? Or any application that runs a shell command in any way? My understanding is probably falling short. I should read up more on unikernels.
- detaro 11y ago> Still, if you rip out the fundamental abstractions of an OS, how would you run an application that relies on e.g. fork? Or any application that runs a shell command in any way? You probably don't (at least not without removing/changing that part of the application). Unikernels explicitly do not aim at allowing to run a random preexisting application and trade that for the freedom from existing APIs and conventions.
- GPGPU 11y agoWe've been doing a similar thing with Erlang -- running it without an OS using Ling to run Erlang on Xen See http://erlangonxen.org http://erlangonxen.org (And see the demo here: http://zerg.erlangonxen.org http://zerg.erlangonxen.org )
- abrookewood 11y agoI've been following erlangonxen for a while, but things seem to be quiet. What are you guys working on? Any news?
- mempko 11y agoI just pooped my pants. How excite!
- AnbeSivam 11y agoHope it gets built for cross platform. I wish this could be run on top of smartos zones, instead of kvm or xen. http://dtrace.org/blogs/brendan/2013/01/11/virtualization-performance-zones-kvm-xen/ http://dtrace.org/blogs/brendan/2013/01/11/virtualization-pe... smartos zones also has a linux compatibilty layer ( lx branded zones ).