From e0b8ef7a5f907baf7362ee34f24c107238590a8f Mon Sep 17 00:00:00 2001 From: tv Date: Tue, 17 Nov 2026 02:52:46 +0000 Subject: run-firecracker-vm --name A VM can now have a name: run-firecracker-vm --name NAME. It's unique among the user's running VMs (a lock in the user's runtime directory, like the taps'), becomes the guest's host name (systemd.hostname= on the kernel command line), and goes to /run/fc-egress/TAP.name while the VM runs, for fc-egress. Names are letters, digits and -, and can't look like a tap's. fc-egress takes a running VM's name or tap where it takes a VM: -v VM works on the list the VM uses, use VM LIST switches it to another list, and vms shows tap, name and list. The logs keep saying taps (fc-egress vms maps them). --- README.md | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 497c07c..667fc4a 100644 --- a/README.md +++ b/README.md @@ -101,16 +101,17 @@ fc-egress lists fc-egress log -f ``` -Each VM uses one list, `default` unless given another: +Each VM uses one list, `default` unless given another, and can have a +name (also its host name; unique among your running VMs): ```sh -./result/bin/run-firecracker-vm --egress work +./result/bin/run-firecracker-vm --egress work --name box +fc-egress vms # running VMs: tap (as in the log), name, list +fc-egress -v box allow example.org # the list box uses +fc-egress use box default # switch box to another list ``` -A list that doesn't exist allows nothing. `fc-egress vms` shows the -running VMs' taps (as in the log) and their lists. Which list a running -VM uses is in `/run/fc-egress/TAP`; to switch, write another name there -(`echo default > /run/fc-egress/fctap3`). Changes to lists and switches +A list that doesn't exist allows nothing. Changes to lists and switches apply to the next connection. Whole domains get passed through encrypted. Domains with path rules get decrypted to check each request, with certificates from a CA the host creates on first start -- cgit v1.3.1