News for hackers. Stuff that matters.
Re:My VM is lighter (and safer) than your container (2017) by mrAssHat on Tuesday May 14, 2024 @07:59AM (#40354236)
Integrate that with kubernetes and I'm sold.
Re:My VM is lighter (and safer) than your container (2017) by nderjung on Tuesday May 14, 2024 @08:34AM (#40354541)
We ended up doing this over at https://unikraft.io :-)
Re:My VM is lighter (and safer) than your container (2017) by _joel on Tuesday May 14, 2024 @08:01AM (#40354246)
Re:My VM is lighter (and safer) than your container (2017) by d3m0t3p on Tuesday May 14, 2024 @08:03AM (#40354262)
I think it's from the AWS team, they made firecracker (micro VM) So it does exist.

Funnily that's what fly does: take your container uncompress it to a full micro VM and run it on their infra

Re:My VM is lighter (and safer) than your container (2017) by iamstan23 on Tuesday May 14, 2024 @08:11AM (#40354323)
fly.io uses Firecracker. Firecracker is Open Sourced with an Apache 2 license. It's faster than LightVM mentioned in the post.

Firecracker also has containerd support (https://github.com/firecracker-microvm/firecracker-container...).

There are a few ways to run Kubernetes with Firecracker, including FireKube.

Re:My VM is lighter (and safer) than your container (2017) by throwaway482945 on Tuesday May 14, 2024 @08:23AM (#40354432)
Is it really faster? I thought firecracker boot times were something like 100ms. LightVM claims 2.3ms?
Re:My VM is lighter (and safer) than your container (2017) by fhuici on Tuesday May 14, 2024 @08:54AM (#40354704)
Back when we did the paper, Firecracker wasn't mainstream so we ended up doing a (much hackier) version of a fast VMM by modifying's Xen's VMM; but yeah, a few millis was totally feasible back then, and still now (the evolution of that paper is Unikraft, a LF OSS project at www.unikraft.org).

(Cold) boot times are determined by a chain of components, including (1) the controller (eg, k8s/Borg), (2) the VMM (Firecracker, QEMU, Cloud Hypervisor), (3) the VM's OS (e.g., Linux, Windows, etc), (4) any initialization of processes, libs, etc and finally (5) the app itself.

With Unikraft we build extremely specialized VMs (unikernels) in order to minimize the overhead of (3) and (4). On KraftCloud, which leverages Unikraft/unikernels, we additionally use a custom controller to optimize (1) and Firecracker to optimize (2). What's left is (5), the app, which hopefully the developers can optimize if needed.

Re:My VM is lighter (and safer) than your container (2017) by tpetry on Tuesday May 14, 2024 @08:29AM (#40354490)
LightVM is stating a VM creation of 2.3ms while Firecracker states 125ms of time from VM creation to a working user space. So this comparing apples and oranges.
Re:My VM is lighter (and safer) than your container (2017) by fhuici on Tuesday May 14, 2024 @09:44AM (#40355178)
The 125ms is using Linux. Using a unikernel and tweaking Firecracker a bit (on KraftCloud) we can get, for example, 20 millis cold starts for NGINX, and have features on the way to reduce this further.
Re:My VM is lighter (and safer) than your container (2017) by imtringued on Tuesday May 14, 2024 @03:29PM (#40359135)
I know it's cool to talk about these insane numbers, but from what I can tell people have AWS lambdas that boot slower than this to the point where people send warmup calls just to be sure. What exactly warrants the ability to start a VM this quickly?
Re:My VM is lighter (and safer) than your container (2017) by crabbone on Tuesday May 14, 2024 @08:10AM (#40354315)
There are NVidia's Kata containers: https://docs.nvidia.com/datacenter/cloud-native/gpu-operator... . I'm not sure you need the physical GPUs to run them though. Most likely not.

I'm wondering though what value will Kubernetes add beside integrating with existing (presumably Kubernetes-based) infrastructure? At least, this is my understanding of the rationale for Kata containers. Other than that, it seems like it'd be just getting in the way...

Re:My VM is lighter (and safer) than your container (2017) by bjconlan on Tuesday May 14, 2024 @08:19AM (#40354379)
I believe this work originated at Intel as "clear containers" (which I believe started life from an acquisition (but could be mixing this up...my memory isn't what it used to be). Either way it's great they are being used like this and at Nvidia (I know Alibaba cloud also use this tech)
Re:My VM is lighter (and safer) than your container (2017) by fhuici on Tuesday May 14, 2024 @08:57AM (#40354735)
Yes, Kata started as clear containers. And yes, the main purpose is compatibility with containers -- though generally speaking, adding layers to the cloud stack never helps to make a deployment more efficient. On kraft.cloud we use Dockerfiles to specify app/filesystem, but then at deploy time automatically and transparently convert that to a specialized VM/unikernel for best performance.
Re:My VM is lighter (and safer) than your container (2017) by basemi on Tuesday May 14, 2024 @09:09AM (#40354851)