diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -1,6 +1,7 @@ # firecracker -NixOS guests in [Firecracker](https://firecracker-microvm.github.io/), +NixOS guests in [Firecracker](https://firecracker-microvm.github.io/) +(or Cloud Hypervisor, see below), started from a NixOS host, reached by ssh, or with `layers/console.nix`, dropping into a root shell on the serial console. Boots in about a second and a quarter. Stable Nix, no flakes. @@ -97,7 +98,8 @@ the shell there asks the terminal before each prompt (`resize`, which works in tmux, too). A tmux attached on the console keeps the size it started with: detach and attach again after resizing. -Leave the guest with `reboot` (there, or via ssh, see below). +Leave the guest with `reboot` (there, or via ssh, see below; in Cloud +Hypervisor, `poweroff`). The guest's store is read-only, and there's no nix, unless it has the nix layer, preferably first, so its image is the same for all guests @@ -168,6 +170,11 @@ faster, but changes may not show up while the guest runs). Other modes: The guest gets 2 CPUs and 1024 MiB unless told otherwise (`--vcpus N`, 1 to 32; `--mem-size MIB`). +The same build also runs in [Cloud +Hypervisor](https://www.cloudhypervisor.org/) instead of Firecracker, +with `--vmm cloud-hypervisor`. It restarts the guest on `reboot`, so +leave it with `poweroff` there. + The guests run sshd. Its host key is a secret (see below), so it's not in the store, and the run script requires it: `--secret ssh_host_ed25519_key=FILE` (an ed25519 private key without passphrase). |
