spore icon

spore

A small Linux virtual machine supervisor written in MFL, on KVM, with a C bridge for the system calls.

A low-level learning project, not a product. No security claim: it is not a proven isolation boundary. “spore” is a working name.

cell shares the host’s kernel. spore brings its own.

What it does today

One guest, one vCPU

x86-64 Linux with a 16550 serial console on stdin and stdout.

Virtio disk

One block device, read-write or read-only.

Network ends in spore by default

ARP, ping, a UDP echo and a reset for TCP. No socket is opened.

TCP to listed targets

TCP written in MFL carries connections to the destinations you list.

Public destinations only

Opt-in: private and other special addresses are blocked in spore, and again by an outer script in a network namespace.

Names you list

Opt-in DNS: spore writes its own query to your resolver and its own answer to the guest, and removes inward addresses.

Made for agents

spore guide and spore help-json, semantic exit codes, one typed JSON error line. Follows the output and guide specs.

Limits: no DNS over TCP, IPv6, incoming connections or UDP forwarding. A DNS wildcard lets a guest send data out inside names. The jail is not a sandbox, and nothing was tested against a hostile guest.

Use it

./build.sh
./build/spore guide --human          # the manual
./build/spore vmlinuz --initrd initramfs.gz --cmdline 'console=ttyS0 reboot=k panic=-1' \
    --expect-file expected.txt --report report.json
# with listed names and public destinations only:
#   --net on --net-public on --dns 9.9.9.9 --dns-name example.com
# or one listed target:  --net on --tcp-allow 192.0.2.1:9000=127.0.0.1:8000

Success needs --expect-file: a reboot alone exits 98.

What was checked, and where

2026-12-01 (a local container on one laptop, machin 0.150.0): a written list of 260 commands on the final build, with stock Ubuntu Linux 6.8 serial, disk, network and Docker checks, offline blocking and DNS tests, command-line spec checks and 88 planted bugs and leaks. 257 passed the first time; the other three passed after fixing a test race, splitting a batch that was too long, and rerunning one check with a tight time limit.

Real network, small: behind an extra outer rule, the guest looked up one listed name and fetched a file over plain HTTP, 5 of 5 unchanged; an unlisted name was refused and not sent. HTTPS was not tried.

No security claim and no speed result. Power loss was not tested. All steps and what they need: tests/README.md.

Build and test

Linux x86-64, machin 0.150.0 or later, a C compiler, as, ld, objcopy, nm, Python 3. The tests need /dev/kvm: run them in a disposable environment.

./build.sh
tests/test.py build frames    # 69 cases
tests/cli/spec.py build static