Skip to content

Releases

OmniVM v1.0.0

Choose a tag to compare

@SalyyS1 SalyyS1 released this 19 Nov 06:42

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), sets RLIMIT_AS (MemoryMB + 256 MiB), RLIMIT_NOFILE, and RLIMIT_NPROC, and hands off pre-opened /dev/kvm and TAP file descriptors.
  • Static VMM Jail Security Auditor (OVM-JAIL-001..OVM-JAIL-008): Audits single or fleet JailSpec JSON definitions with CVSS v3.1 ratings and OASIS SARIF v2.1.0 output (ovm jail audit --sarif, POST /v1/jail/audit, jail_audit MCP tool).
  • Daemonless VM Survival Leases (vmmjail.ReconcileLeases): Persists SHA-256 integrity-verified survival leases recording VMM PID and /proc/<pid>/stat start-time ticks (ProcStartTicks) to re-adopt live microVMs across ovmd upgrades 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 synthesizes clock.sync (step vs slew) plus 512-bit CSPRNG rng.reseed and RFC 4122 vm_gen_id rotation before traffic resumes (ovm bench hibernate, ovm hibernate plan).
  • Observability, Simulator & MCP: Added /v1/jail*, /v1/hibernate*, /v1/bench/hibernate, Prometheus/OpenMetrics omnivm_jail_* and omnivm_hibernate_* series, 3 new ovm-mcp tools (25 tools total), and upgraded the interactive control-plane simulator at https://salyys1.github.io/omnivm/.

OmniVM v0.9.0

Choose a tag to compare

