Skip to content

Platforms and executor support

Linux x86_64 and Apple Silicon macOS have full CLI installations. Windows x86_64 supports an experimental source-built native WHP container profile; Sessions, replay and the local Daemon are not ported.

The public execution paths are Docker-compatible container commands and, on supported platforms, Agent Session commands. There is no separate direct-VMM execution command. CI runs a test-only VM API probe on Linux/KVM and Windows/WHP. Hosted macOS CI retains builds and conventional tests without running real HVF cases; the same workload remains available manually on an Apple Silicon Mac with working HVF.

Installed components

Complete Linux/macOS wheels and native archives contain three host programs from the same version, installed together. Ordinary noninteractive Sessions need no resident Daemon. Other components are invoked by the features that use them.

Program and owner Used for Windows status
pvisor / pvisor-cli Docker-compatible and Agent commands; self-launches ordinary Session owners pvisor.exe: native container command subset; no Sessions
pvisor-replay / pvisor-cli pvisor replay; managed replay calls adjacent pvisor using Session/trajectory contracts Not ported
pvisor-daemon / separate crate pvisor daemon, cache/sandbox services; --vm-memory-pool auto discovers or starts the shared pool through it Not ported

Copying only the main program leaves companion-dependent commands unavailable. Windows CI selects --bin pvisor; all targets of cargo build -p pvisor-cli and a complete Windows package are unsupported. Wheel targets are Linux x86_64 musl and macOS arm64. See installation.

pvisor-guest is the Linux PID 1 supervisor embedded in pvisor-vm. Cross-compiling it on Windows still produces a Linux payload; no host pvisor-guest.exe is needed. whp_smoke.exe and vm_api_case are CI probes, not installed product commands. containerd-shim-pvisor-v2 is delivered separately for Linux containerd integration. Guest workloads must be Linux programs.

The binary inventory and build targets list the programs. Adjacent-program permission checks and dispatch live in companion discovery and trust checks; pool calls live in automatic pool discovery.

Mechanisms and prerequisites today

Feature Linux x86_64 Apple Silicon macOS Windows x86_64
VM-backed execution KVM, readable/writable /dev/kvm; Linux x86_64 guest HVF, Hypervisor signing; Linux aarch64 guest WHP enabled followed by reboot; nested hosts must expose virtualization; Linux x86_64 guest
Host Sessions (spawn), OverlayFS, review/apply/drop FUSE for staging; user namespaces and Landlock for sandbox macFUSE 5.4.0+ FSKit for staging; Seatbelt for file/network controls Not ported
Native OCI Sessions (container / --executor container) crun/runc and a matching static Linux injected binary Unsupported Unsupported
Docker-style VM containers and network policy Implementation and separate contracts Implementation; each capability needs HVF validation Experimental WHP profile: image/lifecycle, bridge/none and stdin/PTY
Experimental Compose Native KVM VMs Native HVF VMs Unsupported
Live container CoW branches and managed memory Linux x86_64/KVM, explicit opt-in Unsupported Unsupported
run @root, :stage binds Linux x86_64/KVM No host-root; staged-bind equivalence with Linux is unestablished Unsupported
VM snapshots, restore, cold RAM APIs/tests with backing/profile restrictions APIs/tests with HVF/backing restrictions Unsupported; pause/resume only
Gateway Depends on executor and configuration Host execution path exists Excluded from this CLI

Docker-style container commands such as pvisor run use one Linux VM per container. They are separate from native OCI Sessions and do not implement the Docker Engine API. Linux arm64 has source paths requiring host-specific build/KVM evidence and a matching rootfs; OCI also needs a linux/arm64 injected binary. The x86_64 wheel does not cover arm64. Intel macOS has no current release support promise.

After installation, run pvisor --version. Inspect effective Session controls in the Run Bundle; inspect container results through the container command contracts.

Windows containers require matching libkrunfw.dll and pvisor-rootfs.bin.gz beside the executable. Default bridge uses OverlayNet's IPv4 TCP/DNS egress and same-store guest peer traffic; --network none omits the NIC. run -i and exec -i supply stdin, while -it adds a guest PTY with initial dimensions, UTF-8 input and terminal Ctrl+C. Live resizing, mounts, published ports, custom networks, build and Engine/Compose APIs remain unsupported. The native tests/windows_container_contract.py driver covers these workflows; compiling the implementation or running Win32 tests under Wine does not establish WHP network/terminal acceptance. Native checks include console mode/code-page restoration and owned-process cleanup. Bounded acceptance does not establish hours-long resource stability.

Windows startup checks

The current MSVC binaries require the x64 Microsoft Visual C++ Redistributable. If even pvisor --version exits with 0xC0000135, Windows could not load a required DLL. Check the runtime installation; the CLI imports VCRUNTIME140.dll. Native source builds also need MSVC C++ Build Tools and a Windows SDK.

