A single-box homelab on Proxmox VE 9
Design notes behind 48 isolated containers, split DNS, and per-service VPN routing on one machine the family never has to think about
Overview
The whole homelab runs on one desktop-class box that idles quietly under the stairs: Proxmox VE 9, an OPNsense VM as the network edge, one unprivileged LXC container per service. It exists for my family, and nobody else in the house has to think about it.
The usage numbers still surprise me: the most-used service is Vaultwarden, the family password manager, not the media stack. My wife approved of it, and it saw the biggest uptake of anything I have deployed.
The design goal was never “datacenter at home”; it was “one machine I can rebuild from notes, where every service is isolated, disposable and backed up”.
Two conventions carry most of the design:
- One box, one service. Each app gets its own container with its own IP, config mount and backup. An upgrade of one service can never break its neighbour.
- Everything is a mount point. Root disks stay tiny and disposable on the NVMe pool; data lives in host directories bind-mounted into the guest, so a container can be destroyed and recreated in minutes without data loss.
Hardware
| Part | Choice |
|---|---|
| Board | Gigabyte B760M Gaming Plus WiFi (DDR4) |
| CPU | Intel i5-13400, 10 cores / 16 threads |
| RAM | 64 GB DDR4-2667 |
| Boot / VM disk | 2 x 960 GB Micron 7450 NVMe (ZFS mirror) |
| Bulk disk | 14 TB Seagate Exos (ZFS, single disk) |
| NICs | Intel I226-V 2.5 GbE PCIe card (LAN), Realtek RTL8111 1 GbE (WAN) |
| iGPU | Intel UHD Graphics 730 |
The 13400’s UHD 730 handles Jellyfin transcoding and Scrypted camera streams through /dev/dri passthrough; no discrete GPU needed. Build log with photos: Assembling the homelab box.
Storage
Two ZFS pools, both created with ashift=12:
zpool create -o ashift=12 rpool mirror nvme0n1p3 nvme1n1p3
zpool create -o ashift=12 utank /dev/sda1bashrpool(mirror, ~890 GB) holds the OS, every guest root disk, and anappdatadataset mounted at/data.utank(~12.7 TB, single disk) holds the bulk: the media library underHTPC/, the photo library underLIBRARY/, and backups underBKP/. The disk is a shucked Seagate Expansion Desktop, covered in its own post.
Scrubs run monthly. Both pools came back clean last scrub, 0 errors.
One service, one container
All 48 containers are unprivileged LXC guests provisioned from community-scripts ↗. VMIDs are allocated in ranges by purpose:
| VMID range | Purpose | Examples |
|---|---|---|
| 10xx | Network infrastructure | AdGuard Home, Caddy, PBS |
| 2001 | Base template | Debian + zsh + pyenv, cloned for new guests |
| 40xx | Media serving | Jellyfin, Audiobookshelf, Komga |
| 50xx | Self-hosted apps | Vaultwarden, Immich, Paperless-ngx, Gitea |
| 60xx | Miscellaneous | Lubelogger, travel planning, file conversion |
| 8xxx | Home automation | Scrypted NVR, go2rtc, plus the HAOS and OPNsense VMs |
The LAN is a private /23 split into a core range and a service range; each service guest’s last octet comes from its VMID, and the Proxmox tags field carries that octet so the mapping stays visible in the web UI. Addresses come from DHCP, with reservations in OPNsense’s dnsmasq, one description per host.
Every service container follows the same shape:
- a small root disk (1 to 20 GB) on
rpool/data - its persistent state bind-mounted from
/data/lxc/<service>/ - read-only media mounts from
utankwhere it needs them
Rebuilding a guest is: clone the template, re-add the mount, done. That cheap rebuild is what makes the one-service rule livable; I actually dare to touch these guests. Hardware goes in explicitly: media and camera guests get /dev/dri for the iGPU, Scrypted also /dev/kfd for compute, and nothing else sees the host devices.
The edge: OPNsense in a VM
The router is a VM in the 8xxx range, first on boot (order 1, 30 s delay), 24 GB of RAM, two virtio NICs:
net0onvmbr0, the LAN bridge (2.5 GbE port), a static address in the core rangenet1onvmbr1, the WAN bridge (1 GbE port), DHCP from the ISP
Running the firewall as a guest keeps it in the same backup and snapshot pipeline as everything else. The tradeoff: no host, no network, so the Proxmox host is managed from the LAN side only.
DNS and DHCP
The resolver chain:
clients
-> AdGuard Home :53 filtering, per-client stats, home.arpa rewrites
-> Unbound (OPNsense) :53 DNSSEC, recursion, DoT upstream to 1.1.1.1
-> dnsmasq (OPNsense) :53053 authoritative for home.arpa, DHCP lease namestextAdGuard’s sole upstream is Unbound on the OPNsense LAN IP, so nothing on the LAN can bypass filtering by pointing elsewhere. Unbound recurses with DNSSEC on, encrypts upstream queries with DoT (verified against cloudflare-dns.com), and forwards home.arpa lookups to dnsmasq on 127.0.0.1:53053, which knows every DHCP lease and static entry. About a hundred hosts have static entries with descriptions; pve.home.arpa, hass.home.arpa, scrypted.home.arpa and friends resolve without touching public DNS.
DHCP tags hand different resolvers to different hosts: a tag groups one DHCP option with one range, and a static host entry opts a client in.
- default range: option 6 = AdGuard Home (filtering for everyone)
- a tag per tunnel: option 6 = that tunnel provider’s DNS, so a host routed through a tunnel also resolves through it
A host policy-routed through a VPN must resolve through that VPN’s DNS too, or queries leak out the wrong path.
Selective routing over WireGuard
Three always-on WireGuard tunnels terminate on OPNsense as additional WAN interfaces, one per commercial VPN provider, each with its own peer, 25 s keepalive, and routes disabled so nothing uses them by default.
Policy routing repeats one pattern: a firewall alias lists the hosts, a LAN rule sends them to the tunnel gateway unless the destination is local, and a hybrid outbound NAT rule masquerades them on that interface.
action: Pass, quick
interface: LAN, direction: in
source: <tunnel host alias>
destination: !( RFC1918 networks )
gateway: <tunnel gateway>textLAN traffic between guests never hairpins through a VPN; internet traffic from the aliased hosts exits through the assigned tunnel. Peer configs regenerate from each provider’s API with a small script, so rotating servers is a re-run, not a rewire.
Remote access
No inbound ports are forwarded. A Cloudflare Tunnel from the cloudflared container reaches Caddy, which terminates TLS per service with Authelia in front for SSO and two-factor; SSH to the Proxmox host rides the same tunnel. Services answer to service.home.arpa internally and a personal domain externally, both names pointing at the same Caddy.
Media, photos and documents
Jellyfin transcodes through /dev/dri, its library mounted read-only from utank. Photos run on Immich with the library on utank, documents on Paperless-ngx, comics on Komga, audiobooks and podcasts on Audiobookshelf.
Home automation and cameras
- Home Assistant runs as a HAOS VM (the one case where an appliance image beats a container), with Mosquitto and the Matter server as add-ons.
- Scrypted runs in an LXC with
/dev/drifor camera transcoding, volumes onrpool, and optional device mounts (/dev/kfd, Coral-styleapex) wired up for hardware I have not added yet.
Backups
Two layered nightly jobs, snapshot mode where possible:
- vzdump of every guest except PBS itself, into the PBS datastore on
utank, which also moves guest state off the SSD pool onto the bulk HDD. - PBS backs itself up (
keep-last 10) to a plain directory dataset.
Inside the guests, Backrest (restic) covers the app data in /data separately from the whole-guest vzdumps: cheap single-file restores, pushed to a remote repository for the offsite leg.
What I would keep: the VMID-to-IP convention, config-outside-the-container mounts, and the firewall as a guest. Still open: zpool upgrade on both pools (feature flags pending since the Proxmox 9 upgrade) and a Coral TPU for Scrypted.