- Go 59%
- JavaScript 28.3%
- Shell 8.3%
- CSS 4.3%
- HTML 0.1%
The kernel shares one superblock per NFS server and export, so testing a mount whose export was already mounted with other options (editing an active mount, or a second mount of the same export) failed with "sharecache fail". The scratch test mount now uses nosharecache. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> |
||
|---|---|---|
| .github/workflows | ||
| dashboard | ||
| files/system | ||
| iso | ||
| recipes | ||
| scripts | ||
| .gitignore | ||
| cosign.pub | ||
| README.md | ||
X27-Linux Homelab
A minimal, headless server OS for running Docker. The OS is a small read-only image that updates itself; everything you run on it goes in containers.
Built with BlueBuild on Fedora's official bootc image, in two flavors:
| Flavor | Image | Recipe |
|---|---|---|
| Bare metal | ghcr.io/gamerx27/x27-linux-homelab |
recipe.yml |
| VM | ghcr.io/gamerx27/x27-linux-homelab-vm |
recipe-vm.yml |
Both share common.yml.
Contents: Install · Channels · OS updates · Container updates · Dashboard · Integrations · NetBird · What's included · Good to know · For maintainers
Install
On a new machine
Get the installer ISO in one of two ways:
-
From CI: Actions → build-iso → Run workflow, then download the ISO from the run's artifacts.
-
Locally (needs Docker, sudo and 20 GB free):
./scripts/build-iso.sh # bare metal → iso-out/x27-linux-homelab.iso ./scripts/build-iso.sh vm # VM → iso-out/x27-linux-homelab-vm.iso
Automatic partitioning uses ext4 on LVM. Custom partitioning still lets you pick something else. Tick Make this user administrator for your user: you need it to log in to the dashboard.
On an existing Fedora bootc system
Rebase onto the image, reboot, then rebase again to switch to signed (verified) pulls:
sudo rpm-ostree rebase ostree-unverified-registry:ghcr.io/gamerx27/x27-linux-homelab:45
systemctl reboot
sudo rpm-ostree rebase ostree-image-signed:docker://ghcr.io/gamerx27/x27-linux-homelab:45
systemctl reboot
For a VM, use x27-linux-homelab-vm instead.
Channels
Each machine follows one channel and only gets updates from it.
| Channel | Base | Use it for |
|---|---|---|
stable |
Fedora 45 | Everyday use. The default. |
testing |
Fedora 45 | Trying changes before they reach stable, and the next Fedora once it moves on. May break. |
testing-alma |
AlmaLinux 10 | Trying AlmaLinux. May break. Older kernel (6.12 with backports), so very new hardware may not work. |
Switch with channel:
channel # show the current channel
channel testing # switch, then asks whether to reboot
channel stable --reboot # switch and reboot right away
The dashboard does the same on a node's Updates page, or for several nodes at once from
All nodes → Switch channel…. The switch applies after the reboot. Your data, containers and
settings stay; only the OS changes. To undo it, roll back (sudo rpm-ostree rollback or Roll back in the dashboard)
before the next update.
Fedora 44 is end of life. stable moved to Fedora 45, and the :44 images get no more
updates. A machine still on 44 says so in channel and on its Updates page (and gets an
end of life badge on All nodes). Move it with channel stable or Move to Fedora 45,
then reboot.
Image names and tags
All images are at ghcr.io/gamerx27/, signed, and rebuilt every Sunday at 02:00 UTC with
security updates only. On the 1st of the month the base image is refreshed and everything is
upgraded. The testing images aren't rebuilt on a schedule, only when that branch changes.
| Channel | Bare metal | VM | Branch |
|---|---|---|---|
stable |
x27-linux-homelab:45 |
x27-linux-homelab-vm:45 |
main |
testing |
x27-linux-homelab-testing:45 |
x27-linux-homelab-vm-testing:45 |
testing |
testing-alma |
x27-linux-homelab-alma-testing:10 |
x27-linux-homelab-vm-alma-testing:10 |
testing-alma |
Every image has three tags (shown for stable):
:45follows the channel. This is whatchanneluses.:<date>-45(e.g.:20261108-45) is one fixed build, for pinning or rolling back.:latestis the newest build, whatever its version.
Only stable gets releases.
OS updates
By hand: sudo rpm-ostree upgrade, then reboot. (Not bootc upgrade; see
Good to know.)
Automatic updates
Off by default. Pick a schedule, and at that time the machine checks for a newer image. If there is one, it installs it and reboots; if not, nothing happens.
autoupdate # interactive menu
autoupdate status # schedule, next check, last result
autoupdate on daily 04:00
autoupdate on weekly sun 3:30am
autoupdate on monthly 15 11pm # days 29-31 skip months that don't have them
autoupdate off
Times can be 24-hour (04:00) or 12-hour (4am, 3:30 PM). If the machine is off at the
scheduled time, the check runs at the next boot. After the reboot, the machine checks that it
came up on the new image.
Gotify messages
Optional. With a Gotify server, you get a message before the machine reboots into an update, when it's back, and when an update fails. Nothing is sent when there's no update.
In Gotify, create an app (Apps → Create Application) and copy its token, then:
autoupdate gotify https://gotify.example.com # asks for the token, sends a test message
autoupdate gotify test # send another test message
autoupdate gotify show # show the stored URL and token
autoupdate gotify off
Nothing is saved if the test message doesn't arrive. The dashboard's System → Features page can do the same.
Example update message
X27-Linux Homelab 45 (2026-11-08) → X27-Linux Homelab 45 (2026-11-15)
Image: ghcr.io/gamerx27/x27-linux-homelab:45
Digest: sha256:5f2e…
Packages: 12 upgraded, 1 removed, 1 added
Upgraded (12):
kernel 6.17.3-300.fc45.x86_64 -> 6.17.5-300.fc45.x86_64
...
Rebooting now.
Where things are stored
- Schedule:
/etc/systemd/system/autoupdate.timer(in/etc, so it survives updates). It runsautoupdate.service. - Progress of the last update:
/var/lib/autoupdate/state.json, output inlast.lognext to it.autoupdate statusand the dashboard read these. - Gotify URL and token:
/etc/autoupdate.conf(root only).
Container updates
docker-compose-update checks the images your containers use, lists the ones with a newer
version, and updates only what you pick.
docker-compose-update # looks in ~/docker
docker-compose-update /srv/stacks # or another folder
Keys: ↑/↓ (or k/j) move, Space selects, a selects all, Enter updates, q quits.
Afterwards it offers to remove the old images. Set COMPOSE_ROOT to change the default folder.
| Where the container comes from | What an update does |
|---|---|
| Compose file (in the folder, or anywhere for a running container) | Pulls, then docker compose up -d |
| Portainer or other external stack | Pulls; redeploy in Portainer to apply |
docker run |
Pulls; can recreate it with the same settings (via runlike) |
The dashboard can do this too, for all your machines at once.
Dashboard
A web UI for this machine and your other machines running the image. Off by default.
One machine is the main node and serves the UI. Others join it as nodes, and you manage all of them from the same page.
Set up
1. On the main node:
dashboard enable # prints the address, e.g. https://192.168.1.10:9090
Log in with your Linux username and password; only users in wheel can. The certificate is
self-signed, so the browser warns once. dashboard status prints its fingerprint to compare.
2. On each other machine:
dashboard enable node # prints a one-time pairing password
Then in the UI: Add node, enter its address (add :port if it isn't 9090) and the
password. To use the terminal on a node, your user needs an account in wheel there too.
Security: anyone who logs in has root-level control. The image has no firewall, so keep the dashboard on your LAN or behind a VPN, never open to the internet.
What you can do
For all nodes (main page): see every node with its version and channel, update the OS on several nodes at once, switch their channel, and update containers on all nodes.
For each node:
| Tab | What's on it |
|---|---|
| Overview | CPU, memory, disks, network, temperatures, uptime, OS version |
| Updates | Current OS image, available update, last update and its log; update, reboot or roll back. The release channel, and switching it |
| Docker | Your apps (compose stacks) and their containers: start, stop, update, edit, logs, remove. Plus images, volumes and networks for cleanup |
| Files | Files: your home folder: browse, edit, upload, download, rename, delete, with the same permissions as over SSH. Network shares: NFS and SMB shares from a NAS, mounted under /var/mnt for your containers: add, test, mount, unmount, remove |
| Backup | Backups: apps archived on a schedule or now, kept per app. Export & import: every app's config plus the server's own settings in one file, and restoring it here or on a new server |
| Terminal | A shell in the browser, as your user |
| System | Settings: hostname, time zone, network time, reboot and shut down; IPv4 per connection (DHCP or static, gateway, DNS), undone after 2 minutes unless kept; the dashboard's port, addresses and certificate fingerprint. Users: wheel and docker membership, login shell, password, lock, add and delete. Features: automatic updates, Gotify messages, NetBird, and turning services (SSH, smartd, Docker…) on or off. Logs: the system journal, the kernel, or one service; filter, follow live, download |
Each sub-tab has its own address, like #/n/<node>/system/logs, so a reload stays on it.
Your sidebar picture comes from Gravatar: click your name and enter your email. Only a hash of it is stored.
Apps (compose stacks)
An app is a folder in ~/docker/<name>/ with a compose.yml, the same folders
docker-compose-update uses. The Docker page also shows compose projects running from other
places.
- New app: name it and write the
compose.yml(and an optional.env). Start blank or from a preset in X27/Docker-X27-Composes. - Saving checks the file with
docker compose configfirst and keeps the old version ascompose.yml.bak. - Pull & recreate and Update get newer images and recreate the containers. Data in volumes and bind mounts is kept. Updates run in the background, one at a time per node, with a live log.
- Remove runs
docker compose down. Named volumes are kept, and the folder too unless you tick Also delete the folder.
To use another preset repository, set PRESETS_REPO=https://host/owner/repo in
/etc/dashboard.conf. It needs the same Composes/<name>/compose.yml layout.
Export & import
Backup → Export & import puts a whole server in one .tar.gz:
docker/: every app in~/dockerwith the files at the top of its folder (compose.yml,.envand so on, up to 1 MiB each). Tick apps to add their data (the whole folder) too; running ones are stopped while it's copied, then started again. Named volumes aren't included.server.json, with the parts you tick: dashboard settings (port, compose presets, the backup schedule, and on the main node the paired nodes and API tokens), network shares (with their SMB passwords), updates & Gotify (the schedule, the Gotify server and token, which services are on), and network & host (hostname, time zone, NTP, IPv4 per connection).README.txt: what's inside and how to restore it by hand.
The file holds secrets: the apps' .env files, SMB passwords, the Gotify token and the
paired nodes' tokens. Keep it somewhere safe.
Import takes such a file and shows what's in it before changing anything. Pick the apps
(one that's already in ~/docker is skipped unless you tick Replace, which writes the
exported files over it and keeps the rest), whether to start them, and which server settings
to apply. Network & host is off by default; an IPv4 change from it is undone after 2 minutes
unless you keep it under System → Settings. The import runs in the background with a log, like
a backup. Files can't be written outside ~/docker, symlinks are recreated as they were, and
files the exporting user owned become yours.
To restore the apps by hand:
tar -xzf <host>-export-<date>.tar.gz -C ~ docker/
cd ~/docker/<app> && docker compose up -d
Network shares
Files → Network shares mounts NFS exports and SMB (Samba, Windows) shares on a node, for
containers that keep their data on a NAS. A share named nas-media is mounted at
/var/mnt/nas-media; give it to a container as a bind mount:
services:
jellyfin:
volumes:
- /var/mnt/nas-media:/media
- Add share: the server, the export path (NFS, with Browse to list them) or the share name (SMB), and for SMB the username and password. Test mounts it once and lists what's there; Add and mount does the same test first and saves nothing if it fails.
- More options: protocol version, read-only, mount on first access instead of at boot, and for SMB the user who owns the files on the node and their permissions (SMB has no Linux owners, so all files show up as that user).
- Docker waits for this share at boot (on by default): Docker starts after the share is mounted, so containers don't write into the empty folder underneath. If the server is down, Docker starts anyway once the mount gives up (up to 45 seconds). Applies from the next boot.
- A server that's down never stops the node from booting: that mount fails on its own, and the page shows Failed with the reason under ⋯ → Logs.
- Remove unmounts it and deletes the mount and its stored password. The files on the server aren't touched. Unmounting fails while containers use the share: stop them first.
Where things are stored
- Each share is a systemd unit in
/etc/systemd/system/, likevar-mnt-nas\x2dmedia.mount(plus a.automountfor mount on first access). They start with# Managed by dashboard; the page lists only those, and never touches/etc/fstabor units you wrote yourself. - SMB passwords:
/etc/dashboard/smb/<name>.cred(root only). The dashboard never shows them again, and AI clients can't see them. - Docker's wait list:
/etc/systemd/system/docker.service.d/dashboard-mounts.conf. - By hand:
systemctl status 'var-mnt-nas\x2dmedia.mount',findmnt /var/mnt/nas-media.
How an OS update runs
When you update from the dashboard, the main node runs the update and opens the OS update page:
- All selected nodes download the new image at the same time. Nothing restarts yet.
- They reboot one at a time, the main node last. Each has to come back on the new image before the next one goes.
- If a node fails, the update stops there. You choose Reboot the rest or Leave them for later.
The update keeps going if you close the page, and survives the main node's own reboot.
Commands
dashboard status # on/off, mode, address, pairing, certificate fingerprint
dashboard nodes # main node: list nodes
dashboard pair # node: print a new pairing password
dashboard unpair # node: forget the main node
dashboard port 9443 # change the port (default 9090)
dashboard disable
status and port are also on each node's System → Settings page, and a paired node's port under
⋯ → Change port… on the main page (the main node then follows it).
Settings are in /etc/dashboard.conf; certificate, nodes, sessions and API tokens in
/var/lib/dashboard.
Integrations
The dashboard's Integrations page connects other programs to your homelab.
AI clients (MCP)
AI programs that speak the Model Context Protocol (Claude
Code, Claude Desktop, LM Studio, Cursor…) connect to https://<main node>:9090/mcp. They can
look at every node: health, apps and containers, their logs, the journal, updates, channel,
services, NetBird, users, backups and network shares. Depending on the token's access, they can also start,
stop and update apps, and install OS updates or reboot.
There are no tools for files, the terminal or secrets: Gotify tokens, .env values and
passwords never reach a model. Changes go through the same checks as the dashboard, and the
journal (journalctl -u dashboard) logs each one with the token's name.
| Access | Can |
|---|---|
| read | Look only: status, logs, updates, compose files |
| operate | Also start, stop, restart and update apps and containers, run backups |
| admin | Also OS updates, reboots, channel, services, users' groups, editing and removing apps, mounting and unmounting network shares |
Under Integrations, create a token (it's shown once). The page then shows every command below with the server's name, address and token filled in.
Claude Code connects over HTTP. The dashboard's certificate is self-signed, so Claude Code has to trust it first:
- Download the certificate from the Integrations page (or
https://<main>:9090/ca.pem), check its fingerprint against System → Settings → Dashboard, and keep it somewhere permanent:mkdir -p ~/.config/homelab mv ~/Downloads/homelab-<host>.pem ~/.config/homelab/ - Trust it in every terminal.
NODE_EXTRA_CA_CERTSis read when Claude Code starts and holds one file; for several dashboards,cattheir certificates into one.echo 'export NODE_EXTRA_CA_CERTS=~/.config/homelab/homelab-<host>.pem' >> ~/.bashrc # bash/zsh set -Ux NODE_EXTRA_CA_CERTS ~/.config/homelab/homelab-<host>.pem # fish - Add the server for every folder (
--scope user; without it, it only exists in the folder you ran the command in):claude mcp add --scope user --transport http homelab-<host> https://192.168.1.10:9090/mcp \ --header "Authorization: Bearer x27hl_…" - Start Claude Code from a new terminal and check
/mcp.UNABLE_TO_VERIFY_LEAF_SIGNATUREmeans the certificate isn't trusted yet (step 2);401means the token is wrong or cut off (remove the server and add it again).
LM Studio, Claude Desktop, Cursor and other desktop apps are started from the menu, where
NODE_EXTRA_CA_CERTS isn't set, and a remote url entry has nowhere to put it. Run the server
through the mcp-remote bridge instead, which needs
Node.js on that computer. The PEM path must be absolute (~ isn't expanded in env):
{
"mcpServers": {
"homelab-<host>": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://192.168.1.10:9090/mcp", "--header", "Authorization:${AUTH_HEADER}"],
"env": {
"AUTH_HEADER": "Bearer x27hl_…",
"NODE_EXTRA_CA_CERTS": "/home/you/.config/homelab/homelab-<host>.pem"
}
}
}
}
In LM Studio that's Program → Install → Edit mcp.json. The alternative is to put the dashboard
behind your reverse proxy with a trusted certificate and use the plain URL + Authorization
header config.
A token acts as the user who made it, who has to stay in wheel; revoke it on the same page. The
server also offers prompts: health_check, troubleshoot_app and plan_updates.
Security: an admin token is root on every node. Keep the dashboard on your LAN or VPN, give clients the least access they need, and set an expiry.
NetBird
The NetBird VPN client is installed but off. To join your network:
sudo systemctl enable --now netbird
sudo netbird up # prints a login link
sudo netbird up --setup-key <KEY> # or log in with a setup key
sudo netbird up --management-url https://netbird.example.com # self-hosted server
netbird status
It stays connected across reboots and updates. sudo netbird down disconnects, and
sudo systemctl disable --now netbird turns it off. The dashboard's System → Features page does all
of this too: turn it on, connect with a setup key or a browser login, see the peers, disconnect.
Settings go in /etc/sysconfig/netbird, state is in /var/lib/netbird, logs with
journalctl -u netbird.
What's included
| Base | Fedora bootc, no desktop. SSH on. Podman removed. |
| Docker | Docker CE from Docker's repo, with buildx and the compose plugin. On at boot. |
| Commands | channel, autoupdate, docker-compose-update, dashboard (off), netbird (off) |
| Tools | fish, htop, git, wget, lspci, ncdu, zip, unzip, NFS and SMB clients (nfs-utils, cifs-utils) |
| Bare metal only | smartmontools (smartd on), nvme-cli, nvtop, lm_sensors |
| VM only | qemu-guest-agent on; no hardware firmware or CPU microcode |
| DNS-ready | Port 53 is free for AdGuard Home or Pi-hole, with larger UDP buffers for DNS-over-QUIC |
| Quiet console | Only kernel errors on screen; the rest is in journalctl -k |
/etc/os-release names the build, e.g. X27-Linux Homelab 45 (2026-11-08).
Good to know
Installing software. The OS is read-only and replaced on every update, so dnf is turned
off. Run services in Docker. For a system package, add it to a recipe here and let CI rebuild.
Docker without sudo. Regular users (UID 1000+) are added to the docker group at boot.
To take someone out for good: sudo gpasswd -d <user> docker. Being in docker is effectively
root access.
fish is the login shell for every regular user. To go back to bash:
sudo chsh -s /bin/bash $USER. It stays that way.
Port 53. systemd-resolved's stub listener is off and /etc/resolv.conf points straight at
the upstream DNS servers, so a DNS container can use port 53.
Use rpm-ostree, not bootc, for updates. bootc needs Podman, which is removed, so
bootc upgrade and bootc switch fail. bootc status still works. bootc's own update timer
is turned off.
For maintainers
Releases
Every stable build publishes a GitHub Release listing what changed: key
versions (kernel, systemd, Docker…), commits, and the packages upgraded, added or removed.
vYYYY.MM.DD: the weekly security rebuild, or the monthly full update on the 1stvYYYY.MM.DD.N: builds from changes pushed in between
Signing
Images are signed with cosign (cosign.pub). The repo needs the private key as
the SIGNING_SECRET Actions secret.
Trying the OS update page
DASHBOARD_FAKE_OS=1 dashboard serve --dev fakes a node with an update (download, a 15-second
reboot, done). DASHBOARD_FAKE_OS=fail makes it come back on the old image.
DASHBOARD_FAKE_STORAGE=1 dashboard serve --dev keeps network share mounts in memory, so the page
works without root or a NAS. A test against the server fail.example fails.
DASHBOARD_FAKE_NETWORK=1 dashboard serve --dev fakes one wired connection for the Network
card on System → Settings, with the same 2-minute revert.