mirror of
https://github.com/google/alioth.git
synced 2024-12-01 04:28:20 +00:00
No description
f9ab67372b
Signed-off-by: Changyuan Lyu <changyuanl@google.com> |
||
---|---|---|
.github | ||
alioth | ||
alioth-cli | ||
docs | ||
macros | ||
.cirrus.yml | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
LICENSE | ||
README.md | ||
rust-toolchain.toml | ||
rustfmt.toml |
Alioth
Alioth is a toy virtual machine monitor based on KVM. Complementary to the official tutorial Using the KVM API, it demonstrates detailed steps for building a type-2 hypervisor and booting a Linux guest kernel.
Get started
-
Build Alioth from source,
cargo build --release --target x86_64-unknown-linux-gnu
-
Make an initramfs with u-root,
-
Boot a Linux kernel with 2 CPUs and 4 GiB memory:
cargo run --release --target x86_64-unknown-linux-gnu -- \ -l info \ --log-to-file \ run \ --kernel /path/to/vmlinuz \ --cmd-line "console=ttyS0" \ --initramfs /path/to/initramfs \ --mem-size 4G \ --num-cpu=2
Disclaimer
Disclaimer: Alioth is not an officially supported Google product.