smallkirby/ymir
Ymir: The Type-1 Hypervisor.
Ymir is an Intel VT-x based baremetal hypervisor written in Zig. It is minimalistic but can boot latest Linux kernel (v6.9).
Install ovmf
package to run UEFI firmware on QEMU:
sudo apt install ovmf
zig build install-samples
zig build run -Dlog_level=info -Doptimize=ReleaseFast
If you want to use your own kernel image and initramfs,
you can put your kernel image (bzImage
) and initramfs (initramfs.cpio
) to /zig-out/img
.
It is tested that Ymir can boot Linux kernel v6.9 that is compiled with defconfig
of x86-64.