Repository navigation
feat: give the Firecracker kernel 9p, for fctl's package caches - #15
Merged
Merged
Conversation
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 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.
This was referenced Nov 6, 2026
kalaspuff
approved these changes
Nov 6, 2026
kalaspuff
deleted the
fctl/802-firecracker-hosts-package-caches-builds
branch
November 6, 2026 21:58
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 tokernel/fctl.config, as6.18.59-1(the same Linux release, built differently), andkernel/check.shnow checks both: 9p in/proc/filesystems, and a mount over/dev/nullthat 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.shpasses with it and reportsno 9pwith6.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
6.18.59-1rather than a newer Linux release, so that this change is only the configuration; the README keeps6.18.59in 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.59tag 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/VERSIONbecomes6.18.59-1, so the Kernel workflow publishes a new tag instead of changing the published one.kernel/check.shnow 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 the6.18tag to it. fctl has to pin6.18.59-1before its hosts get 9p.fctl review's first look at
3db7282· 5 files, +30 −11 · Review agent settings