aboutsummaryrefslogtreecommitdiffstats
path: root/layers/switch.nix
Commit message (Collapse)AuthorAgeFilesLines
* rigs: the README, and the restHEADmastertv17 hours1-1/+1
| | | | | | | | The README is about rigs now, NixOS guests, each a computer of its own, in Firecracker or Cloud Hypervisor, with the new names in its examples (rig.home.required, rig.secrets, rig-drop-caches, ~/rig-store.img, rig-layer-K images), and where any VMM is meant, it says the VMM, not Firecracker.
* rigs: run-rig, not run-firecracker-vmtv17 hours1-2/+2
| | | | | | The run script starts its VMs in Cloud Hypervisor, too, so it's pkgs/run-rig, and run-rig (also its lock files), and the examples' paths are /path/to/rigs.
* rigs: the guest's names, rig.* and rig-*tv17 hours1-1/+1
| | | | | | | | | | | | The project is called rigs now, as it runs its VMs in Cloud Hypervisor, too, not only Firecracker. So the guest's options (rig.secrets, rig.home.required, rig.nix, ...), its kernel command line (rig.vmm, rig.home, rig.xchg, rig.registration, rig.9pPORT), its units (rig-secrets, rig-home, rig-xchg, rig-vmm-exit, rig-drop-caches, rig-rw-store-unshadow), the drives' labels (rig-layer-K, rig-store, rig-home; the run script relabels existing store and home images), and the images (rig-layer-K.img) lose the fc and firecracker. Firecracker itself, the VMM, keeps its name.
* layers/switch.nix: switching a running guest, for developmenttv4 days1-0/+25
Every change to a guest meant a new image and a reboot. For a faster development loop, a guest with nix can now switch to a new build of its system instead: layers/switch.nix, imported into a layer, turns the switch on (the base system keeps it off, as a default now), and the run script's derivation has the system, so the host builds it with nix-build -A toplevel and runs its switch-to-configuration in the guest, which sees the host's store, where it got built (tested: a path added on the host shows up in the running guest). A switched guest runs what it didn't boot, so for production, it's still a reboot with the new run script. The kernel, its command line, Firecracker's configuration, new secrets, and adding or removing layers need one anyway. A path the guest looked for before the host had it stays missing, as the store's overlay remembers that (tested), until the guest drops its caches, which takes seconds, so that's documented, not done every time: nothing in the guest looks for paths it doesn't have, as a rule.