A Nix Flake to build NixOS and run it on one of several Type-2 Hypervisors.
Warning: This is a Nix Flakes-only project. Use with nix-shell -p nixFlakes
nix registry add microvm github:astro/microvm.nix(If you do not want to inflict this change on your system, just
replace microvm with github:astro/microvm.nix in the following
examples.)
nix flake init -t microvmnix run microvm#qemu-example
nix run microvm#firecracker-example
nix run microvm#cloud-hypervisor-example
nix run microvm#crosvm-example
nix run microvm#kvmtool-examplenix run microvm#vmCheck networkctl status virbr0 for the DHCP leases of the
MicroVMs. They listen for ssh with an empty root password.
- Declarative configuration of MicroVMs with
microvm.vms - The
microvmcommand to imperatively manage the installation
Use this on a (physical) machine that is supposed to host MicroVMs.
This module is automatically included in MicroVMs.
- Boot with root off virtiofs, avoiding overhead of creating squashfs image
- Provide a writable
/nix/store - Distribute/fail-over MicroVMs at run-time within a cluster of hosts