There’s a big dual-socket workstation in my basement, and for a long time it did everything at once. Plex ran on it. A
local AI stack ran on it. A nightly render job ran on it. A torrent client ran on it. All of it piled onto a single
Ubuntu install — one kernel, one set of GPU drivers, one apt upgrade that could take the whole pile down at once. It
worked. It was also, to quote the note I’d left myself, “a very hard machine to maintain.”
The thing that finally pushed me over the edge wasn’t the box at all. It was my Mac. A nightly job used to hand work off to that render workload, and one night the Mac went to sleep mid-handoff, the handoff timed out, and the overnight run died in the dark. I wanted that job on a machine that never sleeps and never needs babysitting — which meant I wanted it on its own machine, not sharing an OS with four other things that could knock it over.
So I did the reckless-sounding thing: backed the box up, wiped Ubuntu to bare metal, and rebuilt it as a Proxmox host with every workload in its own container. This is the whole build — the plan I got backwards, the GPU passthrough, the lockdown, and the part that actually mattered: the backups I was certain were running, that had been failing silently for three nights straight.
- One box doing everything is one box you can’t fix
- The hardware I had to work with
- The plan, and the first thing I got backwards
- GPU passthrough: one card for the VM, one for the containers
- The backups that weren’t
- Proving the whole box could be rebuilt from nothing
- Locking it down
- The torrent box and the kill switch that wasn’t
- Cutting the cord to the Mac
- Where it stands
- The takeaways worth stealing
One box doing everything is one box you can’t fix #
The problem with a do-everything box isn’t that it stops working. It’s that every change becomes a coin flip. Upgrade the GPU driver for the AI stack and you might take Plex’s hardware transcoding down with it. Reboot to clear one wedged service and everything else goes with it. There are no seams — nothing you can touch in isolation, nothing you can snapshot and roll back on its own. The machine is a single blast radius.
Proxmox fixes exactly that. It’s a bare-metal hypervisor: the host does nothing but run guests, and each workload lives in its own container (LXC) or virtual machine, with its own filesystem, its own snapshot, its own blast radius of one. I wanted Plex in a box I could restart without touching anything else. I wanted the render job on an always-on guest that couldn’t be killed by somebody else’s upgrade. I wanted to snapshot a guest before I changed it and roll back in seconds if I broke it. One box became a host plus a handful of small, independent ones.
The hardware I had to work with #
The workstation is no slouch: a many-threaded dual-socket box with plenty of RAM, and — the detail that shaped the
entire design — two identical 16 GB workstation-class GPUs, on separate PCI slots. Storage was a fast NVMe drive
that held the OS, plus a large spinning disk that was sitting completely empty, doing nothing but holding a leftover
test folder.
The single most important fact about the storage, though, is what wasn’t on this box: the media. Every movie and show lives on a separate NAS on the network, mounted in over SMB. Wiping the workstation couldn’t touch a single file, because not one of them was ever stored here. That’s the whole reason I could be cavalier about the wipe — the irreplaceable data was never in the blast radius to begin with. The only things I actually had to carry across were small: the Plex database, and a pile of local AI models including one custom model I’d built and could not re-download. I backed those up as tar archives to the NAS first, verified them, and only then reached for the install USB. (Backing up a model you can’t re-pull means saving the model files and its build definition — the recipe, not just the result.)
The plan, and the first thing I got backwards #
The box has two network interfaces, and the design uses two Proxmox bridges: one for the main house LAN, one for a VPN-router network that the torrent traffic rides. Simple enough — except I had them labeled backwards in the plan, and I only caught it standing in front of the rebuilt host.
The gotcha that made it matter: the NAS doesn’t live on the main LAN. It lives on the VPN-side network, and the main LAN can’t route to it. Get the bridges crossed and Plex can’t see a single file. The fix that’s worth banking is subtler than “label them right.” The host needs an address on both bridges to reach everything, but the VPN-side address is configured with no gateway. That one omission means the host can reach the NAS on the VPN network, but the host’s own outbound traffic never accidentally escapes through the VPN tunnel — it always leaves by the main LAN’s default route. An interface with an IP and no gateway is a one-way door: reachable from that network, but never a path out of the machine.
GPU passthrough: one card for the VM, one for the containers #
Two GPUs, two completely different jobs, and they wanted two completely different kinds of isolation — which turns out to be the whole lesson of GPU passthrough on Proxmox.
The AI stack wanted a card all to itself, cleanly isolated inside a full virtual machine. So I turned on IOMMU (VT-d in
the BIOS), bound one of the GPUs to the vfio-pci driver so the host would keep its hands off it entirely, and passed the whole
card through to an Ubuntu VM. Inside that VM it’s just a local GPU — install the NVIDIA toolkit and Docker, and the models
don’t know or care they’re in a guest.
Plex wanted the opposite. Hardware transcoding (NVENC) doesn’t need a dedicated card; it needs access to one, and it lives in a lightweight container, not a VM. So the second GPU stayed on the host’s own NVIDIA driver, and I shared that one GPU into the Plex LXC. One card handed whole to a VM; one card shared from the host into a container.
Two Proxmox gotchas from this stretch, both worth banking:
- Secure Boot had to come off. The NVIDIA driver builds through DKMS, and the unsigned module won’t load with Secure Boot enforcing. For a GPU host that needs the proprietary driver, Secure Boot is a non-starter — turn it off before you fight the module for an hour wondering why it won’t load.
- Pick the isolation that matches the need. A card you want to give entirely to one guest →
vfio-pciand a VM. A card you want to share across one or more containers → leave it on the host driver and bind-map it into the LXCs. Choosing VM-vs-LXC per GPU up front saved me from rebuilding a guest the wrong way.
The backups that weren’t #
Here’s the part I’d tattoo on someone if they asked.
I set up a nightly backup — Proxmox’s vzdump, 02:30 every morning, write to the big spinning disk, keep the last seven. I
even wrote it into my own project notes: “all guests in the nightly backup.” Reassuring sentence. Completely false one.
The job ran every night. And it failed every night — three straight nights of zero restorable archives — and nothing told me, because a scheduled job that exits non-zero into a log nobody’s reading looks exactly like a scheduled job that works. I only found it when I went looking for an archive to restore and there wasn’t one. Not a stale one. None.
The cause is a genuinely sharp Proxmox edge. Backups of unprivileged LXC containers don’t run as root — they run as a
mapped, non-root user, part of how unprivileged containers stay unprivileged. And the mount point of my backup disk was
mode 0700: owner-only, root-only. Root could get into the directory fine. The mapped backup user could not. So every
single container backup hit permission-denied walking into the folder, before it ever wrote a byte.
The fix is one digit: chmod 0701 on the mount point. 0701 lets the mapped user enter the directory (the execute
bit) without being able to list it — enough to write a backup into a known path, not enough to enumerate what’s there.
One character, and three nights of silent failure became working backups.
But the digit isn’t the lesson. This is: a configured job is not proof that anything is happening, and a file is not a backup until you’ve restored it. So I didn’t stop at “the job exits zero now.” I ran a manual backup (3.28 GB in 26 seconds), ran an integrity check on the archive, and then restored it into a throwaway container and watched a working copy come back up before destroying the throwaway. Only then did I believe it. The archive on disk was never the thing I cared about — the restore was. Everything before the restore is hope.
Proving the whole box could be rebuilt from nothing #
Getting burned by “I assumed it was working” put me in a suspicious mood about everything else, and the biggest unverified assumption left was the box itself. If the whole thing died tonight, could I actually rebuild it — or did reproducibility also just feel true the way the backups had?
So I wrote the host and the containers as code — Ansible roles for the host and for the guests — and then did the only test that actually tests reproducibility: I spun up a disposable throwaway container and rebuilt a real, working service into it from the code alone, with the live one never touched. Not a dry run. A real build into empty space, watched end to end.
It came up — after I fixed six real defects that a syntax check or a dry run would have sailed right past:
- A tool the role depended on was never actually installed — only one of its supporting packages was.
- A directory that tool needed was never created before the role tried to copy a file into it.
- A systemd drop-in directory, same story: copied into before it existed.
- The secret files landed as
root:root 0600, so the service — which runs as a non-root user — got permission-denied and refused to start. (The exact same mapped-user-can’t-reach-it shape as the backup bug, one layer up.) - A config path in the role didn’t match where the live service actually reads its config.
- The TLS certificate the service serves was never minted — the role trusted the local CA but never issued the leaf — so HTTPS couldn’t come up at all.
Every one of those is invisible until you build into nothing and watch it fail. They’re the gaps between “the code looks right” and “the code produced a working box,” and the only way they surface is to make the box from scratch and let it break in front of you. The throwaway got destroyed; the real container was never in danger; the role is now six defects closer to honest. Net result: the node is genuinely rebuildable from code plus backup — the code rebuilds the skeleton and the config, the verified backup restores the state. Two halves, both now actually tested, instead of two halves I’d assumed.
Locking it down #
A hypervisor hosting this much deserves more than default trust, so the host got hardened as part of the build:
- The Proxmox admin panel and SSH are reachable only from the trusted VPN-side network — not from the main LAN, and certainly not from anywhere outside the house. SSH is key-only, and the web UI is behind 2FA with recovery codes.
- The Proxmox firewall is on. Security updates are automatic but narrow: only the security channel, with the kernel, the Proxmox packages, and the NVIDIA driver blacklisted so an unattended upgrade can never swap the kernel out from under a passed-through GPU, and auto-reboot is off. A weekly report tells me what’s pending instead of surprising me.
- The AI stack’s raw inference port is closed on the main-LAN side entirely — only the trusted network can hit it. The friendly web front-end is reachable where it’s convenient; the unauthenticated raw API is not.
The theme is the same one the whole rebuild keeps circling: grant the narrowest access that does the job, and make the dangerous automatic thing (an unattended upgrade) unable to touch the fragile thing (the GPU driver).
The torrent box and the kill switch that wasn’t #
The torrent client lives in its own container with exactly one network connection: the VPN bridge. It has no address on the main LAN at all — it physically cannot talk to the house network, only out through the VPN. The VPN router has a kill switch that’s supposed to block traffic if the tunnel drops.
I trusted that kill switch right up until I tested it — and testing it is the only reason I know it has a hole. It does block traffic when the tunnel drops on its own. It does not block when I switch the VPN off by hand: a leak test proved that in the switched-off state, the box would happily reach the internet with my real IP. The safety feature covered the failure I wasn’t worried about and left open the one I’d actually trigger myself.
So I added a belt to go with the suspenders: a host-side guard that runs every 60 seconds, checks the torrent box’s current public IP against my home IP, and stops the torrent client the instant they match. It checks that public IP using the little “what’s my IP” tool I built and wrote up a while back — nice to have a thing you made do a real job in another project. Two tests closed it out: with the VPN switched off, the guard stopped the client within a single check; when I switched the server underneath it, the home IP never once appeared. (Downloads also get a ClamAV scan, and only clean files get moved onward.) A safety feature you haven’t tried to defeat isn’t a safety feature. It’s a decoration you’re hoping about.
Cutting the cord to the Mac #
The last move closed the loop back to the very first sentence. This whole rebuild started because a Mac went to sleep at the wrong moment and killed an overnight job. So the final task was making sure nothing scheduled depends on that Mac anymore.
The fleet backup used to be something the Mac pushed out on a timer. Now it’s a pull: the Proxmox host reaches out over SSH and pulls what it needs, through a locked-down forced command that only runs one specific export script and only accepts the host’s own key from the host’s own addresses. The nightly render job runs on the always-on box. The other scheduled work moved onto guests. The Mac’s crontab is empty and it has no scheduled jobs left to miss.
The Mac can sleep all it wants now. Nothing is waiting on it.
Where it stands #
The basement box is now Proxmox VE 9.2 on the NVMe, doing nothing but hosting. The big spinning disk that sat empty for who knows how long is earning its keep as backup storage — verified backup storage, proven by an actual restore. The two GPUs do two different jobs with two different kinds of isolation. Every workload lives in its own container that I can snapshot before I touch it and roll back in seconds if I break it. And for the first time, I can say the box is recoverable and mean it, because I’ve watched it come back two different ways — from a restored archive, and from code into empty space. The media never moved an inch; it was never on the box to begin with.
The takeaways worth stealing #
Strip the homelab specifics away and the lessons are portable to basically any system you’ll stand up:
- A configured job is not a finished job, and a backup you haven’t restored is just a file. The job exited. The file existed. Neither was true where it counted. Verify the artifact, never the config.
- Test reproducibility by destroying, not by reading. A dry run tells you the code parses. Building into an empty throwaway and watching it fail tells you the code works — and hands you the six defects you forgot about.
- Know which isolation you actually want before you build the guest. A whole GPU for one job → pass it through to a VM. A GPU shared across jobs → keep it on the host and share it into containers. Guessing means rebuilding.
- A safety feature you haven’t tried to defeat is decoration. The kill switch covered the failure I wasn’t worried about and missed the one I’d cause myself. The only way I learned that was trying to break it on purpose.
- Put the always-on work on the always-on machine. The outage that started all of this was a laptop lid closing. Fragile foundations fail in boring, avoidable ways.
None of this was clever. It was a wipe, a hypervisor, some containers, and a stubborn refusal to believe anything was working until I’d watched it come back from the dead. That last part is the only trick worth keeping.
⚒ j1v37u2k3y · jiveturkey.rocks