Skip to content

Acceptance

The last hour: one pass over everything, from the outside in, with a result you can read at a glance. Then an honest list of what this guide could not prove before it was written, so you know where to look twice.

Mac

Terminal window
echo "== VMs"; for h in infra home standby; do ssh -o ConnectTimeout=5 $h 'printf "%-8s %s containers, disk %s, updates %s\n" "$(hostname)" "$(docker ps -q | wc -l)" "$(df -h / | awk "NR==2{print \$5}")" "$(systemctl is-enabled unattended-upgrades)"' || echo "$h UNREACHABLE"; done
echo "== LUKS"; for h in infra home standby; do ssh $h 'lsblk -o TYPE | grep -c crypt' | sed "s/^/$h: /"; done
echo "== DNS"; dig +short +time=2 @10.0.2.5 debian.org | head -1; dig +short +time=2 @10.0.2.5 doubleclick.net | head -1
echo "== HA"; curl -s -o /dev/null -w "%{http_code}\n" http://10.0.5.2:8123/manifest.json
echo "== Remote"; curl -s -o /dev/null -w "%{http_code}\n" https://ha.example.com/manifest.json
echo "== Targets"; curl -s http://10.0.2.5:9090/api/v1/targets | jq -r '[.data.activeTargets[].health] | group_by(.) | map("\(.[0]): \(length)") | join(", ")'
echo "== NAS"; nc -zv -G 2 10.0.2.2 445 2>&1 | tail -1; nc -zv -G 2 10.0.2.2 22 2>&1 | tail -1
echo "== Backups"; for h in home infra; do ssh $h 'date -d @"$(sudo cat /var/lib/nas-backup/last-success)" "+%F %R"' | sed "s/^/$h: /"; done; tmutil latestbackup | tail -1
echo "== Standby"; ssh standby 'sudo ws-ctl status | head -4'
echo "== Mac"; fdesetup status; pmset -g | grep -E "^ (sleep|autorestart)"; /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate

Expected.

Line Result
VMs Three lines, disk under 70 %, enabled
LUKS 1 or more for infra and standby. home: 1 on the from-scratch path, 0 on the restore path until you do part F of chapter 7 (J15)
DNS An address, then 0.0.0.0 (blocked)
HA, Remote 200, 200
Targets up: N and nothing down
NAS 445 succeeds, 22 refused or timed out
Backups Three dates of today
Standby Role standby, the primary seen
Mac FileVault is On, sleep 0, autorestart 1, firewall enabled

Tick each line only after seeing it yourself.

Network

  • The UDM Pro and the switch are linked at 10 GbE (UniFi Devices > USW Pro 24 > Overview, uplink 10 GbE).
  • The zone matrix shows no Allow All from IoT, Surveillance, Neighbor or Standby towards an internal zone (step 10.3).
  • From a phone on the IoT Wi-Fi: no access to http://10.0.5.2:8123, https://10.0.2.2:5001, https://10.0.1.1. Internet works (step 10.5).
  • From the neighbour’s Wi-Fi: internet only.
  • From the work Mac (Work, VLAN 7): internet works, and nc -zv -G 2 10.0.5.2 8123, nc -zv -G 2 10.0.2.2 445 and https://10.0.7.1 all time out.
  • Settings > Networks lists eight networks numbered 1 to 7 and 100, no Wired and no WiFi_IoT, Surveillance on VLAN 3, Standby on VLAN 6, and each VLAN ID equals the third number of its subnet.
  • An IoT device cannot reach Home Assistant around the firewall: from a phone on the IoT Wi-Fi, http://10.0.4.2:8123 times out (J28).
  • From mobile data with the admin VPN on: https://10.0.1.1 opens. With it off: nothing answers on your public address (nmap -Pn from outside shows only the WireGuard port, UDP 51820).
  • AirPlay to the TV and HomeKit accessories work from a phone on the main Wi-Fi (step 10.6).
  • UniFi: Settings > Control Plane > Admins lists you, unpoller and protect-local, nobody else. Two-factor is on for your UI account.

Mac

  • FileVault on, recovery key in 1Password, no automatic login.
  • After a restart: one login, vm-unlock all, and the checks of 15.1 pass. You have done this once for real.
  • vm-unlock worked without the manual console (or you noted in the open items that it did not).
  • No service listens on the Mac: sudo lsof -iTCP -sTCP:LISTEN -P -n | grep -v "127.0.0.1\|\[::1\]" shows nothing you did not expect.

infra VM

  • Every DHCP network hands out 10.0.2.5 and the gateway as DNS servers. A client shows up by name in AdGuard’s query log.
  • Pi-hole and the monitoring containers on the NAS are gone (step 11.2).
  • Grafana opens at https://grafana.home.arpa:8444 without a certificate warning, and the Home Overview dashboard draws.
  • Insights Plus at https://insights.home.arpa:8443 shows firewall events from the last five minutes.
  • ssh infra 'sudo iptables -S DOCKER-USER | head -3' shows the jump to INFRA-FWD, also after a restart of the VM.

home VM

  • Home Assistant: Settings > System > Repairs is empty. Its address is 10.0.5.2, and nothing answers at 10.0.5.20 any more.
  • Matter devices and Thread devices answer. The HomeKit Bridge is still paired (the Home app shows the bridged accessories).
  • The broker accepts the homeassistant user and refuses an anonymous client: mosquitto_sub -h 10.0.5.2 -t '#' -C 1 -W 3 ends with Connection Refused: not authorised.
  • Every camera streams in the Home app, and a walk in front of one produces a HomeKit Secure Video clip.
  • From mobile data, the Home Assistant app connects through https://ha.example.com, and a wrong password five times bans the address (step 7.13).
  • Two-factor is on for every Home Assistant account.

