Skip to content

Installation

Choose a task before preparing your machine:

Release packages support Linux x86_64 and Apple Silicon macOS. Python installation needs 3.10+; no Rust toolchain or Docker Daemon is needed.

Windows x86_64 users can build the experimental WHP container CLI from source. See the Windows profile for firmware and host prerequisites.

1. Install the CLI

Use a regular user terminal. Check Python first:

python3 --version

Expect 3.10 or newer. Create a dedicated virtual environment and install:

python3 -m venv ~/.venvs/pvisor
source ~/.venvs/pvisor/bin/activate
python -m pip install pvisor-sandbox

The installed command is pvisor; the Python distribution is pvisor-sandbox. In a new terminal, run source ~/.venvs/pvisor/bin/activate before using the CLI. If venv is unavailable, install your operating system's Python venv support first.

You can also install into an existing project virtual environment. For installation without Python, use the shell installer, Homebrew or native packages below.

2. Prepare your platform

Follow only the section for your task. The container example does not need Host file staging.

Container commands: VM support

Install the CLI before running the VM probe below. On Linux x86_64, check architecture and your account's KVM access:

uname -m
test -r /dev/kvm && test -w /dev/kvm && echo 'KVM accessible'

Expect x86_64 and KVM accessible. If the device is missing or inaccessible, ask the administrator to configure virtualization and account permissions. Virtualized servers also need nested virtualization. Namespace policy can affect Linux VMM restrictions; see the VM guide for startup permission failures.

On Apple Silicon macOS, uname -m should print arm64. Use a release package with the Hypervisor entitlement; source builds need signing as described in VM platform setup. This VM path does not require macFUSE for Host staging.

Check whether the current process can create a VM:

pvisor vm-check --json

Inspect can_create_vm and firmware. This probe creates an empty VM and reports firmware discovery separately. Booting a guest is the next check.

First use needs Docker Hub access and image-cache space. Start a VM with the Docker tutorial to confirm that the setup works.

Agent tasks: Host file staging

--safe needs to mount a staged file view. If you have not yet installed the CLI, do that first. Follow the steps for your platform, then continue the offline staging demo.

Linux x86_64

Check the architecture, FUSE device, and mount helper:

uname -m
ls -l /dev/fuse
command -v fusermount3 || command -v fusermount

Expect x86_64, an existing device, and a helper path from the final command. On Debian/Ubuntu, install fuse3 if the helper is missing; use the equivalent package on other distributions. Ask the administrator to configure FUSE if the device is missing or inaccessible. Containers and managed servers must also allow device access and mounting.

Check basic user namespace availability:

unshare --user --map-root-user true

Success produces no output and exits 0. For Operation not permitted, setgroups, or uid_map errors, ask the administrator to check user namespace and AppArmor policies. This probe does not replace pVisor's actual startup checks; see the Host executor.

Apple Silicon macOS

Check the architecture:

uname -m

Expect arm64. Install macFUSE 5.4.0 or newer:

brew install --cask macfuse

Enable macFUSE in System Settings → General → Login Items & Extensions → File System Extensions, and complete any system prompts. pVisor uses FSKit without loading a kernel extension or reducing boot security. Staging startup fails if FSKit is unavailable.

Ordinary Host Sessions write directly to the workspace by default. The tutorial uses --safe for staging; keep it while resolving mount failures.

Optional: Linux VM tool execution setup

Execution infrastructure

The VM tool tutorial runs on a Linux x86_64 node. In addition to the CLI, Python, Git, and Bash, check that your account can access KVM:

test -r /dev/kvm && test -w /dev/kvm && echo 'KVM accessible'

Expect KVM accessible. If absent, ask the administrator to check the device and account permissions. Virtualized servers also need nested virtualization. The example requires user namespaces too; KVM access alone does not establish readiness.

Initial task-image preparation needs access to Docker Hub and enough disk space to cache the image. The image includes Python, test tools, and project code; it does not inherit the Host virtual environment. No Docker Daemon is needed. For offline rootfs preparation, see the VM guide.

These checks apply to the Linux VM tutorial. For VM support and prerequisites on other platforms, see the VM executor.

3. Check the installation

In the terminal with your installation environment activated, run:

