diff options
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 11 |
1 files changed, 7 insertions, 4 deletions
@@ -197,12 +197,15 @@ a service layer costs a small image of its own, named after its file (`firecracker-layer-2-my-service.img`). Changing a layer changes the images of the layers above it. -To use a cut-down kernel, based on Firecracker's recommended guest -configuration, instead of `linuxPackages_latest`: +What all layers share goes into the base system, with `base`, NixOS +modules like layers', but in the base image. The kernel, for one: set +in a layer, it would leave the base's kernel modules unused in the base +image. So to use a cut-down kernel, based on Firecracker's recommended +guest configuration, instead of `linuxPackages_latest`: ```sh nix-build pkgs/run-firecracker-vm \ - --arg kernelPackages 'import pkgs/run-firecracker-vm/kernel.nix {}' + --arg base '[ base/kernel.nix ]' ``` ## Egress @@ -282,7 +285,7 @@ the list its own VM uses. - `pkgs/run-firecracker-vm/default.nix`: the guest's NixOS configuration, the Firecracker configuration, and the `run-firecracker-vm` script. -- `pkgs/run-firecracker-vm/kernel.nix`: the cut-down kernel. +- `base/kernel.nix`: the cut-down kernel, for `base`. - `layers/nix.nix`: nix, as a layer. - `layers/console.nix`: a shell on the serial console, to import into a layer. - `modules/host/default.nix`: the host's side: network, DHCP/DNS, egress |
