Marcio Cunha

Building a High Availability Homelab with Mini PCs and Proxmox VE

Learn how to architect a resilient Proxmox cluster using three Mini PCs, VXLAN overlay tunneling over WireGuard, distributed Ceph storage, and automated failover for self-hosted workloads.

Marcio Cunha12 min
Also available in:EspañolPortuguês
Summary
  • Proxmox clusters require at least three nodes to establish a stable quorum that prevents network split-brain partitions.
  • VXLAN tunneling encapsulated within WireGuard allows extending virtual network layers with cryptographic security across distinct physical sites.
  • Ceph replaces traditional centralized storage by replicating data blocks in a distributed manner across the local drives of each Mini PC.
  • Proxmox HA policies monitor node heartbeats to automatically restart critical virtual machines in the event of hardware failure.
  • Careful selection of Mini PCs supporting hardware virtualization and stable network adapters ensures energy efficiency and operational robustness.

Infrastructure Planning and Hardware Selection for Homelabs

Setting up a reliable and resilient personal infrastructure environment requires strategic choices that go far beyond simply gathering compact computers on a shelf. The use of Mini PCs with modern processors and low energy consumption has revolutionized the homelab concept, allowing enthusiasts and engineers to build miniature datacenters at home. However, the core challenge is not just turning machines on, but designing an architecture capable of withstanding power outages, disk failures, or network glitches without taking down essential backend services.

To achieve a true high-availability level, where a system keeps running even if one computer completely burns out, we need at least three independent physical nodes. Working with an odd number of servers avoids logical impasses in network decision-making. When a problem occurs, the system needs to vote on who is alive and who is dead; with two nodes, if connection drops between them, both assume the other is dead and try to take over simultaneously, triggering a catastrophic split-brain conflict.

Proxmox Cluster Configuration and Quorum Mechanisms

Proxmox VE is a free virtualization operating system that combines traditional virtual machines and lightweight containers into a single web-based management interface. By joining three Mini PCs into a Proxmox cluster, we create a unified dashboard where we can migrate systems between computers with a few clicks or automate failovers if hardware stops responding. This magic is coordinated by the Corosync service, which constantly monitors the health of each node through periodic communication heartbeats.

In practice, a three-node quorum means the cluster always requires a simple majority—two nodes agreeing on infrastructure state—to make critical management decisions. If a Mini PC suffers an electrical failure or overheating shutdown, the remaining two continue talking, notice their peer's absence, and immediately take over keeping services active. This transition happens transparently for users accessing hosted applications, ensuring downtime remains practically zero.

Distributed Network Security with VXLAN and WireGuard

In scenarios where Mini PCs are physically separated, such as in different rooms or distinct external locations, network communication requires careful handling to prevent data leaks or breaches. The solution involves creating a layer-two virtual network using the VXLAN protocol, which encapsulates traditional network packets so they travel safely over the public internet. Simply put, VXLAN creates a giant virtual network cable connecting all virtual clusters as if they were plugged into the same physical switch.

To shield this communication against malicious interception, we combine VXLAN technology with WireGuard, a modern, extremely fast open-source VPN. WireGuard applies end-to-end encryption to all traffic moving between cluster nodes, ensuring data remains completely confidential even when passing through public networks or insecure home routers. This hybrid approach eliminates traditional VPN complexities while offering high transfer performance with ultra-low latency for distributed disks and services.

Resilient Distributed Storage with Ceph

One of the biggest bottlenecks in traditional high-availability environments is reliance on centralized storage, such as a network-attached hard drive that, if failing, brings down the entire ecosystem. To eliminate this single point of failure, we use Ceph, a scalable open-source storage platform turning local drives in each Mini PC into a unified, redundant data pool. Practically speaking, Ceph splits files and virtual disks into small pieces and automatically replicates them across all three cluster nodes.

If Mini PC A stores an important database chunk and suffers a hardware failure, Ceph has already ensured identical copies reside on Mini PCs B and C. When the system detects node failure, it instantly reorganizes access routes so virtual machines keep reading and writing data to surviving nodes without data loss. Although Ceph requires good network bandwidth and NVMe solid-state drives for optimal performance, the gain in resilience and operational peace of mind is absolute.

Automated Failover and Critical Workload Recovery

Having connected nodes, encrypted networking, and distributed storage are foundational steps, but infrastructure only becomes autonomous when configuring automatic failover policies. Proxmox features integrated high availability management allowing prioritized workloads, determining which virtual machines and containers revive immediately on another node if the original server fails. When the cluster monitor detects a Mini PC stopped responding, it triggers recovery routines that start critical services on remaining machines.

This recovery routine analyzes available capacity on surviving nodes to prevent memory or processing overload when concentrating services into smaller spaces. For less sensitive workloads, administrators can configure waiting policies or controlled restarts, optimizing limited hardware resources typical of Mini PC environments. With end-to-end failover strategies configured, your homelab reaches an operational maturity level comparable to major cloud providers, keeping personal projects and essential services always online.

Final Considerations on Homelab Engineering

Building and maintaining a high-availability infrastructure environment at home using Mini PCs and Proxmox VE is a formidable exercise in scaled-down systems engineering. By integrating a three-node quorum with encrypted tunneling, Ceph distributed storage, and intelligent recovery automation, we eliminate typical failure points frustrating tech enthusiasts. Beyond a simple test lab, this architecture proves enterprise robustness and advanced security are achievable using compact, affordable, energy-efficient hardware.

The secret to long-term success lies in rigorous documentation of the chosen topology and periodic execution of controlled failure tests, simulating disconnected cables and forced node shutdowns. After all, resilient infrastructure is not one that never fails, but one recovering on its own the exact moment the unexpected happens. With the concepts and technologies explored throughout this article, you hold the technical foundation needed to turn your workspace into a reliable, relentless personal datacenter.