Alioth /AL-lee-oth/ is an experimental KVM-based type-2 hypervisor (virtual machine monitor) in Rust implemented from scratch.
[!IMPORTANT]
Disclaimer: Alioth is not an officially supported Google product.
Install Alioth from source,
cargo install alioth-cli --git https://github.com/google/alioth.git
Make an initramfs with u-root.
Boot a Linux kernel with 2 CPUs and 4 GiB memory,
alioth -l info --log-to-file \
run \
--kernel /path/to/vmlinuz \
--cmd-line "console=ttyS0" \
--initramfs /path/to/initramfs \
--memory size=4G \
--num-cpu 2
x86_64
and aarch64
.net
backed by a tap device,vsock
backed by host /dev/vhost-vsock
,blk
backed by a raw-formatted image,entropy
backed by host /dev/urandom
,fs
backed by virtiofsd with
experimental Direct Access (DAX),balloon
with free page reporting.The virtualization implementation in Alioth takes the following projects as references,
The error handling practice is inspired by
GreptimeDB's
stack_trace_debug
.