From 25100d8884da14c48bfac12753e820be04028a05 Mon Sep 17 00:00:00 2001 From: tv Date: Wed, 25 Nov 2026 22:09:34 +0000 Subject: 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. --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index fe54ab0..f9e32de 100644 --- a/README.md +++ b/README.md @@ -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): -- cgit v1.3.1