News for hackers. Stuff that matters.
Re:Truly elastic clouds with Zerg: OS-less Erlang on Xen by rwmj on Sunday March 24, 2013 @05:53AM (#5431584)
This. If you consider KVM, where an OS container is a regular process, then you can see there'd be no point in doing this for KVM since you might as well just run a Linux process. It's only "interesting" for Xen because the Xen hypervisor has a strangely architected and relatively heavyweight "process".
Re:Truly elastic clouds with Zerg: OS-less Erlang on Xen by edwintorok on Sunday March 24, 2013 @06:13AM (#5431621)
Agreed, if you are in control of the host OS then you might as well just run some unprivileged processes in some lightweight containers (LXC, or just user/network namespaces + chroot).

There are two situations where running applications directly on the hypervisor might be beneficial though:

- If you have to run multiple untrusted (and possibly malicious) tasks on same host. In this case virtualization provides better isolation/security than just containers or processes (which would be vulnerable to kernel exploits, or other ways of gaining root inside a container allows to take control of the host)

- If the hypervisor is fixed and you can't touch it (i.e. Amazon EC2). In this case running applications directly on the hypervisor might eliminate some of the virtualization overhead.

Re:Truly elastic clouds with Zerg: OS-less Erlang on Xen by rwmj on Sunday March 24, 2013 @06:40AM (#5431660)
For the first case, I'd rather use something like Google Native Client.

The attack surface of a VM is rather large, particularly when you consider the dozens of emulated devices and instructions. For example, there was a notable hole in SCSI emulation recently discovered which let any guest overwrite any part of a host's disk (by sending some obscure SCSI commands which weren't being filtered by the virtualized device properly).

Re:Truly elastic clouds with Zerg: OS-less Erlang on Xen by e12e on Sunday March 24, 2013 @12:00PM (#5432406)
> For the first case, I'd rather use something like Google Native Client.

Wait, you're saying Google NaCl could be going the way of Java -- being used for server side containers, rather than client side apps? (I don't really see why you'd want that over using a single process(tree)/binary compiled from go...).

Re:Truly elastic clouds with Zerg: OS-less Erlang on Xen by e12e on Sunday March 24, 2013 @12:20PM (#5432476)
Oh, I see. Zerovm[1,2] is built on top of NaCl, and does indeed appear to be a "javaosification" of NaCl -- with no bytecode, no dedicated language, but a sandbox/lockdown of native code.

[1] https://news.ycombinator.com/item?id=3746222 [2] http://zerovm.org