From 91df6befa2b0bd5a5d0ea7da1ee70e708950dd61 Mon Sep 17 00:00:00 2001 From: clover caruso Date: Sun, 22 Nov 2026 00:12:20 -0800 Subject: [PATCH] Point the Mac VM bridge at the Mac's real address and revive the Phoenix box hostAddress was 10.0.0.189, which nothing answers; the Mac is 10.0.0.222, so the dashboard reported both Mac VMs offline. gui-agent drops to 20 GiB. m3-phoenix-box gets a revive LaunchAgent like gui-agent's, and a dashboard stop leaves a marker so revive keeps it down. Assisted-by: claude-sonnet-5.5 --- config/mac-studio-sandbox.json | 2 +- tools/mac-agent-vm.md | 8 ++++---- tools/mac-vm-bridge.py | 1 + tools/phoenix-box.md | 5 +++++ 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/config/mac-studio-sandbox.json b/config/mac-studio-sandbox.json index 8da3cac8e807f04115cdf2af537d91e2146ddca9..787385ec76759b5aca6cbe0e5a0cffdc2516480f 100644 --- a/config/mac-studio-sandbox.json +++ b/config/mac-studio-sandbox.json @@ -1,6 +1,6 @@ { "dataset": "globe/clover/mac-studio-sandbox", "mountPoint": "/srv/mac-studio-vm/sandbox", - "hostAddress": "10.0.0.189", + "hostAddress": "10.0.0.222", "guestAddress": "10.0.0.124" } diff --git a/tools/mac-agent-vm.md b/tools/mac-agent-vm.md index c4a1d3a81dfbccaa06e1d522c37526d26e95063c..46493975f2b6df726d1edd80738650c5121aae74 100644 --- a/tools/mac-agent-vm.md +++ b/tools/mac-agent-vm.md @@ -79,13 +79,13 @@ Hub with **+ → Pair Nearby Device…** and Settings → Privacy & Security → Developer Mode on the phone. Older iOS needs a cable, which the guest cannot have. -The guest has 28 vCPUs, 48 GiB RAM, and a 1440×900 display. vCPUs do not reserve +The guest has 28 vCPUs, 20 GiB RAM, and a 1440×900 display. vCPUs do not reserve physical cores. CPU count and RAM changes require a cold boot. No automatic -lock/unlock controller or CPU affinity is installed. The guest's 48 GiB budget +lock/unlock controller or CPU affinity is installed. The guest's 20 GiB budget is fixed for a run. Apple [allocates physical memory on demand](https://developer.apple.com/documentation/virtualization/vzvirtualmachineconfiguration/memorysize), -so it need not occupy 48 GiB immediately. Stock Tart has no verified balloon or +so it need not occupy 20 GiB immediately. Stock Tart has no verified balloon or guest-aware reclaim path; sizing assumes previously used pages may remain -backed until the VM stops. This follows Clover's 48 GiB fallback. +backed until the VM stops. Clover chose 20 GiB on 2026-11-22. The 128 GB sparse disk contains a system APFS container of about 122 GB, a 5.4 GB recovery partition, and the original boot container. The system diff --git a/tools/mac-vm-bridge.py b/tools/mac-vm-bridge.py index 252228a651fff01d3a7a1a4dd303a4f293776555..283d09859124e869066c1c9dfbd4f8cb92a2691b 100644 --- a/tools/mac-vm-bridge.py +++ b/tools/mac-vm-bridge.py @@ -123,6 +123,7 @@ def lifecycle(action): def locked_power(name, action): if action in {"stop", "reboot"}: + (vm.PRIVATE / name / "stopped").touch() vm.tart("stop", name, timeout=120) if action in {"start", "reboot"}: subprocess.run([str(LOCKED_START)], check=True, stdout=subprocess.DEVNULL, timeout=30) diff --git a/tools/phoenix-box.md b/tools/phoenix-box.md index 1767a8f0dc7be1c684915dde052a42f6baa7d857..538b9e5f5e2f0cf3e429a1e741af3d51c4de769e 100644 --- a/tools/phoenix-box.md +++ b/tools/phoenix-box.md @@ -11,6 +11,11 @@ flags: headless, `--vnc-experimental`, and Softnet with every destination blocke Softnet filters by address, not port, so the VM can reach every port Snow Globe accepts on the tailnet. +- **Recovery:** the `net.paperclover.m3-phoenix-box-revive` LaunchAgent runs + `start-m3-phoenix-box revive` every 30 seconds through `ssh localhost`, so a crash or + host reboot restarts the VM unless a dashboard stop left `private/m3-phoenix-box/stopped` + (any start clears it). Restarts log to `~/Library/Logs/m3-phoenix-box-revive.log`. + After a host reboot nothing runs until Clover unlocks FileVault and logs in. - **Names:** the guest has no DNS (its gateway is blocked), so `/etc/hosts` maps `spacebar.paperclover.net` to `100.64.0.1`. Go ignores `/etc/hosts` on macOS unless `GODEBUG=netdns=go`, which `run-phoenix-spacebar` sets for the Caddy relay. -- 2.54.1