@SalyyS1 SalyyS1 released this 19 Nov 00:41

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 under OVM_VIRTIOFS_CACHE_MB, 2 MiB-aligned Cloud Hypervisor FsConfig DAX windows (dax=true, cache_size) bounded by OVM_VIRTIOFS_MAX_POOL_MB, direct-mapped virtio-pmem (discard_writes=true) layer sharing, multi-queue virtiofsd worker scaling, and ovm bench virtiofs fleet page-cache benchmarking.
  • Per-Tenant Egress CIDR/DNS Policy Firewall and nftables Compiler (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 /30 tap cross-VM lateral movement, spoofed guest source IPs, and unpinned DNS resolvers. Compiles validated tenant policies into atomic, idempotent Linux nftables inet rulesets (ovm netpolicy compile).
  • Static Network Policy Security Auditor (OVM-NET-001 through OVM-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 new ovm-mcp tools (netpolicy_audit, netpolicy_compile, virtiofs_status, 22 MCP tools total), glama.json and server.json manifests, and interactive v0.9.0 labs at https://salyys1.github.io/omnivm/.

OmniVM v0.8.0

Choose a tag to compare

@SalyyS1 SalyyS1 released this 18 Nov 18:31

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

Choose a tag to compare

@SalyyS1 SalyyS1 released this 18 Nov 09:34

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

Choose a tag to compare

@SalyyS1 SalyyS1 released this 18 Nov 03:25

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 single AF_VSOCK or Cloud Hypervisor Unix vsock socket for zero-network guest IPC without cross-stream head-of-line blocking.
  • Dynamic Linux Cgroup v2 memory.high Watermark Governor (internal/cgroup): Reads memory.current, memory.high, memory.max, memory.events (high soft-reclaim throttles and oom counters), and Linux PSI (memory.pressure some/full stall ratios). Adaptive mode reconciles memory.high relative to memory.max or OVM_MAX_HOST_MEMORY_MB and exports omnivm_cgroup_* Prometheus and OpenMetrics series.
  • Automated Warm-Pool Pre-Faulting Engine and Benchmark (internal/prefault, ovm bench prefault): Populates anonymous guest memory pools and mmap snapshot images ahead of wake using Linux MADV_POPULATE_WRITE / MADV_POPULATE_READ and parallel page-stride workers (POST /v1/bench/prefault and ovm bench prefault [--json]), eliminating first-touch minor page faults on warm microVM slots.

OmniVM v0.5.0

Choose a tag to compare

@SalyyS1 SalyyS1 released this 15 Nov 22:10

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

Choose a tag to compare

@github-actions github-actions released this 15 Nov 08:17

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) FICLONE reflinks on XFS/Btrfs/bcachefs, falling back cleanly to a 64 KiB sparse-hole extent copier on ext4/tmpfs, and then resumed immediately. Branching supports start=false so N forked sandboxes can enter STOPPED at 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 Hypervisor mergeable=on (MADV_MERGEABLE) guest memory advice with a zero-overhead adaptive KSM governor (OVM_KSM_MODE=off|auto|on). In auto mode, ksmd stays asleep (run=0) when fewer than 2 microVMs hold resident RAM and activates (run=1, ramping sleep_millisecs from 50ms to 200ms) 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, Prometheus 0.0.4, and OpenMetrics 1.0.0 telemetry with effective_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, and omnivm_lifecycle_snapshot_branches_total.
  • 19-Tool MCP Server & Interactive Simulator (cmd/ovm-mcp, docs/index.html): Added snapshot_create, snapshot_list, snapshot_delete, and instance_branch tools to ovm-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

Choose a tag to compare

@SalyyS1 SalyyS1 released this 14 Nov 19:10

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 nested guest.spawn calls.
  • LRU Warm-Paused Eviction (paused_evictions): Before rejecting a cold boot for host memory pressure, ovmd automatically evicts the least-recently-used idle PAUSED microVMs to reclaim host RAM while keeping newer warm standbys resident. Over-ceiling active workloads return HTTP 429 Too Many Requests (quota_rejections) with Retry-After guidance.
  • 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

Choose a tag to compare

@SalyyS1 SalyyS1 released this 14 Nov 11:07

Highlights in OmniVM v0.2.1

  • Mid-Boot ExposePort and UnexposePort Endpoint Reconciliation: Re-snapshots ExposePorts right before CreateVM (after image rootfs extraction or ext4 disk conversion) and reconciles any dynamic ExposePort or UnexposePort calls arriving while State == StateStarting before atomically transitioning to StateRunning. Fixes the cold-boot race where POST /v1/instances/:id/expose invoked immediately after POST /v1/instances left inst.Endpoints empty and caused HTTP/TCP ingress 502s.
  • Harness Port-Change Synchronization: Emits ports_changed JSON-RPC notifications for ports exposed or unexposed between the initial run RPC and StateRunning.
  • Cloud Hypervisor Runtime Port Cleanup: Makes CloudHypervisorVMM.DynamicExposePort idempotent per guest port and implements CloudHypervisorVMM.DynamicUnexposePort so runtime UnexposePort cleans up tap endpoint entries cleanly.
  • Concurrency Race Coverage: Adds deterministic mid-boot ExposePort and UnexposePort barrier tests verified under go test -race ./....

OmniVM v0.2.0

Choose a tag to compare

@github-actions github-actions released this 14 Nov 06:44

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 a STOPPED, STARTING, or PAUSED microVM coalesce into a single StartVM or ResumeVM transition with zero polling delay (coalesced_wakes).
  • Wake-During-Reap and Mid-Pause Race Protection:
    • Serializes idle reaper teardown (reaping = true across demux.Stop() and StopVM) so wake requests arriving mid-shutdown park cleanly on transitionCh and execute a single coordinated cold boot (reap_wake_handoffs).
    • Detects inbound connections or keepalive leases arriving while PauseVM executes outside the instance lock and aborts the pause via immediate ResumeVM (aborted_pauses).
    • Eliminated data races across Instance fields (InstanceSnapshot, Snapshot(), SetSecretKeys(), RestoreTimestamps()) verified under go test -race -v ./... (245 passing unit and concurrency tests).
  • Context-Aware TCP and Virtio-Vsock Readiness Probes (internal/router):
    • Added ProbeTCP / CheckTCPReady with bounded exponential backoff (20ms to 200ms), request-context cancellation, and non-destructive MSG_PEEK | MSG_DONTWAIT socket liveness verification.
    • Added ProbeVsock / CheckVsockReady implementing Cloud Hypervisor's host-side virtio-vsock Unix multiplexer handshake (CONNECT <port>\n -> OK <local_port>\n) with single-byte framing so zero guest payload bytes are over-read.
  • Daemon Configuration Validation (internal/config): Added (c *Config) Validate() error enforced at ovmd startup covering memory/vCPU/disk bounds, idle timer durations, router host:port syntax, network backend selection, and IPv4 DNS format.
  • Structured JSON Status and Metrics (internal/api, cmd/ovm):
    • Added GET /v1/metrics and enriched GET /v1/status with uptime_seconds, instances state breakdown, lifecycle counters, and router probe/traffic counters.
    • Added ovm status --json and ovm instance list --json CLI flags.

Release Assets

  • omnivm-linux-amd64: Static ovm CLI 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