frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Show HN: K7d – Fork live Kubernetes clusters in <1s –> GRPO-train AI on infra

https://github.com/katakate/k7d
2•gbxk•35m ago
Hey HN, Gary here.

Today I want to present k7d which is an Apache 2.0, tight Rust VMM + shim enabling something not possible before: fast forking of live running virtualized multi-node k8s clusters with surviving of in-flight connections.

A 3-VM nodes K8s cluster gets forked in 105ms, and a 50x fork of a 3-VM cluster in 4.1s on a 64GB RAM box.

I have two goals here:

1) enable large scale GRPO/RL training of AI on Kubernetes infra, which IMO is a great playground for reasoning training, besides training a capability that's actually useful. And this requires not only fast episode reset (as you need tens of thousand of multi-turn runs during RL post-training) but also greatly benefits from fast forking so you can do parallel branch exploration, rollback, pruning during RL training. Faithful forks also give you byte-identical starts for the G of GRPO, which gives variance reduction across the group.

2) enable <3s VM snapshot pause/resume/fork of sandboxes with Docker-in-VM, for my other project K7 which provides self-hosted infra for VM sandboxes at scale, with a user-friendly CLI / API / Python SDK, and Kubernetes native.

Besides that, k7d is equipped with:

- A Tree-shaped API for resource management: as you can guess when you fork, even with optimized CoW-page-sharing, you want to properly manage your resources (memory + disk) and hence you need to know how to evict while things run. So I have tree-shaped logic to keep track of how children share pages with parents, and let your AI agent protect a promising tree branch, evict an unpromising one, or let LRU-ish logic auto-evict when resources get tight. This tree-based logic applies both to single VM sandboxes, and to multi-VM clusters on their own Linux bridge.

- Formal verification: of course not all of it, but selected critical subparts of k7d are formally verified: I use Kani for memory arithmetics in the unsafe paths, and Aeneas (with Lean backend) to formally prove the tree-based logic explained above so that eviction never frees a page referenced by a live descendent.

- Latencies as CI: I rigorously keep track of latency for most important operations which remain checked/enforced via a suite of integration tests.

I really tried hard not building my own VMM and first ended up building another backend for K7 than my initial "kfd" (Kata + Firecracker + Devmapper-snapshotter over LVM thin-pool), which I called "kql" for Kata + Qemu + Longhorn. If you know this stack you'll guess it right away: Longhorn is great for cross-node replication so I used it to have my snapshots replicated across nodes, so "snapshot resume" always works / HA. Qemu here is because Longhorn's block storage requirements was incompatible with Firecracker who wants Devmapper-snapshotter, a backend for which I would not want to build myself the cross-node replication logic.

But this "kql" backend yielded forks in 45s due to how Longhorn is built, which was too slow for the users who asked me to enable fast forking for K7.

So this is what pushed me towards k7d, named as "k7's daemon", its own native VMM and shim, replacing both Firecracker/Qemu and Kata at once.

This yields VM sandboxes in K7 which you can fork in under 2-3s, and most of this latency is kubelet overhead, as at the VMM level the warm-fork is actually 5ms.

One security trade-off: the daemon has to be shared across branches of a same tree: that's by design. So you lose Firecracker's Jailer per VM. But I could re-build a similar Jailer per tree, which would be sufficient when a tree isn't shared across tenants, such as when you use branching for RL training. That's just optimizing for something different than what Firecracker does.

The codebase is intentionally tight enough to be audited (<30k LOC for VMM + shim) and I linked a deep-dive blogpost series at the top of the README.

I hope you guys will enjoy it and I'd love contributors and critics.

Thx!

CachyOS Performance vs. Other Linux Operating Systems on a $46k USD Workstation

https://www.phoronix.com/review/cachyos-hp-z4g6i
1•rbanffy•1m ago•0 comments

typ.ing

https://typ.ing/
1•bookofjoe•1m ago•0 comments

Ink Traps and Pals

https://tosche.net/blog/ink-traps-and-pals
1•colinprince•1m ago•0 comments

AI detectors are a bad idea

https://blog.keyvan.net/p/ai-detectors-are-a-bad-idea
1•k1m•3m ago•0 comments

I made a secure way for agents to request secrets from you using HyperDHT

1•smashah•5m ago•0 comments

