Skip to content

Latest commit

 

History

History
68 lines (54 loc) · 1.22 KB

README.md

File metadata and controls

68 lines (54 loc) · 1.22 KB

Radiance

Experimental KVM based VMM for aarch64 platform.

Defining characteristics:

  • no external dependencies
  • statically compiled (no libc or musl)
  • no memory allocations after the VM start
  • minimal memory overhead over requested VM memory size

Build:

    $ zig build -Doptimize=ReleaseFast -j4

Usage:

Usage:
        --config_path: type []const u8

Example:

radiance --config_path config.toml

Example config file:

[machine]
vcpus = 2
memory_mb = 128

[kernel]
path = "vmlinux-5.10"

[[drives]]
read_only = true
path = "ubuntu-22.04.ext4"

Rootfs:

Ubuntu:

    $ sudo bash mk_ubuntu.sh 300

This will produce ubuntu.ext4 rootfs file and ssh keys ubuntu.id_rsa and ubuntu.id_rsa.pub.

Alpine:

    $ sudo bash mk_alpine.sh 100

This will produce alpine.ext4 rootfs file and ssh keys alpine.id_rsa and alpine.id_rsa.pub.

Linux kernel:

To compile small kernel for VM use resources/kernel_config.

make -Image -j

The resulting kernel image will be at arch/arm64/boot/Image.

Kcov:

zig test src/main.zig -lc --test-cmd kcov --test-cmd "--exclude-pattern=/nix" --test-cmd kcov-output --test-cmd-bin