WHP requires second-level address translation (SLAT): AMD NPT or Intel EPT. A nested host must expose this capability to Windows as well as AMD-V/VT-x. Enabling the host's nested-paging option alone does not establish that the Windows guest receives SLAT. If VM startup reports HypervisorNotPresent after enabling WHP and rebooting, inspect the feature and hypervisor startup events in an administrator PowerShell:

Get-WindowsOptionalFeature -Online -FeatureName HypervisorPlatform
Get-WinEvent -FilterHashtable @{
    LogName = 'System'
    ProviderName = 'Microsoft-Windows-Hyper-V-Hypervisor'
} -MaxEvents 5 | Format-List TimeCreated, Id, Message

Event 59 reporting that SLAT is required means the Windows hypervisor could not start. Configure an outer hypervisor that exposes SLAT, or use a Windows host with the required hardware capabilities. An enabled WHP feature and hypervisorlaunchtype Auto alone do not establish that WHP can run a VM.

Platform implementations

VM-backed workflows share GuestConfig and authenticated exit handling. The execution chain is Docker-compatible / Agent command → lifecycle owner → pvisor_vm::api::VmBuilder → platform VMM → virtio-fs → Rust PID 1 supervisor → Linux workload → token-authenticated exit.

Layer Linux macOS Windows
CLI/processes Full command tree, Session owners, signals and descendant cleanup Same Session/companion structure, with macOS terminal/resource limits Container owners, generation-bound named pipes and runner Jobs; no Session state
Companions Adjacent discovery, Unix uid/mode checks, exec dispatch Same checks; resolves Homebrew entry to its real installation No dispatch; a full port needs .exe lookup, ACL trust and process startup/exit propagation
Terminal PTY, foreground ownership and signals PTY and terminal restoration Container stdin/guest PTY, console mode restoration and cancellable input; native ConPTY tests
Shared services Unix sockets, same-user authentication, locks and readiness; sandbox also needs cgroup/KVM Unix IPC; cache/pool supported, sandbox API unsupported IPC, endpoint ACLs, locks, cancellation and service cleanup are not ported; reaching a remote Linux API does not supply a local service
VM/filesystem KVM ioctls, Unix virtio-fs; full runtime also has overlay/network configurations HVF, Unix virtio-fs; signing, page-size and host-permission differences WHP partitions, APIC/PIT/TSC, Win32 waitable handles and directory shares; Linux wire errno, flags and ABI widths require conversion

The common directory-share path disables DAX. Windows synthesizes Linux mode/uid/gid; host ACLs still apply, and POSIX metadata semantics are incomplete. Callers must exclusively manage rootfs and prevent untrusted host processes from mutating shared trees.

A full Windows port also needs adjacent installation and version/permission checks, real CLI→replay→CLI and CLI→Daemon calls. Tests must cover terminal restoration, cancellation/deadlines, descendant cleanup, service readiness and failure recovery, then check Session JSON/Bundles, review/apply and service protocols separately. --help or VM workload results alone do not validate those calls.

Feature sets and critical paths across three platforms

The test-only vm_api_case example writes directly to caller-owned rootfs. It creates no Session, Bundle, stage or container instance and provides no network/vsock, interactive stdin, separate task stdio, container lifecycle, snapshots or Session policies. Output uses the VM console and may include kernel logs. Workload exit codes propagate; argument errors return 2, preparation/runtime errors 1, and exit authentication failure or abnormal VM termination 125. The external caller owns deadlines and process termination.

The following inputs belong to the API probe, not the product CLI.

Probe input/variable Effect and requirements
--cpus, --memory vCPU startup, interrupts and memory pressure; allowed ranges 1 to 64 vCPU and 1 to 65536 MiB, further constrained by firmware/host; this suite covers only 1/2 CPUs and 256 MiB
--firmware Trusted host .so/.dylib/.dll matching guest architecture; omission requires an embedded kernel. Musl releases embed the kernel; Windows currently needs an explicit DLL
PVISOR_KRUNFW_PATH / PVISOR_KRUNFW_KERNEL_BUNDLE Firmware/kernel inputs selected by product builds, distinct from the probe's runtime --firmware
--rootfs, --readonly Non-overlapping directories and absolute UTF-8 host paths; the read-only share mounts at /readonly, and the guest executable needs an absolute Linux path
Host/guest page sizes, filesystem, case handling, path length, ACLs Affect mmap, rename, cached inodes and errno; these cases do not cover all POSIX differences
--seed, --rounds, --timeout (test driver) Control data sequence, repeated lifecycles and per-command deadline; scheduling and elapsed time vary

Shared VM cases and three-platform CI

Execution record

CI artifacts record results for each revision and runner. The configured coverage is:

Platform Conventional checks Shared VM workload
Windows Native MSVC builds and contracts WHP smoke and API driver; separate product container driver
Linux Builds and native tests KVM API driver; separate product container/Session suites
macOS Builds and conventional tests Manual HVF execution on a capable host