Comprehension debt: what AI-written code costs

https://fathohm.dev/comprehension-debt
2•ashrivastavaa•6m ago•0 comments

A live list of bounties whose sponsors explicitly allow AI agents

https://files.catbox.moe/j3w39k.html
1•gammaagent•7m ago•0 comments

Show HN: Go CLI for website health checks, zero dependencies

https://github.com/atillalab/site-health
1•mehmetkose•8m ago•0 comments

Google plans to stop making Pixel products in China in 2027

https://www.semafor.com/article/08/18/2026/us-tech-firms-leave-china-amid-decoupling
2•ilamont•8m ago•0 comments

Lovable Migrated to TanStack Start

https://lovable.dev/blog/how-we-migrated-lovable-dev-away-from-nextjs
1•plurby•8m ago•0 comments

America Wants to Make Its Own Humanoid Robots. That Won't Be Easy

https://www.nytimes.com/2026/08/13/business/humanoid-robot-us-china.html
1•lxm•8m ago•0 comments

Show HN: Phone-harness – let your agent control your phone

https://github.com/ShawnPana/phone-harness
1•shawnpana•13m ago•0 comments

What Guidance Do We Give Junior Colleagues and Peers on Use of AI?

https://hedgehoglibrarian.com/2026/05/04/what-guidance-do-we-give-junior-colleagues-peers-on-use-...
1•adrianhoward•13m ago•0 comments

PostLore changed my product stages distribution as a solo founder

https://postlore.com
1•rgyams•14m ago•1 comments

Show HN: Tabtwinsy – the same tabs in every browser window

https://tynktank.com/tabtwinsy.html
1•delbertty•15m ago•0 comments

Finger: A Protocol from 1977 Is Still Delivering Malware in 2026

https://artemissecurity.com/attack-stories/finger-protocol-python-rat-delivery/
9•jonathandeamer•16m ago•1 comments

Show HN: ArtifactSweep – free disk space from project artifacts(CLI and desktop)

https://kksrini89.github.io/artifactsweep/
1•SrinivasanKK•17m ago•0 comments

Star Citizen Official Livestream Goes Off the Rails

https://twistedvoxel.com/star-citizen-livestream-problematic-demo-tension-between-developers/
3•qsi•17m ago•0 comments

Show HN: TurnKeeper – Fair, explainable team rotations for Slack (no AI)

https://getturnkeeper.com/
1•adriankurz•19m ago•0 comments

Code-native generation of highly programmable 3D assets (2026)

https://arxiv.org/abs/2607.22738
2•baigy•19m ago•1 comments

I used to be excited about new tech, but I rarely am anymore

https://82mhz.net/posts/2026/08/i-used-to-be-excited-about-new-tech-but-i-rarely-am-anymore/
24•wrxd•20m ago•29 comments

Show HN: Termaxa – my agent gate passed its security rig, failed a two-user test

https://github.com/termaxa/termaxa
1•devdoc83•20m ago•1 comments

Ask HN: Science Fiction. Some AI as world leader. Would you vote it?

1•ewjloop•22m ago•1 comments

The National Park Service Is Using Flock. Rangers Are Pissed

https://www.404media.co/the-national-park-service-is-using-flock-rangers-are-pissed/
4•pavel_lishin•23m ago•0 comments

Show HN: Tracelint – a linter for AI agent traces, no LLM judge

https://github.com/AshwinUgale/tracelint
1•Ashwin1121•24m ago•0 comments

PgDog vs. RDS Proxy

https://pgdog.dev/blog/pgdog-vs-rds-proxy
1•levkk•24m ago•0 comments

The coolest anti-surveillance tools at Defcon [video]

https://www.youtube.com/watch?v=-2uAsJ5EPAw
6•neom•25m ago•0 comments

Show HN: I benchmarked LLMs on predicting knife steel properties

https://github.com/Steel-predictor-project/steel-llm-eval
1•p-s-v•25m ago•0 comments

The Wrong Kind of American

https://www.theatlantic.com/magazine/2026/10/trump-white-house-transgender-mike-pence/688284/
4•_tk_•25m ago•0 comments

How to code without AI [video]

https://www.youtube.com/watch?v=aFMVGx1Gsoc
1•indigodaddy•26m ago•0 comments