Repository navigation
Releases
sandswap v0.1.1
sandswap v0.1.1
Offline bare-metal release: extract and deploy — no Go/Rust toolchain
required (all user-space binaries are static; the kernel and initramfs are
self-contained).
- commit: 0f8fbe5
- built: 2026-11-23T01:19:02Z
- kernel: CONFIG_IPV6=y
- kernel rev: kernel-7.2.8-minimize-userns-tun-kvm-debugfs-modules-ikconfig-netfilter-kmalloc-partition-kexec-ftrace-umip-legacyvsys-none-connector-audit-modifyldt-unixdiag-no-afalg-rng-hardening
- kernel .config sha256: 17b82f02d4c1a831b7bf67bf9729d94b6f26cf8e30e333c19cc38e59a8be3727
- kernel patch-set sha256: b9397604d18be382b719bbc9075de5d3168295abfadebb274155881eab72763c
- sha256 (sandswap-v0.1.1-linux-amd64.tar.gz): see SHA256SUMS
What's new since v0.1.0
- OCI image import as a template source: template-tool import
--name N --version V [--out DIR] [--push REGISTRY/REPO] converts a
local OCI image archive (docker save ≥25 / skopeo / buildx / podman
oci-archive) or a plain rootfs tar (docker export, minirootfs) into a
validated Sandswap template — written as a local tree and/or pushed
straight to an OCI registry. No gateway, no running stack required. - OverlayFS read-only fix: read-only is now passed as a mount flag only;
kernels with older OverlayFS parsers rejected the previous "ro" inside
the mount data option (read-only volume mounts failed there). - systemd device-policy hardening on the sandlot units: explicit
DeviceAllow list for the VM devices under ProtectClock,
DevicePolicy=closed, ConditionPathExists guards (/dev/kvm,
/dev/vhost-vsock) on the instance template, and tun + vhost_vsock
boot persistence in host setup. security/verify-host-security.sh
asserts the policy statically and effectively (check 13c). - Uninstall/cleanup correctness: drop-ins, guest TCB and slices removed
item-wise with operator hooks preserved; self-verification extended to
unit files, drop-in dirs, installed-lib artifacts and mounts; bounded
umount retry for the volumes self-bind; live harness pidfiles are
never deleted (stale-only); /dev/vhost-vsock ownership restored after
the k8s vhost_vsock reload; the inet sandswap_baseline nft table is on
every teardown path. - Docs: isolation-and-swap rewritten around the four isolation layers;
templates documentation covers the OCI import path; tinyVM rename
across docs and configs (see Upgrade notes).
Quick start
tar xzf sandswap-v0.1.1-linux-amd64.tar.gz && cd sandswap-v0.1.1-linux-amd64
sudo bash deploy/baremetal/deploy-single-node.sh --skip-build
Then watch live AI agents work against the deployment (4 agents, one
command — creates the agents/sandfs, prints every LLM↔sandbox interaction):
sudo env DEEPSEEK_API_KEY=sk-... bash deploy/baremetal/verify-eino.sh --agent-count 4
Services run as dedicated non-root identities (sandlot 985 / sandswap 986,
auto-created). Requirements: KVM (/dev/kvm), root, curl/python3. The
verification step needs an LLM API key (DEEPSEEK_API_KEY / OPENAI_API_KEY /
GOOGLE_API_KEY) — the deployment itself does not.
Upgrade notes
- BREAKING config rename: the sandlot YAML section "microvm:" is now
"tinyvm:" (one-to-one: every key inside the section kept its name; no CLI
flag, binary, HTTP/MCP API, protocol field, or metric name changed).
Configs parse STRICTLY, so an older deployed /etc/sandswap/sandlot.yaml
makes the new sandlot (and boxout, which reads the same file) fail at
startup with a "field microvm not found" parse error rather than silently
running on defaults. Fix: re-run the deployer (it regenerates the config
with "tinyvm:"), or hand-rename the top-level "microvm:" line. Ops
automation referencing dotted paths (microvm.vmm_uid, microvm.warden_log,
...) must switch to the "tinyvm." prefix (sandlot hot-reload log lines now
emit tinyvm.* field names); k8s deployments get the same rename in
deploy/k8s/configmaps.yaml. Full write-up: the Upgrading section of
docs/operations/release.md.
Contents
- deploy/baremetal: one-click deploys (embedded + single-node systemd),
cluster deploys and single-host simulations, ops tooling, uninstall/cleanup - deploy/udev: vsock device lockdown rule (pinned to the sandlot identity)
- e2e: benchmark scripts (latency-benchmark-aiagent / -unmount / -load /
-alloc-sweep) + the shared harness (common.sh, pin.sh) — reproduce
docs/benchmark from this package, no toolchain - common/sh: shared runtime + stack layer (deploy + e2e + sandctl)
- security: operational vsockguard/host-security scripts (audit material is
not shipped) - docs: configuration, deployment, integration, storage contract
- output: static binaries (gateway/sandlot/sandvmm/sandns/boxout/sandctl/...),
IPv6-enabled guest kernel, initramfs, rootfs templates (busybox + ubuntu),
example agents, vendored etcd
Uninstall
sudo bash deploy/baremetal/uninstall.sh
Removes services, binaries, configs, network setup, and BPF attachments.
DATA WARNING: /var/lib/sandswap (agent volumes) is deleted by default; pass
the --keep-data flag to keep it. The service identities stay (pinned uid/gid must
remain stable; a redeploy reuses them). See docs/operations/release.md for
the full breakdown and the lighter between-deploys cleanup.sh.
Notes
- Shared-storage deployments (NFS and every numeric-credential distributed
fs): all nodes MUST use identical uid/gid numbers for the service
identities — see docs/operations/storage.md for the full storage contract
and support matrix. - vsockguard.bpf.o is compiled against the build kernel's BTF; attaching is
best-effort and warns on kernels where it cannot load. - Multi-host cluster deploys are local-only: the control host builds a
self-contained stage dir and prints per-node install commands; shipping it
to the target hosts (Ansible, rsync, or by hand) is the operator's job.
Contributors
Thanks to everyone who contributed to this release:
sandswap v0.1.0
sandswap v0.1.0
Offline bare-metal release: extract and deploy — no Go/Rust toolchain
required (all user-space binaries are static; the kernel and initramfs are
self-contained).
- commit: 22ead70
- built: 2026-11-06T09:19:28Z
- kernel: CONFIG_IPV6=y
- kernel rev: kernel-7.2.8-minimize-userns-tun-kvm-debugfs-modules-ikconfig-netfilter-kmalloc-partition-kexec-ftrace-umip-legacyvsys-none-connector-audit-modifyldt-unixdiag-no-afalg-rng-hardening
- kernel .config sha256: 17b82f02d4c1a831b7bf67bf9729d94b6f26cf8e30e333c19cc38e59a8be3727
- kernel patch-set sha256: b9397604d18be382b719bbc9075de5d3168295abfadebb274155881eab72763c
- sha256 (sandswap-v0.1.0-linux-amd64.tar.gz): see SHA256SUMS
Quick start
tar xzf sandswap-v0.1.0-linux-amd64.tar.gz && cd sandswap-v0.1.0-linux-amd64
sudo bash deploy/baremetal/deploy-single-node.sh --skip-build
Then watch live AI agents work against the deployment (4 agents, one
command — creates the agents/sandfs, prints every LLM↔sandbox interaction):
sudo env DEEPSEEK_API_KEY=sk-... bash deploy/baremetal/verify-eino.sh --agent-count 4
Services run as dedicated non-root identities (sandlot 985 / sandswap 986,
auto-created). Requirements: KVM (/dev/kvm), root, curl/python3. The
verification step needs an LLM API key (DEEPSEEK_API_KEY / OPENAI_API_KEY /
GOOGLE_API_KEY) — the deployment itself does not.
Contents
- deploy/baremetal: one-click deploys (embedded + single-node systemd),
cluster deploys and single-host simulations, ops tooling, uninstall/cleanup - deploy/udev: vsock device lockdown rule (pinned to the sandlot identity)
- e2e: benchmark scripts (latency-benchmark-aiagent / -unmount / -load /
-alloc-sweep) + the shared harness (common.sh, pin.sh) — reproduce
docs/benchmark from this package, no toolchain - common/sh: shared runtime + stack layer (deploy + e2e + sandctl)
- security: operational vsockguard/host-security scripts (audit material is
not shipped) - docs: configuration, deployment, integration, storage contract
- output: static binaries (gateway/sandlot/sandvmm/sandns/boxout/sandctl/...),
IPv6-enabled guest kernel, initramfs, rootfs templates (busybox + ubuntu),
example agents, vendored etcd
Uninstall
sudo bash deploy/baremetal/uninstall.sh
Removes services, binaries, configs, network setup, and BPF attachments.
DATA WARNING: /var/lib/sandswap (agent volumes) is deleted by default; pass
the --keep-data flag to keep it. The service identities stay (pinned uid/gid must
remain stable; a redeploy reuses them). See docs/operations/release.md for
the full breakdown and the lighter between-deploys cleanup.sh.
Notes
- Shared-storage deployments (NFS and every numeric-credential distributed
fs): all nodes MUST use identical uid/gid numbers for the service
identities — see docs/operations/storage.md for the full storage contract
and support matrix. - vsockguard.bpf.o is compiled against the build kernel's BTF; attaching is
best-effort and warns on kernels where it cannot load. - Real multi-host cluster deploys (deploy-cluster-*-gw.sh) additionally need
SSH access to the target nodes.