diff options
| author | tv <tv@krebsco.de> | 2026-11-25 22:09:34 +0000 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-11-25 22:09:34 +0000 |
| commit | 25100d8884da14c48bfac12753e820be04028a05 (patch) | |
| tree | 57e6a0d29d38fd739738160e95df39e3818dc9e6 /README.md | |
| parent | 00b15b27c2f4510c262474c8ae54be588c575476 (diff) | |
run-firecracker-vm: /xchg only with --xchg DIR
Every guest got the directory xchg, where the run script was started,
at /xchg, writable, and shared with every other VM started in the same
directory: a way across the boundary between the VMs, and to the host,
that most guests don't need (tv works with them via ssh), which is what
the VMs are for. Now there's no /xchg unless asked for: --xchg DIR
serves DIR (created if missing) via 9P, and passes fc.xchg, for which a
generator in the guest writes the automount; without it, there's no 9P
server for it, and no /xchg in the guest at all.
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -14,8 +14,8 @@ The guest gets: host's Nix store, read-only, and a writable layer on top of both, so nix and `nix-shell` work, and `/nixpkgs`: the host's nixpkgs, read-only, on the guest's `NIX_PATH`; -- `/xchg`: the directory `xchg` in the current working directory, shared - with the host (and with other VMs started in the same directory); +- optionally (`--xchg DIR`), `/xchg`: a directory of the host's, shared + with it (and with other VMs given the same directory); - network access only to HTTPS, through a proxy on the host that allows only listed domains, optionally only listed paths. @@ -204,7 +204,7 @@ A guest's address is its VM's, by name (`vms`, see host setup), or else its tap's own (see `fc-egress vms`). Secrets, like API keys (and that host key), come from the host at boot, -never through the store or `/xchg` (which other VMs started in the same +never through the store or `/xchg` (which other VMs given the same directory see): a layer declares what it needs, where it goes (default: `/run/secrets/NAME`), and whose it is (default: root's, 0400): |
