🗓️ Nov 18, 2026⏱️ 5 min read

Escaping the Cloud CI Tax: Sub-10-Second Ephemeral Build Runners with Proxmox VE and ZFS Snapshots

How ZFS Copy-on-Write warm snapshots and Proxmox VE 9 hypervisor firewall rules deliver clean-slate ephemeral CI runners in under 8 seconds with zero cloud per-minute billing.

🎙️ Listen to ArticleREADY
AI Audio Synthesis Narrator
Share Post:

“Cloud CI pricing models are designed around a cruel trade-off: pay a per-minute metering tax and wait two minutes per job for an ephemeral cloud VM to re-download gigabytes of caches, or run a persistent local runner that slowly accumulates state pollution and lateral-movement risk. With ZFS Copy-on-Write snapshots on Proxmox VE, that trade-off disappears.”

1. The Hidden Physics of the Cloud CI Tax

When your engineering workflow scales to five parallel autonomous builder slots opening and verifying pull requests around the clock, CI/CD stops being a background utility and becomes your primary critical-path bottleneck.

If you analyze where a 4-minute hosted GitHub Actions run actually spends its wall-clock time, the inefficiency is glaring:

  1. 60–110 Seconds of Network Cache Hydration: Even with remote cache tarballs, a freshly booted cloud runner spends over half its lifecycle pulling multi-gigabyte Docker layers, Playwright Chromium binaries, Node node_modules, and Rust/Kotlin build artifacts across a shared virtual NIC.
  2. Quota Exhaustion Blocking Autonomous Merges: Hosted runner minute allocations evaporate under parallel multi-repo verification waves (bin/verify + E2E browser suites), stalling hostctl land merge gates until billing cycles reset or per-minute overages are approved.
  3. The Stateful Self-Hosted Runner Trap: Pointing a standard persistent GitHub Actions runner daemon at a local Linux box solves speed and cost, but destroys isolation—leftover /tmp sockets, mutated Docker daemon state, or a poisoned dependency in one PR can compromise the host and pivot onto your internal LAN.

2. The Architecture: ZFS @warm-golden CoW Rollbacks + PVE Host Firewalling

On our sovereign Proxmox VE 9 hypervisor (.21), we engineered dedicated ephemeral CI runner virtual machines (VM 121 and VM 122) backed by local NVMe ZFS volumes.

Instead of choosing between “clean-slate ephemeral” and “pre-warmed local cache,” ZFS Copy-on-Write (CoW) gives us both simultaneously:

  • We pre-populate a golden VM image with all heavy toolchains (Docker base images, Playwright browsers, mise, Node, Python, Android SDK) and capture an immutable ZFS snapshot: rpool/data/vm-121-disk-0@warm-golden.
  • The runner inside the VM runs in single-job --ephemeral mode. The instant a single PR verification job completes, the runner unregisters and halts the guest OS.
  • A host-side reconciliation poller executes qm rollback 121 warm-golden and boots the VM. Because ZFS rollback simply discards the newly allocated CoW dirty blocks and resets the Merkle tree root pointer, the entire 64GB virtual disk rewinds to a bit-for-bit pristine state in under 8 seconds with zero network download.
flowchart TB
    subgraph Lifecycle["1. Deterministic Ephemeral Job Lifecycle (Sub-8s Reset)"]
        Boot["1. VM 121 / 122 Boots from @warm-golden<br/>(Pre-Warmed NVMe Caches · JIT Ephemeral Token)"]
        Run["2. Single PR Job Executes (--ephemeral)<br/>(Dirty Writes Allocated to Temporary ZFS CoW Blocks)"]
        Halt["3. Job Exits -> Guest Halts -> Host Runs qm rollback<br/>(All Dirty CoW Blocks Freed in <2s · Zero State Leak)"]
        Boot --> Run --> Halt --> Boot
    end

    subgraph Isolation["2. Proxmox VE Hypervisor Firewall (Host Tap Boundary)"]
        Tap["Host Bridge Tap Interface (tap121i0 / tap122i0)<br/>Enforced Outside Guest Kernel"]
        Rules["PVE Firewall Ruleset<br/>DROP: All RFC1918 LAN (.11 Vault, .15-.19 Talos, .21 PVE)<br/>ALLOW: Outbound TCP 443 (GitHub & Public Registries)"]
        Run --> Tap --> Rules
    end

3. Hypervisor-Level Micro-Segmentation & ZFS ARC Tuning

To guarantee that an untrusted PR dependency running inside VM 121 or VM 122 can never probe our sovereign datacenter fleet, we enforce network isolation at the Proxmox VE Hypervisor Firewall (outside the guest VM’s kernel):

# /etc/pve/firewall/121.fw — Enforced on Proxmox Host Tap Interface (Outside Guest OS)
[OPTIONS]
enable: 1
policy_in: DROP
policy_out: DROP

[RULES]
# Block lateral movement to all internal RFC1918 sovereign fleet subnets
OUT DROP -dest 192.168.0.0/16 -log nolog
OUT DROP -dest 10.0.0.0/8 -log nolog
OUT DROP -dest 172.16.0.0/12 -log nolog

# Allow outbound DNS and HTTPS (TCP 443) for GitHub Actions control plane & registries
OUT ACCEPT -p udp -dport 53
OUT ACCEPT -p tcp -dport 443

Because even a root user inside the guest VM cannot modify /etc/pve/firewall/121.fw on the Proxmox hypervisor, the runner is physically caged in a one-way outbound DMZ. Paired with a bounded zfs_arc_max kernel parameter so ZFS cache never starves KVM guest RAM during concurrent dual-VM Playwright runs, the pipeline runs with rock-solid determinism.


4. Production Impact & First-Principles Takeaway

CI/CD Performance & Security Metric Cloud Hosted Ephemeral Runner (Before) Proxmox VE + ZFS Warm Snapshot Runner (After)
Clean-Slate Provisioning & Cache Time 95s–180s per run <8 seconds (qm rollback on NVMe ZFS)
Per-Minute Cloud CI Billing Tax Metered quota (blocks parallel waves) $0 marginal cost (100% sovereign compute)
Cross-Run Disk Contamination Risk Zero (new VM) / High (persistent host) Zero (cryptographic ZFS block rewind)
Internal Datacenter Lateral Reach N/A (external) / Full LAN (self-hosted) 0 packets (blocked at PVE host tap bridge)

Stop paying cloud landlords to re-download the same container layers over the Internet. A single ZFS Copy-on-Write pointer rewind on a local Proxmox VE hypervisor accomplishes in 8 seconds—and for $0—what cloud CI providers take two minutes of network I/O and metered billing to approximate.


Architecture and decisions: mine. Debugging sessions at odd hours: mine. AI assistance: structure, syntax, first draft. — Sachin

EDGE RAG DEEP-LINK

🤖 Interrogate This Field Note in Digital Twin

Open in /twin ↗

Click a prompt below to immediately stream an architectural analysis from Virtual Sachin's RAG cognitive twin:

SKS

Sachin Kumar Sharma

Director (Cloud & Infrastructure Architecture) | Principal Agentic AI Architect | 20+ Yrs Exp

Architecting resilient multi-cloud enterprise landing zones, SDN overlay fabrics, DevSecFinOps automation pipelines, and autonomous Agentic AI platforms.

📬

📬 Stay Updated on Tech Releases

Sign up to get notified when I publish new production war stories, agentic AI architecture blueprints, or open-source infrastructure tools.

⚡ Theme Adaptive Shift
Switching layouts matching domain reading affinity...