Skip to content

feat: give the Firecracker kernel 9p, for fctl's package caches - #15

Merged
kalaspuff merged 1 commit into
mainfrom
fctl/802-firecracker-hosts-package-caches-builds
Nov 6, 2026
Merged

kalaspuff merged 1 commit into
mainfrom
fctl/802-firecracker-hosts-package-caches-builds

Conversation

@fctl-sh

@fctl-sh fctl-sh Bot commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

fctl's Firecracker sandboxes get no package caches, because Firecracker has no virtio-fs or virtio-9p and the VMs share no filesystem with the host. fctl's host will serve a project's caches over 9P2000.L on each VM's vsock, and fctl-agent in the VM mounts that connection with the kernel's own 9p client (trans=fd, as WSL2 does over Hyper-V sockets). This adds 9p and its fd transport to kernel/fctl.config, as 6.18.59-1 (the same Linux release, built differently), and kernel/check.sh now checks both: 9p in /proc/filesystems, and a mount over /dev/null that fails without the kernel saying it can't find the transport.

I built this kernel for aarch64 and booted it in Firecracker nested in a QEMU VM: kernel/check.sh passes with it and reports no 9p with 6.18.59, and two sandboxes of one project share their caches through it, locks included, with fctl's change below. The Kernel workflow's run on this pull request builds and boots both architectures.

The fctl pull request pins sandbox-kernel:6.18.59-1, so this one has to merge first, and the Kernel workflow has to publish the tag, before that one can.

Worth confirming

  • Decision: the version is 6.18.59-1 rather than a newer Linux release, so that this change is only the configuration; the README keeps 6.18.59 in its table as the tag fctl pinned before.

Refs hyperstructure/fctl#345

fctl session


Note

Low risk. It only adds kernel options and a boot check, and publishes a new kernel tag that nothing uses until an fctl release pins it; the existing 6.18.59 tag stays as it is.

What it does. Adds 9p with its fd transport to the Firecracker guest kernel, so that fctl can mount a project's package caches over the VM's vsock. kernel/VERSION becomes 6.18.59-1, so the Kernel workflow publishes a new tag instead of changing the published one. kernel/check.sh now also boots the kernel and checks that 9p and its fd transport are there, and AGENTS.md and README.md describe the new tag.

New kernel tag. Merging publishes sandbox-kernel:6.18.59-1, and moves the 6.18 tag to it. fctl has to pin 6.18.59-1 before its hosts get 9p.

fctl review's first look at 3db7282 · 5 files, +30 −11 · Review agent settings

fctl's Firecracker sandboxes got no package caches: Firecracker has no
virtio-fs or virtio-9p, so the VMs share no filesystem with the host.
fctl's host now serves a project's caches over 9P2000.L on each VM's
vsock, and fctl-agent mounts that connection with the kernel's 9p client
(trans=fd). The kernel gets 9p and its fd transport, as 6.18.59-1, and
kernel/check.sh checks both.

Refs hyperstructure/fctl#345
@fctl-sh
fctl-sh Bot requested a review from kalaspuff as a code owner November 6, 2026 19:03
fctl-sh Bot added a commit to hyperstructure/fctl that referenced this pull request Nov 6, 2026
hyperstructure/sandbox#15 publishes it; the VMs mount their project's
package caches with its 9p client.
@kalaspuff
kalaspuff merged commit 4e00425 into main Nov 6, 2026
9 checks passed
@kalaspuff
kalaspuff deleted the fctl/802-firecracker-hosts-package-caches-builds branch November 6, 2026 21:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant