Skip to content
Mementropy
Lab NotesHomelab notebookField note

Giving each machine one role

I stopped asking what spare machines could run and gave each one a single declared job.

By Ryan Hammang

In early September I had more machines than jobs. My homelab services were already running as Docker Compose projects on the older of my two Mac minis. Around it sat a newer Mac mini for agents and models, a DGX Spark for GPU inference, a NAS, a ThinkPad X1 Yoga, and an old ThinkPad T470 I hadn’t touched in a long time.

I wanted to put the spare hardware to work. Over about two weeks I learned that the useful question wasn’t “what can this machine run?” It was “what is this machine for?”

On September 5 I asked what I could do with the T470. It’s a laptop from around 2017 that I had upgraded to 16 GB of RAM. I talked it through with ChatGPT, and the list of options was long: a network appliance, a Linux break-and-fix lab, a small Proxmox host, a backup server, a remote-access jump box, a Home Assistant server, a Docker playground, a Kubernetes learning node. It ruled out using it as another model machine or another everyday laptop, because the Spark, the newer Mac mini and the X1 already covered those.

The suggestion that stuck was to use it as a management machine, something that watches and maintains the other machines rather than running services of its own. The point was that a machine should have a reason to be on. Having an empty disk isn’t a reason.

Two days later I hit the first practical problem. A laptop wants to sleep when you close the lid. The first idea for keeping one awake relied on an app session staying open, and I didn’t like that. A server shouldn’t depend on an app window.

The fix belongs in the operating system. On Ubuntu, systemd-logind decides what happens when the lid closes:

HandleLidSwitch=ignore
HandleLidSwitchExternalPower=ignore
HandleLidSwitchDocked=ignore

Masking the sleep, suspend and hibernate targets covers the rest. Two firmware settings help as well: power on after AC loss, and a battery charge limit of about 60 to 80 percent, so the battery works like a small UPS instead of sitting at 100 percent all the time.

I came back to this exact idea a month later, on a different laptop.

On September 8 the plan assumed the X1 Yoga was my portable Linux workstation. It wasn’t, and I said so:

The X1 Yoga will be on the shelf, always plugged in, and used as server hardware. The MacBook Pro is the only hands-on daily driver.

That one correction changed the whole layout. The revised plan gave each machine one job:

  • The MacBook Pro is the control machine: terminal, editor, browser, remote sessions.
  • The X1 Yoga is the main Linux lab server.
  • The T470 is a secondary lab server, for recovery drills and for watching the X1 from separate hardware.
  • The Mac minis and the Spark keep the service and AI roles they already have.
  • The NAS holds backups.

It came with a rule I still use: closing my MacBook must not stop the lab. The laptop I work on is how I control the environment. The environment shouldn’t need it in order to keep running.

On September 18 I tried to go the other direction. I wanted Proxmox-style virtualization on the Mac minis. That doesn’t work. Proxmox needs x86 hardware, and the Mac minis are Apple Silicon. The closest Mac options are Tart, UTM, Lima and OrbStack.

So I proposed a mix: Tart on the older Mac mini for ARM virtual machines, and Proxmox on an HP EliteBook and on the X1 as a two-node x86 lab. It was an interesting design on paper, with the AI machines kept free of general infrastructure. It also had a catch. When I ran the plan past ChatGPT, it pointed out that I’d already said the EliteBook wasn’t usable.

The principle that came out of that conversation was clearer than the design. Don’t install a service just because a machine is empty. Every workload should have a declared place: physical host, then virtualization, then the VM, then the platform, then the application. Think in environments (control, development, lab, AI), not in boxes.

None of this was hard technical work. Most of it was deciding what not to do.

When I started, each spare machine was a question: what could it run? That leads to a lab full of containers nobody remembers starting. Giving each machine one declared job made the lab easier to explain, even just to myself. If I can’t say in one sentence what a machine is for, it probably shouldn’t be running anything yet.

It also set up two ideas I kept coming back to. The machine I work on is not a server. And the machines that manage the lab should be separate from the machines that run experiments, so a broken experiment can’t take the management tools down with it.

When I first wrote up this period, I made it sound like the homelab started with the spare laptop in September. That’s not right. The lab was already running as Docker Compose on the older Mac mini, and some of those services were still running there into late October. The laptop attempts in September were my try at moving the lab off that Mac mini. When that didn’t come together, I bought a used Dell for workloads and turned the X1 into the management server. Those are the next posts in this series.

Have you given every machine in your setup a single job, or do you let them share? I’m curious where the line falls for other people.