Hyperlight is a Rust library that runs untrusted guest code inside hypervisor-isolated micro VMs with low startup latency. Host applications call guest functions across the VM boundary without a guest OS.
Overview
Hyperlight is a lightweight virtual machine manager meant to embed directly in applications. It spins up hypervisor-backed micro VMs in milliseconds and exposes guest functions that hosts can invoke with microsecond-scale overhead, using typed calls instead of a full guest operating system.
Guests are purpose-built ELF binaries, commonly written in no_std Rust or C with supplied macros. They have no kernel, filesystem, or network access unless explicitly bridged through registered host functions. VM memory can be snapshotted and restored so repeated calls start from a clean state without rebuilding the sandbox.
Typical uses include isolating untrusted or third-party code, embedding fast sandboxes, and building function-style services where each invocation runs inside a fresh or restored micro VM. It is not aimed at general-purpose virtualization or full Linux guests needing syscalls and networking.
Platform support documentation covers Linux on x86-64 with KVM or MSHV hypervisors, including guest debugging and crash dump features. Getting-started material explains host setup, guest builds, and optional cloud development environments.
Key features
- Embeddable Rust VMM library
- Millisecond micro-VM startup
- Typed host-to-guest function calls
- No guest kernel or operating system
- Default sandbox without host filesystem
- Snapshot and restore guest memory
- ELF guests in no_std Rust or C
Use cases
- Sandboxing untrusted code inside an app
- Fast isolated function-as-a-service workers
- Calling third-party logic across a VM boundary
- Reusing VM snapshots between invocations
- Embedding hypervisor isolation without containers