command -v pvisor
pvisor --version
pvisor run --help
pvisor spawn --help

Expect the CLI path, version number, and help for both entry points. The selected tutorial then verifies VM execution or staging with an actual run.

Problem Action
pvisor is missing Reactivate the virtual environment; native-package users should add the package's bin to PATH.
pip reports a system-managed Python environment Install in the virtual environment above.
No package matches the platform Check Python version and system architecture; see the platform matrix.
CLI works but task startup fails Check FUSE, FSKit, and user namespaces under local prerequisites, keeping --safe.

4. Complete your first task

Other installation and maintenance options

Upgrade and uninstall

Run these commands in the Python environment where pVisor is installed:

python -m pip install --upgrade pvisor-sandbox
# Uninstall when needed:
python -m pip uninstall pvisor-sandbox

Uninstalling leaves Session state and user caches in place.

Install with sh

On Linux x86_64 or Apple Silicon macOS, use sh, curl, tar and either sha256sum or shasum. Both commands run the installer from the project repository. It downloads the native archive for the chosen channel from GitHub Releases and checks its SHA-256 before installing. It does not need Python, Cargo or sudo. To review the script first, download it without the pipe and run it separately.

Install the latest stable release:

curl -fsSL https://raw.githubusercontent.com/DeepLink-org/pvisor/main/scripts/install.sh | sh

Install the latest nightly build from main:

curl -fsSL https://raw.githubusercontent.com/DeepLink-org/pvisor/main/scripts/install.sh | sh -s -- --nightly

Verify the installed version without changing PATH:

"$HOME/.local/share/pvisor/cli/current/bin/pvisor" --version
"$HOME/.local/share/pvisor/cli-nightly/current/bin/pvisor" --version

Check only the channel you installed. Nightly versions include the build suffix +g<run-number>.<commit>. The channels have separate install directories by default; add the desired current/bin to PATH. The script does not edit shell startup files or start services.

Rerun a channel's command to upgrade it. Pass --version 0.4.0 to sh -s -- to pin or roll back stable. Nightly always installs from the rolling nightly release. Each install switches the complete CLI and companion set and keeps previously installed versions. Use --install-dir /absolute/path to choose another private install directory. To uninstall, remove only the selected install directory and its PATH entry; Session state and user caches stay in place.

Homebrew and native downloads

Install from the project Homebrew tap:

brew tap DeepLink-org/formula https://github.com/DeepLink-org/Formula.git
brew install DeepLink-org/formula/pvisor

The explicit repository URL is required because the tap is named Formula, rather than homebrew-formula. The tap contains package metadata; binaries come from GitHub Releases. Update with brew update and brew upgrade DeepLink-org/formula/pvisor.

To install without Python, download the native archive for your platform and SHA256SUMS from GitHub Releases. Compare the archive digest from sha256sum (Linux) or shasum -a 256 (macOS) with its entry in SHA256SUMS. After it matches, extract the archive, add its bin directory to PATH, and keep its files together. Replace the complete directory when upgrading.

See the release guide for Homebrew tap publication requirements and configuration.

Session startup requires the executable and its ancestor directories to be owned by you or root and not writable by other users; root-owned sticky directories such as /tmp are allowed. Homebrew may create its Cellar with group write permission. If startup reports unsafe owner executable ancestor, inspect the named directory. For a single-owner Homebrew installation whose Cellar is group-writable, remove write permission for group and other users before testing:

chmod go-w "$(brew --cellar)"
brew test DeepLink-org/formula/pvisor

This changes that directory's permissions, without recursing into installed packages. For a shared Homebrew installation that needs group write access, install the wheel or native archive under your own protected directory instead.

Nightly and source builds

Use the shell installer for native Nightly installation. To install the nightly wheel instead, run this inside an activated Python environment:

curl -fsSL https://raw.githubusercontent.com/DeepLink-org/pvisor/main/scripts/install-nightly.sh | bash

To modify or build the native programs, follow the development instructions to obtain the source, prepare the toolchain and build the CLI.

Single-node Daemon

Release packages include pvisor-daemon. For OpenSandbox/E2B SDK access, follow the Daemon guide to prepare a Linux/KVM node and delegated cgroup v2, and check support for your chosen APIs. Both quick-start examples use the CLI and require no running Daemon.