Skip to content

Join a Mac Mini to k3s with UTM

Wiki: How to join an Apple M4 Mac Mini to an existing K3s cluster using UTM VM with bridged networking. This is the recommended approach — simpler, faster, and more capable than Lima VM.


Overview

Since macOS cannot run K3s natively (Linux only), we run a UTM VM (Debian 12) inside the Mac Mini with bridged networking — giving the VM a real LAN IP directly accessible by all cluster nodes. No socat, no IP aliases, no port forwarding needed.

LAN (<HOME_LAN_CIDR>)
├── castis-desktop   <CASTIS_DESKTOP_IP>   control-plane
├── nuc-a            <NUC_A_IP>    control-plane
├── nuc-b            <NUC_B_IP>    control-plane
├── mac-mini         <MAC_MINI_IP>    macOS host (en0)
└── mac-mini VM      <MAC_MINI_VM_IP>    UTM bridged VM (enp0s1) ← K3s worker

Key IPs

Host Interface IP Role
Mac Mini en0 <MAC_MINI_IP> macOS host — static LAN IP
UTM VM enp0s1 <MAC_MINI_VM_IP> K3s worker — real bridged LAN IP

Why UTM over Lima

Lima vzNAT UTM Bridged
Networking NAT (socat needed) Real LAN IP
socat proxies 4 required None needed
IP alias /32 trick needed Not needed
Pod latency ~14ms ~0.9ms
Longhorn replicas Broken (ports 10000-10999 blocked) Works natively
NodePort Limited Works natively
Complexity High Low
Setup time Hours Minutes

UTM works because it's distributed via the Mac App Store with Apple's com.apple.vm.networking entitlement — the same entitlement that allows bridged networking. Lima doesn't have this entitlement.


