Repository navigation
Releases
OmniVM v1.0.0
OmniVM v1.0.0
Completes the OmniVM v1.0 multi-tenant host isolation and hibernation architecture across internal/vmmjail, internal/hibernate, CLI, REST, Prometheus, and the 25-tool ovm-mcp server.
Highlights
- Unprivileged Cloud Hypervisor VMM Jailer (
internal/vmmjail,OVM_JAIL_MODE=off|audit|strict): Allocates collision-free subordinate UID/GID pairs (100000..165535) per microVM, confines each VMM inside an isolated chroot directory, clears the Linux capability bounding set (CapBnd=0,PR_SET_NO_NEW_PRIVS=1), setsRLIMIT_AS(MemoryMB + 256 MiB),RLIMIT_NOFILE, andRLIMIT_NPROC, and hands off pre-opened/dev/kvmand TAP file descriptors. - Static VMM Jail Security Auditor (
OVM-JAIL-001..OVM-JAIL-008): Audits single or fleetJailSpecJSON definitions with CVSS v3.1 ratings and OASIS SARIF v2.1.0 output (ovm jail audit --sarif,POST /v1/jail/audit,jail_auditMCP tool). - Daemonless VM Survival Leases (
vmmjail.ReconcileLeases): Persists SHA-256 integrity-verified survival leases recording VMM PID and/proc/<pid>/statstart-time ticks (ProcStartTicks) to re-adopt live microVMs acrossovmdupgrades while refusing recycled host PIDs (stale_pid_reused) and cleaning dead sockets (orphaned_cleaned). - Sparse Zero-Page Memory Hibernation & Cryptographic Restore (
internal/hibernate,OVM_HIBERNATE_MODE=off|idle|aggressive): Scans 4 KiB guest RAM frames (OVMHIB01), elides zero pages with fail-closed SHA-256 verification on restore, and synthesizesclock.sync(stepvsslew) plus 512-bit CSPRNGrng.reseedand RFC 4122vm_gen_idrotation before traffic resumes (ovm bench hibernate,ovm hibernate plan). - Observability, Simulator & MCP: Added
/v1/jail*,/v1/hibernate*,/v1/bench/hibernate, Prometheus/OpenMetricsomnivm_jail_*andomnivm_hibernate_*series, 3 newovm-mcptools (25 tools total), and upgraded the interactive control-plane simulator at https://salyys1.github.io/omnivm/.
OmniVM v0.9.0
OmniVM v0.9.0
Highlights
- Shared Virtio-FS and Virtio-PMEM DAX Rootfs Cache Pool (
internal/virtiofs): Content-addressed read-only base layer pool (sha256:<digest>) with reference-counted active pinning, unpinned LRU eviction underOVM_VIRTIOFS_CACHE_MB, 2 MiB-aligned Cloud HypervisorFsConfigDAX windows (dax=true,cache_size) bounded byOVM_VIRTIOFS_MAX_POOL_MB, direct-mappedvirtio-pmem(discard_writes=true) layer sharing, multi-queuevirtiofsdworker scaling, andovm bench virtiofsfleet page-cache benchmarking. - Per-Tenant Egress CIDR/DNS Policy Firewall and
nftablesCompiler (internal/netpolicy): Outbound L3/L4 CIDR + port-range and L7 DNS allowlist/denylist firewall (off | audit | enforce) blocking cloud instance metadata SSRF (169.254.169.254,169.254.170.2,100.100.100.200,fd00:ec2::254), RFC1918 and/30tap cross-VM lateral movement, spoofed guest source IPs, and unpinned DNS resolvers. Compiles validated tenant policies into atomic, idempotent Linuxnftablesinetrulesets (ovm netpolicy compile). - Static Network Policy Security Auditor (
OVM-NET-001throughOVM-NET-008): Evaluates tenant egress policies with CVSS v3.1 severity ratings, rule-shadowing detection, posture scoring (0..100), and OASIS SARIF v2.1.0 output (ovm netpolicy audit --sarif). - CLI, REST, MCP, and Interactive Simulator: Added
ovm virtiofs,ovm netpolicy,/v1/virtiofs*,/v1/netpolicy*, Prometheus/OpenMetrics telemetry series, 3 newovm-mcptools (netpolicy_audit,netpolicy_compile,virtiofs_status, 22 MCP tools total),glama.jsonandserver.jsonmanifests, and interactive v0.9.0 labs at https://salyys1.github.io/omnivm/.
OmniVM v0.8.0
OmniVM v0.8.0 introduces multi-tenant I/O quality-of-service isolation and Linux seccomp-bpf syscall profile auditing.
Key Highlights
- Hierarchical Token-Bucket I/O QoS Governor (): Continuous-time two-tier rate governor enforcing bandwidth and operations rate limits on virtio-blk and virtio-net. Computes weighted max-min water-filling fair shares and synthesizes Cloud Hypervisor RateLimiterConfig payloads.
- Seccomp-bpf Syscall Profile Auditor (): Statically audits OCI and Cloud Hypervisor thread-scoped seccomp filters against 10 ring-0 and hypervisor escape rules (OVM-SEC-001 through OVM-SEC-010) with CVSS ratings and OASIS SARIF v2.1.0 reporting.
- CLI and Telemetry: Added ovm qos, ovm seccomp, and ovm bench ioqos subcommands alongside REST endpoints /v1/qos and /v1/seccomp/audit.
- Interactive Simulator: Upgraded GitHub Pages simulator with real-time multi-tenant QoS burst storm and seccomp auditor labs.
v0.7.0 - Proactive KSM Governor, Disk-Cache Pre-Warming and Wake Latency Histograms
OmniVM v0.7.0 introduces proactive Linux Kernel Samepage Merging (KSM), sparse-extent page-cache disk pre-warming ahead of cold boot, and thread-safe cumulative wake latency histograms for Prometheus and OpenMetrics.
Highlights
- Proactive KSM Governor (internal/ksm): Dynamic fleet-density scan burst scaling (up to 2048 pages per 20ms burst), NUMA socket-local deduplication (merge_across_nodes=0), and volatile heap page churn backoff (OVM_KSM_GOVERNOR=proactive).
- Sparse-Extent Disk Pre-Warming (internal/diskwarm): Pre-warms guest kernel images and rootfs extents ahead of cold boot using SEEK_DATA/SEEK_HOLE extent discovery and POSIX_FADV_WILLNEED bounding (OVM_DISK_PREWARM=auto|eager|off).
- Wake Latency Histograms & Telemetry (internal/telemetry): Prometheus 0.0.4 and OpenMetrics 1.0.0 histograms for cold_boot, warm_resume, and coalesced_wait transitions (omnivm_wake_latency_seconds), plus proactive KSM scan efficiency and page-cache pre-warming counters.
- Interactive Simulator: Updated GitHub Pages control plane simulator (https://salyys1.github.io/omnivm/) with proactive KSM and disk pre-warm controls.
All unit tests pass.
OmniVM v0.6.0
OmniVM v0.6.0
Highlights
- Virtio-Vsock Streaming Multiplexer (
internal/vsockmux): Binary-framed, credit-flow-controlled full-duplex stream multiplexer (OpenStream,AcceptStream,CloseWrite,Reset,Ping,GoAway,DialCloudHypervisorVsock) over a singleAF_VSOCKor Cloud Hypervisor Unix vsock socket for zero-network guest IPC without cross-stream head-of-line blocking. - Dynamic Linux Cgroup v2
memory.highWatermark Governor (internal/cgroup): Readsmemory.current,memory.high,memory.max,memory.events(highsoft-reclaim throttles andoomcounters), and Linux PSI (memory.pressuresome/fullstall ratios). Adaptive mode reconcilesmemory.highrelative tomemory.maxorOVM_MAX_HOST_MEMORY_MBand exportsomnivm_cgroup_*Prometheus and OpenMetrics series. - Automated Warm-Pool Pre-Faulting Engine and Benchmark (
internal/prefault,ovm bench prefault): Populates anonymous guest memory pools andmmapsnapshot images ahead of wake using LinuxMADV_POPULATE_WRITE/MADV_POPULATE_READand parallel page-stride workers (POST /v1/bench/prefaultandovm bench prefault [--json]), eliminating first-touch minor page faults on warm microVM slots.
OmniVM v0.5.0
OmniVM v0.5.0
Live microVM migration (pre-copy and post-copy)
Add ovm instance migrate for live migration of running microVMs between ovmd nodes.
The migration engine runs an iterative pre-copy phase while the source VM keeps executing:
- Each round the MigrateDriver interface scans guest dirty pages via a 4 KiB-granularity DirtyBitmap.
- Dirty page frames are streamed to the destination until the remaining delta falls below the dirty threshold (default: 256 pages) or max rounds is exhausted.
- A final stop-and-copy (pause, last scan, resume at destination) completes the handoff with bounded VM downtime.
- Optional post-copy mode starts the destination VM immediately after the final stop and services remaining page faults from the source on demand.
New packages: internal/migration (MigrateDriver interface, Migrator, DirtyBitmap), internal/api/migration.go (POST /v1/instances/{id}/migrate), cmd/ovm/migrate.go (CLI).
Per-VM network namespace isolation
Add internal/netns for lightweight per-VM Linux network namespace isolation:
- Manager.CreateVethPair(id) creates a named netns with a veth pair: host side attaches to a Linux bridge (default: ovm-br0), guest side lives inside the VM netns.
- IPv4 addresses are allocated sequentially from a /16 pool in /30 blocks (default: 10.192.0.0/16).
- An iptables MASQUERADE rule (chain: OVM-MASQ) enables outbound NAT for each guest.
- DeleteVethPair removes the veth pair, netns, and MASQUERADE rule.
- Build stubs on non-Linux platforms; tests requiring ovm-br0 skip gracefully.
Test coverage
- 7 unit tests for migration: pre-copy convergence, post-copy fault servicing, context cancellation, max-rounds unconditional handoff, nil-driver rejection, DirtyBitmap mark/collect/clear.
- 10 unit tests for netns: ID validation, interface name truncation, sequential IP allocation, pool exhaustion, default config, delete idempotency.
- All 15 internal test packages pass (go test ./... -count=1 -short).
OmniVM v0.4.0
Highlights in OmniVM v0.4.0
- Copy-on-Write Snapshot Capture & Instant Branching (
internal/overlay,internal/lifecycle,internal/registry): Added quiescent snapshot capture (POST /v1/instances/{id}/snapshots,ovm snapshot create) and instant branching (POST /v1/snapshots/{id}/branch,POST /v1/instances/{id}/branch,ovm snapshot branch,ovm instance branch). Running microVMs are transiently paused while cloning the upper filesystem layer via O(1)FICLONEreflinks on XFS/Btrfs/bcachefs, falling back cleanly to a 64 KiB sparse-hole extent copier on ext4/tmpfs, and then resumed immediately. Branching supportsstart=falseso N forked sandboxes can enterSTOPPEDat 0 MB host RAM until their first HTTP, L4 TCP, exec, or tether request arrives. - Linux KSM Same-Page Merging & Adaptive Governor (
internal/ksm,internal/vmm): Paired Cloud Hypervisormergeable=on(MADV_MERGEABLE) guest memory advice with a zero-overhead adaptive KSM governor (OVM_KSM_MODE=off|auto|on). Inautomode,ksmdstays asleep (run=0) when fewer than 2 microVMs hold resident RAM and activates (run=1, rampingsleep_millisecsfrom50msto200ms) only when multiple warm/running microVMs share identical guest kernel, glibc, and runtime pages. - Effective Host Memory & CoW Telemetry (
GET /metrics,GET /v1/metrics,ovm status): Extended JSON, Prometheus0.0.4, and OpenMetrics1.0.0telemetry witheffective_resident_memory_mb,omnivm_host_effective_resident_memory_bytes,omnivm_ksm_saved_bytes,omnivm_ksm_pages_sharing,omnivm_ksm_active,omnivm_storage_cow_saved_bytes,omnivm_lifecycle_snapshots_created_total, andomnivm_lifecycle_snapshot_branches_total. - 19-Tool MCP Server & Interactive Simulator (
cmd/ovm-mcp,docs/index.html): Addedsnapshot_create,snapshot_list,snapshot_delete, andinstance_branchtools toovm-mcp, and upgraded https://salyys1.github.io/omnivm/ with interactive CoW snapshot capture, 6x parallel branch fan-out, KSM deduplication telemetry, and lineage tracking.
Full Changelog: v0.3.0...v0.4.0
OmniVM v0.3.0
Highlights in OmniVM v0.3.0
- Host Resource Admission Quotas (
internal/config,internal/lifecycle): Added host-wide ceilings for aggregate resident guest RAM (OVM_MAX_HOST_MEMORY_MB), active virtual CPUs (OVM_MAX_ACTIVE_VCPUS), and concurrent active microVMs (OVM_MAX_ACTIVE_VMS). Reservations are acquired atomically without holding VMM RPCs under mutexes, preventing over-admission across concurrent HTTP wakes, L4 TCP proxies, wake-on-exec, tether frames, and nestedguest.spawncalls. - LRU Warm-Paused Eviction (
paused_evictions): Before rejecting a cold boot for host memory pressure,ovmdautomatically evicts the least-recently-used idlePAUSEDmicroVMs to reclaim host RAM while keeping newer warm standbys resident. Over-ceiling active workloads returnHTTP 429 Too Many Requests(quota_rejections) withRetry-Afterguidance. - Prometheus 0.0.4 & OpenMetrics 1.0.0 Exposition (
GET /metrics,ovm metrics --prometheus): Added native Prometheus and OpenMetrics text exposition (Accept: application/openmetrics-text) covering instance state gauges, host memory/vCPU/VM quotas, lifecycle transition counters, and router readiness-probe telemetry. - Interactive Scale-to-Zero & Quota Simulator: Deployed at https://salyys1.github.io/omnivm/ for exploring 24x concurrent wake coalescing, LRU paused eviction, HTTP 429 quota protection, and live Prometheus/OpenMetrics/JSON payloads.
OmniVM v0.2.1
Highlights in OmniVM v0.2.1
- Mid-Boot
ExposePortandUnexposePortEndpoint Reconciliation: Re-snapshotsExposePortsright beforeCreateVM(after image rootfs extraction orext4disk conversion) and reconciles any dynamicExposePortorUnexposePortcalls arriving whileState == StateStartingbefore atomically transitioning toStateRunning. Fixes the cold-boot race wherePOST /v1/instances/:id/exposeinvoked immediately afterPOST /v1/instancesleftinst.Endpointsempty and caused HTTP/TCP ingress 502s. - Harness Port-Change Synchronization: Emits
ports_changedJSON-RPC notifications for ports exposed or unexposed between the initialrunRPC andStateRunning. - Cloud Hypervisor Runtime Port Cleanup: Makes
CloudHypervisorVMM.DynamicExposePortidempotent per guest port and implementsCloudHypervisorVMM.DynamicUnexposePortso runtimeUnexposePortcleans up tap endpoint entries cleanly. - Concurrency Race Coverage: Adds deterministic mid-boot
ExposePortandUnexposePortbarrier tests verified undergo test -race ./....
OmniVM v0.2.0
OmniVM v0.2.0 - Hardened Scale-to-Zero Concurrency, Readiness Probes, and Telemetry
Highlights
- Single-Flight Request Coalescing (
internal/lifecycle): Replaced timer-polling wake loops with deterministic per-instance broadcast channels (transitionCh). Concurrent HTTP, L4 TCP,exec, and tether requests hitting aSTOPPED,STARTING, orPAUSEDmicroVM coalesce into a singleStartVMorResumeVMtransition with zero polling delay (coalesced_wakes). - Wake-During-Reap and Mid-Pause Race Protection:
- Serializes idle reaper teardown (
reaping = trueacrossdemux.Stop()andStopVM) so wake requests arriving mid-shutdown park cleanly ontransitionChand execute a single coordinated cold boot (reap_wake_handoffs). - Detects inbound connections or keepalive leases arriving while
PauseVMexecutes outside the instance lock and aborts the pause via immediateResumeVM(aborted_pauses). - Eliminated data races across
Instancefields (InstanceSnapshot,Snapshot(),SetSecretKeys(),RestoreTimestamps()) verified undergo test -race -v ./...(245 passing unit and concurrency tests).
- Serializes idle reaper teardown (
- Context-Aware TCP and Virtio-Vsock Readiness Probes (
internal/router):- Added
ProbeTCP/CheckTCPReadywith bounded exponential backoff (20msto200ms), request-context cancellation, and non-destructiveMSG_PEEK | MSG_DONTWAITsocket liveness verification. - Added
ProbeVsock/CheckVsockReadyimplementing Cloud Hypervisor's host-sidevirtio-vsockUnix multiplexer handshake (CONNECT <port>\n->OK <local_port>\n) with single-byte framing so zero guest payload bytes are over-read.
- Added
- Daemon Configuration Validation (
internal/config): Added(c *Config) Validate() errorenforced atovmdstartup covering memory/vCPU/disk bounds, idle timer durations, routerhost:portsyntax, network backend selection, and IPv4 DNS format. - Structured JSON Status and Metrics (
internal/api,cmd/ovm):- Added
GET /v1/metricsand enrichedGET /v1/statuswithuptime_seconds,instancesstate breakdown,lifecyclecounters, androuterprobe/traffic counters. - Added
ovm status --jsonandovm instance list --jsonCLI flags.
- Added
Release Assets
omnivm-linux-amd64: StaticovmCLI binary (linux/amd64,CGO_ENABLED=0)omnivm-v0.2.0-linux-amd64.tar.gz: Complete static bundle (ovm,ovmd,ovm-harness,ovm-mcp,ovm-mcp-guest)SHA256SUMS: SHA-256 checksums for release verification