Personal / Active
Homelab Server
Designed and maintain a self-hosted platform for automation services, development tooling, and game server infrastructure. Built on ESXi/vSphere with containerised workloads managed via Docker and Kubernetes.
Mar 2022
Overview
I designed and maintain a self-hosted homelab centred around a Dell PowerEdge R630 dual-CPU rack server, used as a platform for media services, development tooling, automation and infrastructure experimentation.
The server runs VMware ESXi as the hypervisor, allowing workloads to be isolated into virtual machines while keeping the underlying hardware centrally managed. One of the primary workloads is an Ubuntu 22.04 VM running a Docker Compose-based application stack, including Jellyfin, media-management services, and supporting infrastructure.
The problem
One of the more complex issues I encountered was a sudden failure in Docker image pulls across part of the homelab. docker compose pull requests were intermittently failing with errors such as context canceled, while direct requests to external registries were also unable to resolve correctly.
The difficulty was that the problem initially appeared to be Docker-specific. In reality, the failure sat lower in the networking stack.
The Ubuntu host was using a combination of systemd-resolved, Tailscale and a local AdGuard DNS server. Tailscale had modified the machine's resolver configuration and introduced its own DNS addresses, while the local network was also advertising AdGuard as the preferred resolver. This left the host with conflicting DNS configuration and caused external lookups used by Docker to fail.
The solution
I debugged the issue from the application layer downward rather than treating Docker as the root cause.
This involved checking Docker's registry connectivity, inspecting the system resolver state, comparing DNS configuration across network interfaces and identifying that /etc/resolv.conf was no longer pointing at the expected systemd resolver.
The final configuration kept Tailscale enabled for remote connectivity, while disabling its ability to take ownership of DNS configuration. I then restored systemd-resolved as the host resolver and allowed the local network's AdGuard instance to remain responsible for DNS filtering and upstream resolution.
The resulting flow became:
Docker → Host DNS → systemd-resolved → AdGuard → Cloudflare DNS
This restored reliable Docker image pulls without sacrificing either Tailscale connectivity or network-wide AdGuard filtering.
Architecture & technical approach
The environment combines several physical and virtual systems:
Internet / Cloudflare → Ubiquiti Router → Raspberry Pi Reverse Proxy → R630 ESXi → Ubuntu VM → Docker Services
A Raspberry Pi hosts services such as Nginx Proxy Manager, AdGuard and supporting network tooling, while the R630 handles the heavier application workloads. Services are exposed securely through Cloudflare and reverse-proxied internally rather than directly exposing containers to the internet.
One challenge with running Jellyfin on enterprise server hardware was efficient video transcoding. The R630 was upgraded with a low-profile NVIDIA RTX A400, selected for its low 50W power requirement, single-slot form factor and hardware NVENC/NVDEC capabilities.
The GPU is passed directly through ESXi into the Ubuntu VM using PCI passthrough, then exposed to Jellyfin through Docker using the NVIDIA Container Toolkit.
This required configuring:
ESXi PCI passthrough → Ubuntu NVIDIA drivers → NVIDIA Container Toolkit → Docker → Jellyfin
The upgrade significantly reduced CPU usage during compatible video transcodes and provided hardware decoding for modern HEVC formats.
Key features
- VMware ESXi virtualisation for isolated, flexible workloads
- Docker Compose application stack for repeatable service deployment
- GPU passthrough to an NVIDIA RTX A400 for Jellyfin hardware transcoding
- Reverse-proxied services using Nginx Proxy Manager
- Network-wide DNS filtering with AdGuard
- Secure remote access through Tailscale
- Cloudflare integration for external DNS and service exposure
- Centralised homelab infrastructure supporting development, automation and media workloads
- Expandable architecture designed to accommodate additional VMs, containers and services over time
Technical highlights
- The project has given me practical experience across virtualisation, Linux administration, Docker, networking, DNS, reverse proxies, TLS, GPU passthrough and hardware-accelerated workloads.
- Maintaining the environment has reinforced the importance of understanding the complete request path between systems