NAS

  • One address, 10.0.2.2. No container, no package beyond Hyper Backup.
  • It cannot reach the internet, and its clock is right.
  • SNMP health shows in Grafana, and its log lines arrive in Loki.

Backups

  • Each of the four restore tests of chapter 12, part E, has been done once, with a date.
  • One USB disk is at another address today.
  • The Home Assistant backup key, the two restic passwords, the Time Machine password and the Hyper Backup key open in 1Password from your phone (the Mac may be the thing that is lost).
  • The 1Password Emergency Kit is printed and stored away from the house.

Remote site and standby

  • The remote owner confirmed each part of chapter 13 in writing (a message is enough).
  • ws-ctl doctor ends with Tout est en ordre. on both machines.
  • The drill of steps 14.15 to 14.17 passed, with its date in the shared incident log.
  • The installation door of step 14.5 is closed: no key of yours in their admin account, no 99-install-window file.
  • From the standby, nothing in your home answers (step 14.2), and from your Mac nothing at the remote site answers (step 13.18).

Repository and site

  • cd $INFRA && git status --short is empty and scripts/check-secrets.sh passes.
  • Every latest in vm/infra/.env.tpl has been replaced by the tag that runs (step 6.4): grep -c "=latest" vm/infra/.env.tpl prints 0.
  • The public site shows this guide, and its check for personal information passed in the last build.
  • ~/infra-migration is on the external disk and deleted from the Mac, one month after the last cutover.

This guide merges four bodies of work and was written without access to the hardware. Everything below is stated where it matters in the chapters. It is gathered here so that nothing unproven hides behind a confident sentence. Strike each line when you have seen it work.

Never run on hardware

Item Where What to do if it fails
mac/bin/vm-unlock and vm-tty (typing the disk passphrase into UTM’s serial console) 4.12, 5.13 The manual screen method of step 4.12 is proven. Note what the console showed and fix the script’s prompt pattern
mac/launchd/com.example.vm-up.plist at login 4.11 Run vm-up by hand. Check System Settings > General > Login Items allows it
vm/infra/firewall.sh (port rules in DOCKER-USER) surviving a restart 6.6 sudo /srv/stack/firewall.sh again, then sudo netfilter-persistent save
The backup job nas-backup against DSM 7.0 with forced SMB encryption 12.3, 12.4 Step 12.4’s error table. vers=3 can be set to 3.0 in the script
The warm-standby kit on real machines (102 simulated checks only) 14 ws-ctl doctor, then the drill. The first database reload of Immich is the sensitive point
The kit’s playbook driven from the Mac through the standby VM (ProxyCommand with nc) 14.5, 14.7 Syntax-checked against the kit, never run against two hosts. Fallback: the kit README’s manual installation, section 3 on their server and section 4 on the standby, with J19’s sentinel correction
The proxy’s backup upstream at the remote site 14.13 nginx -t before reload. The template is the kit’s, untested on a real instance
The Cloudflare path rule ^/ws/role$ in a dashboard-managed tunnel 14.9 Try the path without anchors
The home VM’s wake-on-LAN leg with its subnet route removed (J28): the TV must still wake 7.14 Remove the two post-up lines that delete the route and add the drop rule in vm/home/etc/network/interfaces, and tell me: the firewall then no longer sees those flows
Changing the Surveillance network’s VLAN ID and subnet in place, with cameras attached 8.14 The step gives the fallback: a second network, then rename
A manual IPsec tunnel between the two gateways with these exact proposals 13.15 Both sides on Auto first, then tighten

Values that are best estimates

Item Where How to settle it
Image tags in vm/home/.env.tpl and vm/infra/.env.tpl 6.4, 7.3, 8.2 Each step tells you to read the current tag and pin it. ALLOY_VERSION, LOKI_VERSION, GRAFANA_VERSION and CADDY_VERSION were set from memory of late 2026 releases
Memory of 4 GB per VM 5 free -h on each VM after a week. Insights Plus and a failover on the standby are the two that may want more
The Insights Plus database user and name (unifi, unifi_logs) 12.3 The check in step 12.3
UniFi Network 11 menu names 3, 10 The setting is in the same section under a nearby name
The NAS’s interfaces in other VLANs 8.8, 11.4 DSM’s Network Interface list is the truth
Custom component names for Home Assistant on the from-scratch path 7.8 Compare with custom_components/ in your backup
Every address, container name and database name at the remote site 13, 14 Step 13.2. The files to correct are vm/standby/ansible/inventory.yml and overrides.yml

Open work, outside this guide

Item Why it is open Where it belongs
Health rules home-overview.rules.yml still carry Pi-hole, DNS and container scopes that no longer exist The rules are generated by the Home panel project ha-home-panel: regenerate, then scripts/vm-push.sh infra (step 6.14)
The home VM on the restore path is not LUKS-encrypted R3 chose the simple move over a rebuild Chapter 7, part F, when convenient. FileVault covers it meanwhile
The remote site’s whole chapter is a proposal It is another person’s network Their agreement, part by part (chapter 13)
26 performance proposals for the kit (lighter database transfer first) Not decided, not measured The kit’s own repository. Annex B of the remote site’s plan
A UPS With R5, a power cut means a login Hardware
Alerting when a nightly backup fails Today you look once a month (15.4) A Prometheus rule on the age of /var/lib/nas-backup/last-success, through node exporter’s textfile collector
mac/services and mac/bin/svc (services under Apple’s container runtime) Superseded by the infra VM (J11), kept for history Delete them once the infra VM has run for a month

When every box of 16.2 is ticked and every line of the first table in 16.3 is struck or has a note:

Terminal window
cd $INFRA && git tag -a setup-complete-$(date +%F) -m "Guide executed end to end" && git push origin --tags

From here, chapter 15 is the only one you need regularly.