Prerequisites

  • Mac Mini with macOS (Apple Silicon, M4)
  • Existing K3s cluster with known server IP and node token
  • Mac Mini connected via Ethernet (en0) to same LAN as cluster nodes
  • UTM installed (free from https://mac.getutm.app or $9.99 on App Store)
  • Debian 12 ARM64 netinstall ISO
  • Automatic Login enabled for the Mac Mini's user account (see Phase 6a — required, not optional; without it, LaunchAgents never fire after a reboot)

Phase 1 — Mac Mini Host Setup

Step 1 — Set Static IP on Mac Mini

sudo networksetup -setmanual Ethernet <MAC_MINI_IP> 255.255.255.0 <LAN_GATEWAY_IP>
sudo networksetup -setdnsservers Ethernet <PUBLIC_DNS_1_IP> <PUBLIC_DNS_2_IP>

Note: Do this from local console (VNC/screen) — you will lose SSH connection when IP changes.

Step 2 — Disable Sleep (Critical)

A cluster node must never sleep. When macOS sleeps the UTM VM pauses and kubelet stops sending heartbeats — cluster marks node NotReady.

sudo pmset -a sleep 0
sudo pmset -a disksleep 0
sudo pmset -a displaysleep 0
sudo pmset -a powernap 0

# Verify all zeros
pmset -g | grep -E "sleep|powernap"

Step 3 — Enable SSH on Mac Mini

sudo systemsetup -setremotelogin on
sudo systemsetup -getremotelogin
# Should show: Remote Login: On

Step 4 — Enable Auto Power-On After Power Failure

sudo systemsetup -setrestartpowerfailure on
sudo systemsetup -getrestartpowerfailure
# Should show: Restart After Power Failure: On

Step 5 — Install UTM

Download and install UTM:

# Option A: Homebrew
brew install utm

# Option B: Direct download
open https://mac.getutm.app

# Option C: App Store ($9.99, identical features + auto-updates)
# Search "UTM Virtual Machines" in App Store

Step 6 — Download Debian 12 ARM64 ISO

curl -L "https://ftp.debian.org/debian/dists/bookworm/main/installer-arm64/current/images/netboot/mini.iso" \
  -o ~/Downloads/debian-12-arm64.iso

Verify size (~136MB):

ls -lh ~/Downloads/debian-12-arm64.iso


Phase 2 — Create UTM VM

Step 7 — Create VM in UTM

Open UTM and click +:

  1. Select Virtualize (not Emulate)
  2. Select Linux
  3. Boot ISO: Browse → select ~/Downloads/debian-12-arm64.iso
  4. Memory: 16384 MB (16GB)
  5. CPU Cores: 6
  6. Storage: 500GB
  7. Check Open VM Settings before saving
  8. Click Save

Step 8 — Configure Bridged Networking

In VM Settings → Network tab: - Network Mode: Bridged (Advanced) - Bridge Interface: en0 - Emulated Network Card: virtio-net-pci

Click Save.


Phase 3 — Install Debian 12

Step 9 — Install Debian

Start the VM and follow the installer:

  • Language: English
  • Location: your country
  • Keyboard: American English
  • Hostname: mac-mini (or mac-mini-utm)
  • Domain: leave blank
  • Root password: set one
  • User: non (same as Mac Mini)
  • Timezone: Bangkok (or your timezone)
  • Partitioning: Guided - use entire disk → All files in one partition
  • Write changes: Yes

Software selection (important): - Debian desktop environment (uncheck) - SSH server - standard system utilities

Install GRUB → select the virtual disk → Finish installation

If "Download installer components" fails: Go to Execute a shell → ping <PUBLIC_DNS_1_IP> to verify network → exit → retry. The netinstall ISO needs internet access.

After installation: Stop VM → VM Settings → Drives → USB Drive → Clear the ISO path → Save → Start VM again to boot from disk.

Step 10 — First Boot Setup

After booting, log in as non. Install sudo:

su -
apt-get install -y sudo
usermod -aG sudo non
exit
exit

Log back in as non. Verify sudo works:

sudo apt-get update


Phase 4 — Configure VM as Server

Step 11 — Set Static IP

sudo nano /etc/network/interfaces

Replace DHCP config with:

auto lo
iface lo inet loopback

auto enp0s1
iface enp0s1 inet static
    address <MAC_MINI_VM_IP>
    netmask 255.255.255.0
    gateway <LAN_GATEWAY_IP>
    dns-nameservers <PUBLIC_DNS_1_IP> <PUBLIC_DNS_2_IP>

Apply:

sudo systemctl restart networking
ip addr show enp0s1 | grep inet
# Should show only <MAC_MINI_VM_IP>

Verify the VM IP is free first: ping -c 2 <MAC_MINI_VM_IP> from NUC-B — should get no reply.

Step 12 — Set Hostname

sudo hostnamectl set-hostname mac-mini

# Add to /etc/hosts
echo "127.0.1.1   mac-mini" | sudo tee -a /etc/hosts

Step 13 — Disable Sleep Inside VM

sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target

Step 14 — Set Timezone and Fix Locale

# Timezone
sudo timedatectl set-timezone Asia/Bangkok

# Fix locale
sudo sed -i 's/# en_US.UTF-8/en_US.UTF-8/' /etc/locale.gen
sudo locale-gen
sudo update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8

Step 15 — Install Essentials

sudo apt-get install -y curl wget git htop open-iscsi
sudo systemctl enable iscsid
sudo systemctl start iscsid

Phase 5 — Install K3s Agent

Step 16 — Get Cluster Token

Run on any control plane node (e.g. NUC-B):

sudo cat /var/lib/rancher/k3s/server/node-token
kubectl get nodes -o wide

Step 17 — Write K3s Config Before Installing

sudo mkdir -p /etc/rancher/k3s
sudo tee /etc/rancher/k3s/config.yaml << 'EOF'
node-name: mac-mini
node-ip: <MAC_MINI_VM_IP>
node-label:
  - kubernetes.io/arch=arm64
  - node-type=apple-silicon
EOF

Important: Write config BEFORE installing. K3s reads it during install. No node-external-ip needed — InternalIP is already correct with real bridged IP.

Step 18 — Install K3s Agent

curl -sfL https://get.k3s.io | \
  K3S_URL=https://<NUC_B_IP>:6443 \
  K3S_TOKEN=<NODE_TOKEN> \
  sh -s - agent

Step 19 — Fix and Lock Service File

The K3s installer writes reserved labels into the service file causing kubelet to crash. Fix and lock it:

sudo chattr -i /etc/systemd/system/k3s-agent.service 2>/dev/null
sudo tee /etc/systemd/system/k3s-agent.service << 'EOF'
[Unit]
Description=Lightweight Kubernetes
Documentation=https://k3s.io
Wants=network-online.target
After=network-online.target

[Install]
WantedBy=multi-user.target

[Service]
Type=notify
EnvironmentFile=-/etc/default/%N
EnvironmentFile=-/etc/sysconfig/%N
EnvironmentFile=-/etc/systemd/system/k3s-agent.service.env
KillMode=process
Delegate=yes
User=root
LimitNOFILE=1048576
LimitNPROC=infinity
LimitCORE=infinity
TasksMax=infinity
TimeoutStartSec=0
Restart=always
RestartSec=5s
ExecStartPre=-/sbin/modprobe br_netfilter
ExecStartPre=-/sbin/modprobe overlay
ExecStartPre=-/bin/sh -c '/usr/bin/pkill -9 containerd-shim; sleep 2'
ExecStart=/usr/local/bin/k3s agent
EOF

sudo chattr +i /etc/systemd/system/k3s-agent.service
sudo systemctl daemon-reload
sudo systemctl restart k3s-agent

Phase 6 — Auto-Start UTM VM on Mac Mini Boot

Step 20 — Get VM UUID

/Applications/UTM.app/Contents/MacOS/utmctl list
# Note the UUID of your VM

Step 21 — Create LaunchAgent

Get VM name first:

/Applications/UTM.app/Contents/MacOS/utmctl list
# Note the NAME of your VM (e.g. "Linux")

Note: utmctl may crash on newer UTM versions (v4.7.5+) with NSInvalidArgumentException. If so, use the AppleScript approach below instead.

Create the launchd plist using AppleScript (recommended — survives UTM updates):

cat > ~/Library/LaunchAgents/io.utm.mac-mini.plist << 'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>io.utm.mac-mini</string>
    <key>ProgramArguments</key>
    <array>
        <string>/bin/bash</string>
        <string>-c</string>
        <string>sleep 10 && open -a UTM && sleep 5 && osascript -e 'tell application "UTM" to start virtual machine "Linux"'</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>KeepAlive</key>
    <false/>
</dict>
</plist>
EOF

launchctl load ~/Library/LaunchAgents/io.utm.mac-mini.plist
launchctl list | grep utm

Replace "Linux" with your VM name if different.

Why AppleScript not utmctl? UTM v4.5+ deprecated the URI scheme and utmctl CLI breaks on UTM updates (v4.7.5 crashes with NSInvalidArgumentException). AppleScript is the official macOS automation interface and more stable across UTM versions.

Test auto-start manually

# Test AppleScript works before relying on launchd
open -a UTM
sleep 5
osascript -e 'tell application "UTM" to start virtual machine "Linux"'

# Verify VM started
ping -c 2 <MAC_MINI_VM_IP>

Phase 6a — Enable Automatic Login (REQUIRED — do not skip)

This step is added after a real incident (2026-07-30) where it was missing — see "Incident Log" below for the full story. Without this, the LaunchAgent in Phase 6 will never run after an unattended reboot, and the node will silently stay down for hours.

Why this is required

A LaunchAgent (like io.utm.mac-mini.plist above) only runs after a user logs into the GUI session (gui/<uid> domain in launchd). It cannot run at the macOS login screen. If the Mac Mini reboots — from a scheduled macOS software update, a power blip with auto-restart, or anything else — and nobody is physically present to type the login password, the Mac will sit at the login screen indefinitely. utmctl/AppleScript being fixed doesn't matter if the LaunchAgent never gets a chance to fire.

Enable it

System Settings → search bar (top-left) → type "Automatic login"
→ click the matching result
→ set "Automatic login" dropdown to the Mac Mini's own user account
→ enter password to confirm

(Exact path varies by macOS version — using the Settings search bar is the most reliable way to find it regardless of version. On some versions it lives under Users & Groups → Login Options.)

Verify it's set

defaults read /Library/Preferences/com.apple.loginwindow autoLoginUser
# Should print the username, e.g. "non" — NOT an error

Security trade-off — read before enabling

Automatic login means anyone with physical access to the Mac Mini can access the account without a password after a reboot. This is an acceptable trade-off for a headless cluster node kept in a physically secured location (locked server room/office). If the Mac Mini is somewhere more exposed, consider: - FileVault + automatic login (FileVault still requires a password once at the pre-boot screen, so this partially reintroduces the original problem — evaluate case by case) - Alternative: a LaunchDaemon targeting the loginwindow session type instead of a per-user LaunchAgent (more complex, not yet validated for this setup — open item if physical security is a concern)

End-to-end test

# From the Mac Mini itself
sudo reboot

# Wait ~2-3 minutes, then from any control-plane node:
kubectl get nodes
# mac-mini should show Ready on its own, with zero manual intervention

Phase 7 — Verification

# All nodes Ready?
kubectl get nodes -o wide
# mac-mini should show: InternalIP=<MAC_MINI_VM_IP> ExternalIP=<none>

# Metrics working?
kubectl top nodes

# Flannel public-ip correct?
kubectl get node mac-mini -o jsonpath='{.metadata.annotations}' \
  | python3 -m json.tool | grep public-ip
# Expected: "flannel.alpha.coreos.com/public-ip": "<MAC_MINI_VM_IP>"

# Pod-to-pod networking?
kubectl run test --image=nginx \
  --overrides='{"spec":{"nodeName":"mac-mini"}}'
sleep 30
POD_IP=$(kubectl get pod test -o jsonpath='{.status.podIP}')
kubectl run pingtest --image=busybox --rm -it --restart=Never \
  --overrides='{"spec":{"nodeSelector":{"node-type":"nuc"}}}' \
  -- ping -c 3 $POD_IP
# Expected: 0% packet loss, ~0.9ms latency

Boot Sequence

Mac Mini powers on
    │
    ▼
macOS login screen
    │
    ▼
Automatic Login (Phase 6a) — logs in immediately, no password wait
    │
    ▼
macOS network stack
    → en0 = <MAC_MINI_IP> (static)
    │
    ▼
GUI session (gui/<uid>) becomes active
    │
    ▼
io.utm.mac-mini LaunchAgent (10s delay)
    → open -a UTM          ← opens UTM app
    → sleep 5              ← wait for UTM to initialize
    → osascript: "tell UTM to start VM Linux"  ← AppleScript starts VM
    │
    ▼  (inside UTM VM)
enp0s1 = <MAC_MINI_VM_IP> (static, bridged)
    │
    ▼
k3s-agent.service
    → reads /etc/rancher/k3s/config.yaml
    → node-ip = <MAC_MINI_VM_IP> (real interface IP)
    → registers: InternalIP = <MAC_MINI_VM_IP>
    → flannel: public-ip = <MAC_MINI_VM_IP>
    → NUCs update FDB → <MAC_MINI_VM_IP>
    → cluster ready 

Important: If UTM updates and breaks utmctl, the AppleScript approach in the launchd plist still works. Always use AppleScript — not utmctl — for auto-start.

Equally important: None of the above fires at all if the Mac Mini is sitting at the login screen. Automatic Login (Phase 6a) is what turns "reboot" into "fully self-healing" instead of "silently down until someone notices."


Day-to-Day Management

# SSH into UTM VM directly
ssh non@<MAC_MINI_VM_IP>

# Check k3s-agent
ssh non@<MAC_MINI_VM_IP> "sudo systemctl status k3s-agent"

# Check VM status from Mac Mini
ssh non@<MAC_MINI_IP> "/Applications/UTM.app/Contents/MacOS/utmctl list"

# Start/stop VM manually
/Applications/UTM.app/Contents/MacOS/utmctl start <UUID>
/Applications/UTM.app/Contents/MacOS/utmctl stop <UUID>

# Check cluster
kubectl get nodes
kubectl top nodes
kubectl get pods -o wide --all-namespaces | grep mac-mini

Troubleshooting

Node NotReady after Mac Mini reboot — UTM VM not starting

Symptoms:

kubectl get nodes → mac-mini NotReady or missing
ping <MAC_MINI_VM_IP> → 100% packet loss

Most common cause — utmctl broken after UTM update:

# Test utmctl
/Applications/UTM.app/Contents/MacOS/utmctl list
# If you see: NSInvalidArgumentException crash → utmctl is broken

Fix — update launchd plist to use AppleScript:

cat > ~/Library/LaunchAgents/io.utm.mac-mini.plist << 'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
    <key>Label</key>
    <string>io.utm.mac-mini</string>
    <key>ProgramArguments</key>
    <array>
        <string>/bin/bash</string>
        <string>-c</string>
        <string>sleep 10 && open -a UTM && sleep 5 && osascript -e 'tell application "UTM" to start virtual machine "Linux"'</string>
    </array>
    <key>RunAtLoad</key>
    <true/>
    <key>KeepAlive</key>
    <false/>
</dict>
</plist>
EOF

launchctl unload ~/Library/LaunchAgents/io.utm.mac-mini.plist
launchctl load ~/Library/LaunchAgents/io.utm.mac-mini.plist

Start VM manually now:

open -a UTM && sleep 5 && osascript -e 'tell application "UTM" to start virtual machine "Linux"'

Node NotReady after reboot — LaunchAgent never fired (utmctl is fine, VM just never started)

Symptoms:

launchctl list | grep utm    → io.utm.mac-mini shows up, but "started" long after boot, not at boot
log show --last 6h --predicate 'eventMessage contains "utm"' --info
  → shows: "pending spawn, domain in on-demand-only mode: io.utm.mac-mini"
  → this line's timestamp matches when someone physically logged in, NOT when the Mac rebooted

Root cause: No Automatic Login configured. The Mac sat at the login screen from reboot until a human typed the password — LaunchAgents cannot run before a GUI session exists. utmctl/AppleScript can be perfectly healthy and this will still happen.

Fix: See Phase 6a — Enable Automatic Login above. This is the single most common silent-outage cause for this setup and is easy to miss because every other component (LaunchAgent, utmctl, k3s-agent) tests as "working fine" when checked manually after logging in.

Node NotReady after reboot — k3s-agent not starting

# Check VM is reachable
ping -c 2 <MAC_MINI_VM_IP>

# Check k3s-agent
ssh non@<MAC_MINI_VM_IP> "sudo systemctl status k3s-agent"
ssh non@<MAC_MINI_VM_IP> "sudo journalctl -u k3s-agent -n 20 --no-pager"

Mac Mini went to sleep

# Check if reachable
ping -c 2 <MAC_MINI_IP>

# Disable sleep permanently
ssh non@<MAC_MINI_IP> "sudo pmset -a sleep 0 && sudo pmset -a disksleep 0 && sudo pmset -a displaysleep 0"

Metrics showing unknown

# Check kubelet port directly
nc -zv <MAC_MINI_VM_IP> 10250

# Restart k3s-agent
ssh non@<MAC_MINI_VM_IP> "sudo systemctl restart k3s-agent"

K3s agent crashing with label error

Service file was overwritten by reinstall:

ssh non@<MAC_MINI_VM_IP> "sudo chattr -i /etc/systemd/system/k3s-agent.service"
# rewrite service file (see Step 19)
ssh non@<MAC_MINI_VM_IP> "sudo chattr +i /etc/systemd/system/k3s-agent.service"
ssh non@<MAC_MINI_VM_IP> "sudo systemctl daemon-reload && sudo systemctl restart k3s-agent"

Longhorn volume stuck degraded

See Longhorn section — mac-mini should have allowScheduling: false so replicas never go there.


Incident Log

2026-07-30 — mac-mini node down ~5.5 hours, root cause: no Automatic Login

Timeline: - 03:49 — Mac Mini host rebooted (macOS auto-update triggered install + restart; confirmed via softwareupdated unified logs at that exact timestamp). - Mac booted to the login screen and sat there — nobody logged in. - 03:49 → 09:20 (~5.5 hrs) — mac-mini node showed NotReady in kubectl get nodes; ping <MAC_MINI_VM_IP> failed (100% loss) the whole time, since the UTM VM was never started. - 09:20 — a manual reboot was performed (not knowing about the 03:49 reboot) which, incidentally, also required manual login — VM came up within ~2 minutes of that login. - 09:22:11 — io.utm.mac-mini LaunchAgent log shows pending spawn, domain in on-demand-only mode — confirming the agent had been sitting idle since boot, only firing once the GUI session existed.

What was ruled out: - utmctl — confirmed working (utmctl list returned a clean, valid response). Not the cause this time (it was the cause in an earlier incident, hence the AppleScript fallback already in Phase 6 above). - The LaunchAgent plist itself — confirmed correctly installed, enabled, and syntactically fine. - Host crash/panic/OOM — none found in log show or DiagnosticReports for the 03:49 window; this was a clean, intentional reboot (OS update), not a fault.

Root cause: No Automatic Login configured for the Mac Mini's user account. LaunchAgents run in the gui/<uid> launchd domain, which does not exist until a user logs in. A macOS update-triggered reboot (or any reboot) leaves the machine at the login screen indefinitely with no user present, so the VM auto-start chain never begins.

Fix applied: Enabled Automatic Login (System Settings → search "Automatic login" → set to the Mac Mini's account). Verified with:

defaults read /Library/Preferences/com.apple.loginwindow autoLoginUser
# → non
Documented as Phase 6a above and added as a Prerequisite and Troubleshooting entry so this isn't missed on any future rebuild or new node of this type.

Follow-up / still open: - End-to-end reboot test (sudo reboot → confirm kubectl get nodes shows Ready with zero manual intervention) — recommended before considering this fully closed. - Consider whether a LaunchDaemon bound to loginwindow session type is worth building later, to avoid Automatic Login's security trade-off (physical-access-without-password) if the Mac Mini's physical location changes.


Migration from Lima to UTM

If you previously used Lima VM and want to migrate to UTM:

Step 1 — Set up UTM VM first (follow this wiki)

Keep Lima running while setting up UTM. Test UTM works:

kubectl get nodes
# Should show both mac-mini (Lima) and mac-mini-utm (UTM)

Step 2 — Drain Lima node

kubectl drain mac-mini --ignore-daemonsets --delete-emptydir-data --force

If Longhorn instance-manager blocks eviction:

kubectl delete pod <instance-manager-pod> -n longhorn-system --force --grace-period=0

Then retry drain.

Step 3 — Delete Lima node

kubectl delete node mac-mini

Step 4 — Stop Lima and remove auto-start

ssh non@<MAC_MINI_IP> "limactl stop lima --force"
ssh non@<MAC_MINI_IP> "launchctl unload ~/Library/LaunchAgents/io.lima.k3s-agent.plist"
ssh non@<MAC_MINI_IP> "launchctl unload ~/Library/LaunchAgents/io.socat.k3s.plist"

Step 5 — Clean up Lima artifacts

ssh non@<MAC_MINI_IP> "
limactl delete lima --force
rm ~/Library/LaunchAgents/io.lima.k3s-agent.plist
rm ~/Library/LaunchAgents/io.socat.k3s.plist
rm ~/k3s-socat.sh
brew services stop socket_vmnet
brew uninstall socket_vmnet
sudo rm -rf /opt/socket_vmnet
sudo rm /private/etc/sudoers.d/lima 2>/dev/null
rm ~/.lima/_config/networks.yaml 2>/dev/null
brew uninstall lima
"

Step 6 — Rename UTM node (optional)

If UTM VM was named mac-mini-utm and you want to rename to mac-mini:

# Update config in UTM VM
ssh non@<MAC_MINI_VM_IP> "sudo sed -i 's/node-name: mac-mini-utm/node-name: mac-mini/' /etc/rancher/k3s/config.yaml"

# Delete and re-register
kubectl delete node mac-mini-utm
ssh non@<MAC_MINI_VM_IP> "sudo systemctl restart k3s-agent"
sleep 20 && kubectl get nodes

Architecture Decision Summary

Decision Reason
UTM over Lima UTM has com.apple.vm.networking entitlement from App Store — enables real bridged networking
Bridged not NAT Real LAN IP — no socat, no IP alias, full port access, lower latency
Ethernet not WiFi WiFi bridging is unreliable on macOS — Ethernet bridging works reliably
allowScheduling: false mac-mini is compute only — Longhorn replicas belong on stable bare-metal NUCs
etcd affinity etcd is critical — should never run on a VM inside macOS
Immutable service file K3s reinstall regenerates service file — chattr +i prevents this
config.yaml before install K3s reads config during install — set node-ip first for correct registration
No node-external-ip Redundant — InternalIP is already the correct LAN IP with bridged networking
Automatic Login enabled LaunchAgents only run after GUI login exists — without it, any reboot leaves the node down until someone manually logs in (see Incident Log, 2026-07-30)

Minimal Requirements Summary

REQUIRED:
    UTM with bridged en0    ← real LAN IP, no workarounds
    Static IP on enp0s1     ← stable address for cluster
    config.yaml             ← correct node-ip registration
    immutable svc file      ← prevent K3s overwriting
    iSCSI (open-iscsi)      ← required for Longhorn
    launchd plist           ← auto-start on Mac Mini boot
    Automatic Login         ← REQUIRED — LaunchAgent cannot fire without a GUI session
    sleep disabled          ← prevent node going NotReady

NOT NEEDED (vs Lima):
    socat proxies           ← not needed with real LAN IP
    IP alias /32            ← not needed, real IP on interface
    IP alias LaunchDaemon   ← not needed
    pf/pfctl rules          ← not needed
    node-external-ip        ← not needed
    allowScheduling: false  ← not needed, UTM is stable
    etcd affinity           ← not needed, UTM is stable