homelab-proxmox-clusterPortfolio

Preview

3-Node Proxmox Cluster

Details for Home Lab Server that I built to manage virtual machines and run self-hosted services across 3 compute nodes. Enabled with backups, replication, and an addition separate local machine dedicated to proccessing local AI Models.

LinkedIn: carlservice Contact: dot.card GitHub: cservicode

demo

Overview

I run my portfolio of virtual machines and self-hosted services on a three-node Proxmox VE cluster server. Proxmox allows for the management of multiple virtual machines and containers across individual nodes. Some of the services I am currently hosting include Nextcloud for file storage, Pi-hole for network-wide ad blocking, Nginx Proxy Manager for web traffic routing, and Uptime Kuma for uptime monitoring. A separate GPU server runs AI models locally for the rest of the network.

How it works

Flowchart: Isolated VLANs; 3-node Proxmox cluster; Nextcloud · Pi-hole · Nginx Proxy Manager · Uptime Kuma; Nightly snapshot backups; ZFS replication every 15 minutes; Standby node; Local GPU server
  • Network segmentation. VLANs divide the network into isolated segments, which limits what each device can reach. The services share one login.
  • Replication and backups. ZFS replication copies guest disks to a standby node every 15 minutes, which limits how much recent data a node failure can cost. Nightly snapshot backups are retained independently, preserving 7 daily, 4 weekly, and 3 monthly recovery points.
  • Restart order. After a host restart, a set boot order starts the primary workload first, gives it time to come up, and then starts dependent services.
  • API tooling. Two Python clients use the Proxmox REST API over HTTPS with certificate and hostname verification. The audit sends GET requests only and reports quorum, HA rules, replication and backup jobs, storage, and ZFS pool health. Backups and migrations go through a separate client that prints a dry-run preview, submits the change only with --confirm, and then follows the Proxmox task to its final result.

Selected code

FileWhat it shows
pve_audit.pyGET-only cluster audit; a denied endpoint marks the report incomplete instead of leaving an empty section.
pve_ops.pyNamed status, backup, and migrate actions; backup and migrate are dry runs until --confirm.
backup-and-replication.mdBackup retention, replication cadence, boot order, and HA readiness checks.
tls.mdCertificate verification for the Proxmox API, including a private CA option.
sanitize_audit.pyTurns raw audit output into the replay used for the demo.
Source
md42 lines3.2 KB
Raw
1<h1 align="center">3-Node Proxmox Cluster</h1>
2
3<p align="center">Details for Home Lab Server that I built to manage virtual machines and run self-hosted services across 3 compute nodes. Enabled with backups, replication, and an addition separate local machine dedicated to proccessing local AI Models.</p>
4
5<p align="center">
6 <a href="https://www.linkedin.com/in/carlservice"><img src="docs/badges/linkedin.svg" alt="LinkedIn: carlservice" height="20"></a>
7 <a href="https://dot.cards/carlservice99"><img src="docs/badges/contact.svg" alt="Contact: dot.card" height="20"></a>
8 <a href="https://github.com/cservicode"><img src="docs/badges/github.svg" alt="GitHub: cservicode" height="20"></a>
9</p>
10
11![demo](docs/demo.gif)
12
13## Overview
14
15I run my portfolio of virtual machines and self-hosted services on a three-node Proxmox VE cluster server. Proxmox allows for the management of multiple virtual machines and containers across individual nodes. Some of the services I am currently hosting include Nextcloud for file storage, Pi-hole for network-wide ad blocking, Nginx Proxy Manager for web traffic routing, and Uptime Kuma for uptime monitoring. A separate GPU server runs AI models locally for the rest of the network.
16
17## How it works
18
19```mermaid
20flowchart LR
21 U[Isolated VLANs] --> C[3-node Proxmox cluster]
22 C --> S[Nextcloud · Pi-hole · Nginx Proxy Manager · Uptime Kuma]
23 C --> B[Nightly snapshot backups]
24 C --> R[ZFS replication every 15 minutes]
25 R --> N[Standby node]
26 G[Local GPU server] --> C
27```
28
29- **Network segmentation.** VLANs divide the network into isolated segments, which limits what each device can reach. The services share one login.
30- **Replication and backups.** ZFS replication copies guest disks to a standby node every 15 minutes, which limits how much recent data a node failure can cost. Nightly snapshot backups are retained independently, preserving 7 daily, 4 weekly, and 3 monthly recovery points.
31- **Restart order.** After a host restart, a set boot order starts the primary workload first, gives it time to come up, and then starts dependent services.
32- **API tooling.** Two Python clients use the Proxmox REST API over HTTPS with certificate and hostname verification. The audit sends GET requests only and reports quorum, HA rules, replication and backup jobs, storage, and ZFS pool health. Backups and migrations go through a separate client that prints a dry-run preview, submits the change only with `--confirm`, and then follows the Proxmox task to its final result.
33
34## Selected code
35
36| File | What it shows |
37| --- | --- |
38| [pve_audit.py](src/pve_audit.py) | GET-only cluster audit; a denied endpoint marks the report incomplete instead of leaving an empty section. |
39| [pve_ops.py](src/pve_ops.py) | Named `status`, `backup`, and `migrate` actions; backup and migrate are dry runs until `--confirm`. |
40| [backup-and-replication.md](docs/backup-and-replication.md) | Backup retention, replication cadence, boot order, and HA readiness checks. |
41| [tls.md](docs/tls.md) | Certificate verification for the Proxmox API, including a private CA option. |
42| [sanitize_audit.py](capture/sanitize_audit.py) | Turns raw audit output into the replay used for the demo. |