/hvm-runtime

Linux port of a runtime system for managing hybrid virtual machines (HVMs) on top of QEMU/KVM

Primary LanguageC

HVM runtime system

Getting set up

First install prerequisites for building QEMU and Linux kernel (assuming CentOS/Fedora package names):

[you@host] sudo dnf install -y glib2-devel zlib-devel pixman-devel bison flex elfutils-libelf-devel openssl-devel glibc-static
[you@host] curl -sSfL https://git.io/hvm-rt | sh

This grabs, builds, and prepares recent copies of BusyBox (for the guest userspace), the Linux kernel (for the guest kernel), a virtual disk image for the guest (mounted at /mnt), and QEMU (the VMM), then builds the HVM runtime system and adds it to the virtual disk image. Once it's finished (it will take a good long while), you can boot the guest using QEMU with:

[you@host] make run

You can run the guest user-space utility in the guest as follows:

[you@guest> /mnt/hvm-user