Overview
One ordered path that builds the whole home infrastructure on a brand new Mac mini: the UniFi network, three virtual machines, Home Assistant and its companions, DNS and monitoring, the NAS as backup storage, remote access, and the warm standby. It replaces the separate Home Assistant, UniFi, UTM and warm-standby documents. Where those disagreed, Decisions says which one won and why.
What you end up with
Section titled “What you end up with” Internet | UDM Pro (router, firewall, Protect, VPN) | 10G DAC USW Pro 24 (switch) __________________|______________________________ | | | Mac mini (host) Synology NAS APs, cameras, 10.0.5.3, VLAN 5 10.0.2.2, VLAN 2 IoT, HomePods FileVault on backups only, no internet | | UTM, bridged on en0, VLAN tags added inside each VM | |-- home 10.0.5.2 VLAN 5, untagged (+ 10.0.4.2 on VLAN 4) | Home Assistant, Matter server, Mosquitto, Scrypted, cloudflared | |-- infra 10.0.2.5 VLAN 2 | AdGuard Home (DNS), Prometheus, Grafana, Loki, Alloy, | UnPoller, exporters, UniFi Insights Plus, Caddy | '-- standby 10.0.6.2 VLAN 6, isolated warm-standby kit: a versioned copy of the remote site's applications, taking over automatically if that site fails | | site-to-site VPN, named flows only | Remote site: application server, NAS, proxy| Machine | Role | Address | Runs |
|---|---|---|---|
| Mac mini | Host and daily workstation | 10.0.5.3 (VLAN 5, untagged) | UTM, 1Password, this repository. No service runs on macOS itself |
home VM |
Everything Home Assistant | 10.0.5.2 (VLAN 5, untagged like the Mac), 10.0.4.2 (VLAN 4, wake-on-LAN only) | Home Assistant, Matter server, Mosquitto, Scrypted, cloudflared |
infra VM |
Personal services | 10.0.2.5 (VLAN 2) | AdGuard Home, Prometheus, Grafana, Loki, Alloy, UnPoller, blackbox, node and SNMP exporters, cAdvisor, UniFi Insights Plus, Caddy |
standby VM |
Warm failover for the remote site | 10.0.6.2 (VLAN 6) | warm-standby kit 2.2.0, the remote site’s application stacks (stopped until a failover), restic |
| Synology NAS | Backup storage only | 10.0.2.2 (VLAN 2) | No containers. SMB shares for backups, SNMP and syslog out |
| UDM Pro | Router, firewall, UniFi Protect, VPN | 10.0.N.1 on every VLAN N | UniFi Network 11, Protect |
Networks
Section titled “Networks”On every subnet, addresses .1 to .10 are kept for statically set services and DHCP pools start at .11.
| VLAN | Subnet | Name | Zone | What lives there |
|---|---|---|---|---|
| 1 | 10.0.1.0/24 | Default | Internal | UniFi devices, management |
| 2 | 10.0.2.0/24 | Servers | Internal | NAS .2, infra VM .5 |
| 3 | 10.0.3.0/24 | Surveillance | Surveillance | UniFi cameras |
| 4 | 10.0.4.0/24 | IoT | IoT | Every IoT device, wired or wireless, the TV; home VM .2 for wake-on-LAN |
| 5 | 10.0.5.0/24 | Trusted | Internal | Your own devices, wired or wireless: home VM .2, Mac mini .3, phones, HomePods, Apple TV, workstations |
| 6 | 10.0.6.0/24 | Standby | Standby | standby VM .2, nothing else. The number echoes the remote site’s 10.6.x.x |
| 7 | 10.0.7.0/24 | Work | Work | The work Mac, by cable only (switch port 3). Internet only, isolated from every other network |
| 100 | 10.0.100.0/24 | Neighbor_WiFi | Neighbor | The separate household, internet only |
Every VLAN ID equals the third number of its subnet (R11). The networks Wired (VLAN 3) and WiFi_IoT (VLAN 6) existed before this guide and are folded away in steps 3.4 and 8.14: a network is defined by who may talk to whom, not by the cable or the radio (R10). The freed numbers are reused: VLAN 3 for Surveillance, which leaves VLAN 8, and VLAN 6 for Standby (R12). The result is one unbroken run, 1 to 7, plus 100 for the neighbour.
How to read a step
Section titled “How to read a step”Every step has the same four parts, so you can stop after any step and know where you stand.
- Why in one or two sentences, so you can adapt if a screen or version differs.
- Do: the exact commands or clicks. A label says where to run them:
Mac,home,infra,standby,NAS,UniFiorRemote site. - Verify: a command or a thing to look at, with the result you should get. Do not go on until it matches.
- Rollback: how to undo that one step.
Most chapters offer two paths. Restore carries over what runs today (the Home Assistant configuration, the Matter fabric, Scrypted’s camera pairings, the Pi-hole lists, the dashboards). From scratch builds the same service empty. The steps say where the paths split and where they join again.
Shell variables used throughout, set once per Terminal window on the Mac:
export INFRA=~/PycharmProjects/infrastructure # this repositoryexport U=/Applications/UTM.app/Contents/MacOS/utmctlOrder and time
Section titled “Order and time”Do the chapters in order. Each one leaves the house working, so you can spread them over several days.
| # | Chapter | You need | Time |
|---|---|---|---|
| 1 | Decisions | Read only | 15 min |
| 2 | Prepare: 1Password vault, inventory, backups of what runs today | Current Mac, NAS | 1.5 h |
| 3 | Network groundwork: 10G uplink, VLANs, the Mac’s switch port, service accounts | A 10G DAC cable | 45 min |
| 4 | Mac mini | The new Mac | 1.5 h |
| 5 | VM base build, done once per VM | UTM, Debian ISO | 45 min per VM |
| 6 | infra VM: DNS, monitoring, logs |
3 h | |
| 7 | home VM: Home Assistant, Matter, Mosquitto |
30 min cutover in daytime | 2 h |
| 8 | Cameras: Scrypted and HomeKit Secure Video | A Home hub | 1 h |
| 9 | Remote access: Cloudflare Tunnel, Claude | GoDaddy login | 1 h + DNS wait |
| 10 | UniFi hardening: zones, policies, the audit’s fixes | A quiet hour | 2.5 h |
| 11 | NAS: storage only | DSM admin | 1.5 h |
| 12 | Backups: nightly jobs, Time Machine, the off-site disks, restore tests | Two USB disks | 2 h |
| 13 | Remote site | The remote owner’s agreement, part by part | Several weekends |
| 14 | standby VM |
Chapter 13, parts 0 to 6 | 3 h + first sync |
| 15 | Operations: reboot checklist, updates, failover commands | Read, then keep at hand | |
| 16 | Acceptance: final checklist, what is not yet proven on hardware | 1 h |
The order follows one rule: build the place where a service will live, move the service, and only then tighten the network around it. The infra VM comes first among the VMs because it carries DNS, which every other machine uses.
What this guide does not cover
Section titled “What this guide does not cover”- Home Assistant automations, scenes and the Home panel. They live in
homeassistant/in this repository and in theha-home-panelrepository, and they move as files with the configuration folder. - The remote owner’s network agent. Changes to it are proposed to them as a patch, never applied from here.