hermit-os /uhyve

A specialized hypervisor for Hermit.

★ 299⑂ 39👁 7⑃ 1,307● 211▤ 24
RustApache-2.0Created 2018-07-14
下载:Uhyve v0.10.1Uhyve-0.10.1 ↓0.10.12026-11-09
+0
日增长
299
stars
39
forks
7
watchers
1,307
prs
211
issues
24
releases

README

Uhyve





Uhyve is a minimal, special-purpose hypervisor for the Hermit kernel.

 Installation

1. Install the Rust toolchain. The Rust Foundation provides installation instructions.
2. Install Uhyve:

sh
cargo install --locked uhyve


 Requirements

 Linux

To check if your system supports virtualization, you can use the following command:

sh
if egrep -c '(vmx|svm)' /proc/cpuinfo  /dev/null; then echo "Virtualization support found"; fi


Uhyve on Linux depends on the virtualization solution KVM (Kernel-based Virtual Machine).
If the following command gives you some output, you are ready to go!

sh
lsmod | grep kvm


 [!NOTE]
 If the above steps don't work, make sure that you have enabled virtualization in your UEFI/BIOS settings.

 macOS

 [!WARNING]
 Currently, Uhyve is mainly developed for Linux.
 The macOS version has not been tested extensively and does not support all features of the Linux version.

You can install Apple's Xcode Command Line Tools using the following command:

sh
xcode-select --install


Additionally, the included hypervisor bases on the Hypervisor Framework depending on OS X Yosemite (10.10) or newer.

To verify if your processor is able to support this framework, run the following in your Terminal:

sh
sysctl kern.hv_support


The output kern.hv_support: 1 indicates virtualization support.

Starting with Big Sur, all processes using the Hypervisor API must have the com.apple.security.hypervisor entitlement and therefore must be signed.

 Building from source

To build from source, simply checkout the code and use cargo build:

sh
git clone https://github.com/hermit-os/uhyve.git
cd uhyve
cargo build --release


 macOS Big Sur: Signing Uhyve

uhyve can be self-signed using the following command:

sh
codesign -s - --entitlements app.entitlements --force path_to_uhyve/uhyve


The file app.entitlements must have following content:

xml




    com.apple.security.hypervisor
    




For further information, please consult Apple's Documentation.

 Usage

Assuming that you have installed Uhyve, run the hypervisor to start the unikernel:

sh
uhyve /path/to/the/unikernel/binary


 [!NOTE]
 This repository ships a few binaries that can be used for testing.

 If you want to compile Hermit binaries yourself (or create your own), take a look at the following repositories:
 - hermit-os/hermit-rs-template
 - hermit-os/hermit-c

 Configuration

Uhyve can be configured using command line arguments and environment variables.
This example launches a virtual machine with 4 GiB of memory and 4 cores:

bash
uhyve -m 4GiB -c 4 path/to/unikernel


For more options, the default values, and the corresponding environment variables run:

bash
uhyve --help


 Networking

 [!NOTE]
 TAP network support is currently only available on Linux.

To use tap networking, you need to create a tap device first and connect it to a suitable network interface (needs root). The following script creates a tap device and bridge interface for guest-host networking:

s

Top issues

Latest release

Uhyve v0.10.1 v0.10.1 2026-11-09
What's Changed

Point release mostly focused on fixes for aarch64.

 Major:

 fix(aarch64): keep FDT out of the hypercall region by @stlankes in https://github.com/hermit-os/uhyve/pull/1503
 fix: Use c_char instead of i8 for tap device names and path_ptrs by @jounathaen in https://github.com/hermit-os/uhyve/pull/1509
 bugfix,kvm,x86-64: setup_cpuid before setup_long_mode by @jounathaen in https://github.com/hermit-os/uhyve/pull/1501
 Kvm refactor: Split KVM and x86_64 code by @jounathaen in https://github.com/hermit-os/uhyve/pull/1508
 fix(hypercall): bound read buffer to VM memory b

Snapshot: 2026-11-27T22:26:53Z · Data license Apache-2.0 · JSON