News for hackers. Stuff that matters.
Re:Building a Linux Container Runtime from Scratch by Joker_vD on Thursday March 27, 2025 @07:46AM (#43492596)
No, I mean, what do the Edera developers do differently, in order to provide more robust foundation with this new container runtime called Styrolite? They still use Linux namespaces, as far as I can tell from TFA.
Re:Building a Linux Container Runtime from Scratch by denhamparry on Thursday March 27, 2025 @08:25AM (#43492855)
Edera developer here, we use Styrolite to run containers with Edera Protect. Edera Protect creates Zones to isolate processes from other Zones so that if someone were to break out of a container, they'd only see the zone processes. Not the host operating system or the hardware on the machine. The key difference here between us and other isolation implementations is that there is no performance degradation, you don't have to rebuild your container images, and that we don't require specific hardware (e.g. you can run Edera Protect on bare metal or on public cloud instances and everything else in-between).
Re:Building a Linux Container Runtime from Scratch by xmodem on Thursday March 27, 2025 @09:54AM (#43493690)
What underlying primitives are you relying on to provide isolation, if not linux namespaces?

How does your approach compare to Google's gVisor?

Re:Building a Linux Container Runtime from Scratch by sys_call on Thursday March 27, 2025 @10:34AM (#43494093)
gVisor emulates a kernel in userspace, providing some isolation but still relying on a shared host kernel. The recent Nvidia GPU container toolkit vulnerability was able to privilege escalate and container escape to the host because of a shared inode.

Styrolite runs containers in a fully isolated virtual machine guest with its own, non-shared kernel, isolated from the host kernel. Styrolite doesn't run a userspace kernel that traps syscalls; it runs a type 1 hypervisor for better performance and security. You can read more in our whitepaper: http://arxiv.org/abs/2501.04580

Re:Building a Linux Container Runtime from Scratch by 0x1ceb00da on Thursday March 27, 2025 @12:18PM (#43495152)
So it's a lightweight way of running docker images inside a virtual machine?
Re:Building a Linux Container Runtime from Scratch by sys_call on Thursday March 27, 2025 @04:18PM (#43497707)
Yes, precisely. This also provides container operators with the benefits of a hypervisor, like memory ballooning, and dynamically allocating CPU and memory to workloads, improving resource utilization and the current node overprovisioning patterns.
Re:Building a Linux Container Runtime from Scratch by xmodem on Thursday March 27, 2025 @11:36AM (#43494749)
Thanks for the explanation. So you are using virtualisation-based techniques. I had incorrectly inferred from other comments that you were not.

I skimmed the paper and it suggests your hypervisor can work without CPU-based virtualisation support - that's pretty neat.

Many cloud environments do not have support for nested virtualisation extensions available (and also it tends to suck, so you shouldn't use it for production even if it is available). So there aren't many good options for running containers from different security domains on the same cloud instance. gVisor has been my go-to for that up until now. I will be sure to give this a shot!

Re:Building a Linux Container Runtime from Scratch by klysm on Thursday March 27, 2025 @02:21PM (#43496428)
So it’s a VM?
Re:Building a Linux Container Runtime from Scratch by asmor on Thursday March 27, 2025 @02:08PM (#43496265)
It's Xen, and they even explain why it's not KVM here: https://github.com/edera-dev/krata/blob/main/FAQ.md
Re:Building a Linux Container Runtime from Scratch by znpy on Thursday March 27, 2025 @09:10AM (#43493239)
> Edera Protect creates Zones to isolate processes from other Zones

What do you mean by "zone" exactly?

Re:Building a Linux Container Runtime from Scratch by sys_call on Thursday March 27, 2025 @10:43AM (#43494183)
A zone is jargon for a virtual machine guest environment (an homage to Solaris Zones). Styrolite and Edera runs containers inside virtual machine guests for improved isolation and resource management.
Re:Building a Linux Container Runtime from Scratch by klysm on Thursday March 27, 2025 @02:21PM (#43496431)
How exactly is this an improvement over VMs?
Re:Building a Linux Container Runtime from Scratch by sys_call on Thursday March 27, 2025 @04:19PM (#43497717)
We run unmodified containers in a VM guest environment, so you get the developer ergonomics of containers with the security and hardware controls of a VMM.
Re:Building a Linux Container Runtime from Scratch by znpy on Thursday March 27, 2025 @06:18PM (#43498839)
> an homage to Solaris Zones

i asked specifically because the word "zones" reminded me of solaris zones :)

> Styrolite and Edera runs containers inside virtual machine guests for improved isolation and resource management.

do your have your own vmm or is it firecracker with make up and a wig?