See the test architecture for capability gates and coverage boundaries.

Workload and result checks

The API driver executes the same guest workload through the test-only vm_api_case example and the public VM API. This does not substitute for product container or Session acceptance. Three default rounds each check (1 CPU, exit 0), (2, 0), (2, 7), (1, 255): 12 boots. Each boot runs 8 threads, each doing 32 iterations of 4 to 8 KiB writes, fsync, rename, read and unlink, and touches 16 MiB of memory in total. It also checks online CPUs, a 100 ms timer, read-only rejection and directory rename with cached descendants.

The host checks exit status, the exact seed/CPU/exit result, an unchanged read-only fixture and an empty work directory. Missing virtualization, firmware errors and timeouts fail. On timeout the driver terminates and reaps the process tree, retaining per-case logs, commands, hashes, rootfs and JSON. The timer upper bound checks liveness. Determinism means consistent exit status and file results for the same input; scheduling/timing may vary. Hours-long stability and production density remain untested.

CI configuration and manual execution

GitHub's arm64 macOS runners do not support nested virtualization. Real HVF cases are removed from hosted CI. macOS builds and conventional tests continue; their results do not establish real HVF acceptance.

CI path Preparation and execution Artifact
ci.yml / Rust Test / Linux / pvisor Build product, API probe and x86_64 musl guest, check /dev/kvm, execute shared API driver vm-api-Linux
ci.yml / Rust Test / macOS / pvisor Build/sign product and run conventional tests; no real HVF workload No VM execution artifact
windows-vm.yml / native + firmware + whp Independent native checks; source-built DLL/guest/ext4 template; parallel WHP smoke, shared VM API workload and two product container campaigns windows-native-contracts, windows-vm-whp-smoke, windows-vm-whp-vm-api, windows-vm-whp-containers

Existing Windows whp_smoke still checks pause/resume, rejected-ready-callback cleanup and legacy exit ioctl rejection. Windows CLI builds use cargo build --locked -p pvisor-cli --bin pvisor; tests use mise run test -- pvisor-cli -- --lib --bin pvisor. Existing Unix integration tests are outside that selection. Failed cases fail main CI; unavailable WHP or a required reboot also fail. The Windows nextest profile adds a 180-second deadlock watchdog while preserving the tests' shorter deadlines. Evidence is written outside build caches, with runner versions and input hashes. Container diagnostics retain at most the last 1 MiB per file and exclude raw disks/blobs. Cleanup errors or leftover runners fail acceptance; cleanup only targets this job's downloaded executables.

Manual diagnostics need the test-only vm_api_case, a matching static guest and firmware; macOS also requires signing.

# Linux: x86_64-unknown-linux-musl; Apple Silicon: aarch64-unknown-linux-musl.
mise exec -- rustc --edition=2021 --target aarch64-unknown-linux-musl -C linker=rust-lld tests/vm_guest.rs -o /tmp/vm-guest
mise exec -- cargo build --locked -p pvisor-vm --example vm_api_case
# macOS: sign target/debug/examples/vm_api_case with crates/pvisor/macos-hypervisor.entitlements.
python3 tests/vm_api_contract.py --binary target/debug/examples/vm_api_case --guest /tmp/vm-guest --firmware /absolute/path/to/libkrunfw.dylib --output target/vm-api-evidence
# Windows uses the same driver with --firmware C:/firmware/libkrunfw.dll.
# --output must be new; --rounds 30 expands coverage to 120 actual boots.

Single-node daemon

The sandbox API requires Linux x86_64/KVM and delegated cgroup v2; macOS HVF and Linux arm64 are outside this API's supported scope. prepare-image publishes templates in the shared compressed image pool, with the Rust guest engine as the default for new templates. Official OpenSandbox/E2B SDK core flows have real-VM validation; full protocol conformance and production density are not guaranteed. See the daemon guide for deployment.

The same executable's cache and memory-pool components support Linux and Apple Silicon macOS without enabling the sandbox API. macOS offers compression or explicit physical-pages sharing; see memory optimization for prerequisites and failure boundaries.

Verify capability evidence

  • Check safety.filesystem_read_non_bypassable and filesystem_write_non_bypassable separately, not just whether changes are staged.
  • Check safety.network_non_bypassable and the driver; selective Linux proxies and container host networking do not become mandatory boundaries just because of the executor name.
  • Container cannot satisfy --safe controls and rejects --safe. All current executors reject --strict due to the subprocess gap.
  • Inspect resources.effective and limitations. macOS does not enforce RLIMIT_AS; ordinary host rlimits are not total process-tree budgets.

Evidence entry points: .github/workflows/ci.yml, docs/src/zh/cases/06-stage-apply.md, crates/pvisor/tests/, and tests/vm_api_contract.py. Untested cells receive no maturity claim. See boundaries.