A Rust-based system for running code with Hyperlight and being able to run commands against sandboxed firecracker VMs. Use MCP to call the tools / hyperlight functions / agents.
Run the complete build and setup process:
cargo run -p xtask -- run| Command | Description |
|---|---|
run |
Complete build and setup process (default) |
build-guest |
Build guest package only |
build-vm-agent |
Build vm-agent binary only |
build-base-rootfs |
Create base rootfs image (without agent) |
download-kernel |
Download kernel binary if missing |
download-firecracker |
Download firecracker binary if missing |
run-host |
Run host package |
clean |
Clean all downloaded and built artifacts |
# Build individual components
cargo run -p xtask -- build-guest
cargo run -p xtask -- build-vm-agent
# Download dependencies
cargo run -p xtask -- download-kernel
cargo run -p xtask -- download-firecracker
# Run host only (after building)
cargo run -p xtask -- run-host
# Clean everything
cargo run -p xtask -- clean- Builds the guest package
- Creates rootfs with vm-agent
- Downloads kernel (if missing)
- Downloads firecracker (if missing)
- Runs the host application