The first time I built a Proxmox cluster, I used three Dell R720s I'd bought off eBay for $180 each. They were loud, they drew 200W idle, and they ran every service I'd previously paid AWS $400/month for. The migration took a weekend. The savings paid for the hardware in two months. That was three years ago. The cluster has grown, the hardware has been refreshed, and Proxmox has gone from "interesting alternative to ESXi" to "the only hypervisor I'd actually recommend to a small platform team."
Proxmox VE (Virtual Environment) is a Debian-based hypervisor that bundles KVM (for full virtualization), LXC (for system containers), ZFS (for storage), and a web UI into a single ISO. It's open source (AGPLv3), free to use, and the paid "subscription" is just for access to the enterprise package repo and support - the software is identical either way. You can run a 50-node cluster on the free version without paying a cent.
What makes Proxmox better than ESXi for small teams: no per-socket licensing, no vCenter server to babysit, no VM limits, native ZFS support, native LXC (which is wildly more efficient than VMs for many workloads), and a REST API that's actually usable for automation. What makes it worse: less polished UI, weaker high-availability story than VMware's vSphere HA, and a smaller ecosystem of third-party tooling. For homelabs and small-to-medium platform teams, the trade-offs favor Proxmox. For enterprises with existing VMware investment and compliance requirements, the migration math is harder.
This article is the build guide I wish I'd had. It covers bare-metal install, ZFS storage, networking, cluster setup, VM and LXC creation, cloud-init templating, backups via Proxmox Backup Server, and the production habits that separate "it works on the bench" from "this is what we run prod on."
What Proxmox Actually Is (and What It Isn't)
Proxmox VE is three things in one Debian install:
- KVM/QEMU - full virtualization. Runs Windows, Linux, BSD, anything that runs on x86_64 or arm64. Each VM is a full kernel-and-userspace, with hardware-level isolation.
- LXC - Linux Containers. System containers that share the host kernel but have their own init, userspace, filesystem. Much lighter than VMs (no kernel per instance), but limited to Linux guests.
- ZFS - the filesystem. Proxmox installs onto ZFS natively, and ZFS gives you snapshots, compression, bit-rot protection, and software RAID without the various flavors of broken that mdadm and hardware RAID controllers bring.
Plus a web UI, a REST API, and a clustering layer (corosync + PMXCFS) that lets multiple Proxmox nodes share config and provide VM migration.
What Proxmox is not:
- It's not a Kubernetes distribution. It runs VMs and LXC containers, not pods. You can run k3s/kubeadm inside a VM or LXC, but Proxmox itself is a hypervisor, not a container orchestrator.
- It's not cloud-native. No native multi-tenancy, no per-tenant billing, no autoscaling groups. It's a traditional hypervisor with a web UI.
- It's not a NAS. You can share ZFS datasets via NFS/SMB, but a dedicated NAS (TrueNAS, Unraid) is better at the NAS use case.
- It's not vSphere. No DRS (automatic VM placement based on load), no vMotion for storage (you can live-migrate VMs but storage migration is more manual), no enterprise-grade HA comparable to vSphere HA. For 95% of small-team use cases, this doesn't matter.
| Hypervisor | License | Best for | Cost |
|---|---|---|---|
| Proxmox VE | AGPLv3 (free) + paid support | Homelab, small/medium platform teams, edge | $0 - $100/socket/yr for enterprise repo |
| ESXi (free tier discontinued) | Broadcom commercial | Enterprises already invested | $$$$ per socket |
| Hyper-V | Free with Windows Server | Windows-heavy shops | Windows Server license |
| oVirt / Red Hat Virtualization | Open source + RHEV commercial | RHEL-centric shops | $0 or RHEV subscription |
| Harvester | Rancher | Kubernetes-native HCI | Free + Rancher support |
| XCP-ng | Open source (Citrix fork) | ESXi alternative | Free + Xen Orchestra for backups |
For new builds in 2024, the realistic choices are Proxmox and Hyper-V (if you're Windows-heavy) and XCP-ng (if you want a more vSphere-like experience). I use Proxmox.
Prerequisites
For a single-node homelab:
- An x86_64 machine with virtualization support (VT-x for Intel, AMD-V for AMD). Anything from the last 15 years has this; check in BIOS that it's enabled.
- 8GB RAM minimum, 16GB comfortable, 32GB+ if you want to run multiple VMs simultaneously.
- Two disks for a ZFS mirror (the smallest meaningful RAID configuration). One disk works for testing but offers no redundancy.
- A bootable USB stick (8GB+) and the Proxmox VE ISO from https://www.proxmox.com/downloads.
- A wired network connection. WiFi works technically but is awful for a hypervisor.
For a 3-node cluster (the smallest sensible production setup):
- Three machines meeting the above, ideally identical hardware (makes lifecycle management easier).
- A dedicated network for cluster traffic (corosync). Can be a separate VLAN on the same switches, but a separate physical network is better.
- 10GbE for storage migration. 1GbE works but is slow for live-migrating large VMs.
- A switched PDU or smart plugs for remote power cycling (because BMC/IPMI is the next thing on the shopping list).
- IPMI/BMC on each node (Dell iDRAC, HP iLO, Supermicro IPMI) for out-of-band management. Worth the $30-50 extra on the used market.
Storage-specific notes:
- For ZFS, use enterprise-grade SSDs (Intel/Solidigm D3-S4520, Samsung PM893, etc.) or NAS-grade HDDs (Seagate IronWolf, WD Red Plus/Pro). Avoid SMR drives (WD Red, some Seagate Barracudas) - they perform terribly under ZFS write workloads.
- NVMe for SLOG (ZFS intent log) is a nice-to-have for sync-write-heavy workloads (databases). For homelab, the SLOG can live on the main pool.
- Hardware RAID controllers must be flashed to IT mode (HBA) before use with ZFS. ZFS wants direct access to the disks. LSI 9211-8i, 9300-8i are common candidates; pre-flashed cards are $40-60 on eBay.
Architecture
A 3-node Proxmox cluster looks like this:
CodeCopy
┌─────────────────────────────────────────────────┐
│ Proxmox Cluster │
│ │
│ ┌──────────┐ corosync ┌──────────┐ │
│ │ Node A │ <────────> │ Node B │ │
│ │ (pve-a) │ │ (pve-b) │ │
│ │ VMs: │ │ VMs: │ │
│ │ - vm1 │ │ - vm3 │ │
│ │ - vm2 │ │ - vm4 │ │
│ └────┬─────┘ └────┬─────┘ │
│ │ │ │
│ │ corosync │ │
│ ▼ ▼ │
│ ┌──────────┐ │
│ │ Node C │ (third node for quorum) │
│ │ (pve-c) │ │
│ │ VMs: │ │
│ │ - vm5 │ │
│ └──────────┘ │
│ │
│ Storage: local ZFS per node (or Ceph shared) │
│ Backups: Proxmox Backup Server (separate box) │
│ Network: dedicated corosync link + data VLANs │
└─────────────────────────────────────────────────┘
The key components:
- Corosync - the cluster membership and messaging layer. Runs on each node, talks to the others, maintains a "quorum" (majority of nodes alive). If quorum is lost, the cluster becomes read-only (you can't start VMs, can't modify config) to prevent split-brain.
- PMXCFS (Proxmox Cluster File System) - a custom distributed filesystem based on SQLite that stores cluster config (VM definitions, network config, etc.). Replicated to all nodes via corosync.
-
PVE Proxy - the web UI service (
pveproxy). Listens on port 8006, serves the UI, talks to the localpvedaemonwhich talks to PMXCFS. - QEMU/KVM - the actual hypervisor, per node.
- LXC - the container runtime, per node.
- ZFS - the storage layer, per node (or shared via Ceph).
-
PVE Cluster Manager - handles VM migration, HA groups, fencing (with
pve-ha-manager).
A single-node Proxmox is just one node with no cluster - but it still has all the storage and VM management, just no migration and no HA.
Installation
Step 1: Download the ISO and create a bootable USB.
BashCopy
shell
On Linux
sudo dd if=proxmox-ve_8.2-1.iso of=/dev/sdX bs=4M status=progress conv=fsync
Replace /dev/sdX with your USB device (find with lsblk)
On macOS
diskutil unmountDisk /dev/diskN
sudo dd if=proxmox-ve_8.2-1.iso of=/dev/rdiskN bs=4m
diskutil eject /dev/diskN
markdown
Step 2: Boot the target machine from USB. The Proxmox installer is a Debian installer with a Proxmox-specific partitioning step. Click through the language/keyboard/timezone prompts.
Step 3: Storage configuration. The installer asks what filesystem to use. Choose ZFS (RAID1) if you have two disks. This creates a ZFS mirror, which is the smallest sensible redundant configuration. Options:
- RAID0 - single disk (no redundancy, don't use for production)
- RAID1 - two disks, mirror
- RAID10 - four disks, striped mirrors (best performance + redundancy)
- RAIDZ-1 - three+ disks, single parity (use 3-5 disks)
- RAIDZ-2 - four+ disks, double parity (use 6+ disks)
- RAIDZ-3 - six+ disks, triple parity (use 9+ disks)
For a 2-disk homelab, RAID1 (mirror). For 4-disk, RAID10. For 6-disk and above, RAIDZ-2.
Step 4: Network config. Set a static IP (e.g., 192.168.1.10/24, gateway 192.168.1.1, DNS 192.168.1.1). The hostname should be FQDN-style (pve-a.lan).
Step 5: Set the root password and email. This is for the root user on the host and for the web UI admin.
Step 6: Install. Takes ~5-10 minutes. Reboot when done.
Step 7: First boot. The machine comes up with the Proxmox web UI on https://192.168.1.10:8006/. Log in with root and the password you set. Accept the self-signed cert warning.
Step 8: Disable the enterprise repo and enable the no-subscription repo. Without a paid subscription, the enterprise repo returns 401 on apt update, which is annoying.
BashCopy
shell
SSH into the host (or use the web UI's shell)
Disable enterprise repo
sed -i 's|^deb|#deb|' /etc/apt/sources.list.d/pve-enterprise.list
Add no-subscription repo
echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" \
/etc/apt/sources.list.d/pve-no-subscription.list
Update and upgrade
apt update && apt full-upgrade -y
Reboot if there was a kernel update
reboot
markdown
Step 9: Install updates regularly. Subscribe to the proxmox-announce mailing list. Major versions ship every ~12 months; point releases ship monthly.
Storage: ZFS
After install, your boot pool is rpool (a ZFS mirror of the two disks). You can add more pools for VM storage:
BashCopy
shell
Create a new pool from two NVMe disks
zpool create -o ashift=12 \
-O compression=lz4 \
-O atime=off \
-O recordsize=128k \
-O xattr=sa \
-O mountpoint=/mnt/nvme-pool \
nvme-pool mirror /dev/nvme0n1 /dev/nvme1n1
Verify
zpool status nvme-pool
zfs list
markdown
ZFS tunables worth knowing:
-
ashift=12- 4K sector alignment. Always set this on modern disks, even if they report 512-byte sectors (SMR drives lie about this). -
compression=lz4- fast, transparent compression. Always enable. Negligible CPU cost, often nets you 1.5-2x effective storage. -
atime=off- disable access time updates. Saves writes. -
recordsize=128k- default is 128k, which is good for VM images. For databases, userecordsize=16kon a dedicated dataset. -
xattr=sa- store extended attributes in the system attribute inode. Faster than the default directory-based storage.
Create a dataset for VM images:
BashCopy
plaintext
zfs create nvme-pool/vm-disks
In the Proxmox UI: Datacenter -> Storage -> Add -> ZFS
ID: nvme-disks
ZFS Pool: nvme-pool/vm-disks
Content: Disk image, Container template
markdown
Now VMs created on this storage will use the dataset, get snapshots, get compression, etc.
Avoid ZFS on top of hardware RAID. The RAID controller hides individual disk failures from ZFS, defeats ZFS's self-healing, and creates weird performance edge cases. Flash the controller to IT mode (HBA), or pass disks through to ZFS directly.
Networking: Bridges and VLANs
Proxmox creates a vmbr0 Linux bridge by default, bridged to your first physical NIC (enp3s0 or whatever). VMs attach to vmbr0 and get an IP from your network's DHCP (or statically assigned in the VM config).
For more advanced setups:
VLAN-aware bridge - one bridge that can carry multiple VLANs. Each VM attaches with a vlan=X tag.
BashCopy
conf
In /etc/network/interfaces
auto vmbr0
iface vmbr0 inet manual
bridge-ports enp3s0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
plaintext
Now in a VM's config, you can set net0=virtio,bridge=vmbr0,tag=10 to put it on VLAN 10.
Bonded NICs - for redundancy or throughput. LACP (802.3ad) requires switch support; active-backup works without.
BashCopy
conf
auto bond0
iface bond0 inet manual
bond-slaves enp3s0 enp4s0
bond-mode 802.3ad
bond-miimon 100
bond-lacp-rate 1
auto vmbr0
iface vmbr0 inet manual
bridge-ports bond0
bridge-stp off
bridge-fd 0
bridge-vlan-aware yes
bridge-vids 2-4094
plaintext
Apply: ifreload -a (Proxmox's network reload command, safer than systemctl restart networking).
Multiple bridges for separate networks (e.g., one for LAN, one for management, one for storage):
BashCopy
conf
auto vmbr0 # LAN
iface vmbr0 inet manual
bridge-ports enp3s0
bridge-stp off
bridge-fd 0
auto vmbr1 # Storage (10GbE direct-attached)
iface vmbr1 inet manual
bridge-ports enp4s0
bridge-stp off
bridge-fd 0
markdown
Then in cluster setups, the corosync traffic can go over vmbr1 for isolation.
Creating VMs
In the web UI: top-right "Create VM." Key settings:
-
General: Name (e.g.,
gitlab), VM ID (auto-assigned, or pick a memorable one like101). -
OS: Pick the ISO. For Linux, use
q35machine type (modern) andOVMF (UEFI)BIOS (skip if the OS doesn't support UEFI, but it should). -
System: SCSI Controller =
VirtIO SCSI single(best performance). EnableQemu Agent(installsqemu-guest-agentin the guest for clean shutdowns and IP reporting). -
Disks: Bus =
SCSI, Storage = your ZFS pool, Discard = on (for SSDs, enables TRIM). -
CPU: Sockets = 1, Cores = N. Type =
host(best performance, exposes host CPU features to guest;x86-64-v2-AESif you want portability across cluster nodes with different CPUs). NUMA = on if multi-socket host. - Memory: Set amount. Uncheck "Ballooning" unless you know what you're doing (ballooning lets Proxmox reclaim unused memory, but it can hurt performance and cause weird OOM behavior).
-
Network: VirtIO (paravirtualized), bridge =
vmbr0, VLAN tag if needed, Disconnect on boot if you want a cold-start ISO mount (rare).
Click "Create" - the VM is created but not started. Start it, attach the ISO via the UI, install the OS, install qemu-guest-agent in the guest (apt install qemu-guest-agent for Debian/Ubuntu, dnf install qemu-guest-agent for RHEL/Fedora).
For Windows guests, you need the VirtIO drivers ISO - Windows doesn't have VirtIO drivers built in. Attach the drivers ISO alongside the Windows installer ISO.
Best-practice VM settings for production:
| Setting | Value | Why |
|---|---|---|
| Machine type | q35 | Modern, supports UEFI, PCIe, etc. |
| BIOS | OVMF (UEFI) | Faster boot, Secure Boot possible |
| SCSI Controller | VirtIO SCSI single | Best I/O performance |
| Disk bus | SCSI + Discard on | Trim support on SSDs |
| Disk cache | Writeback | Best performance; ZFS handles durability |
| CPU type | host | Exposes host features; best perf |
| CPU sockets | 1 | Multi-socket adds overhead in guests |
| Network | VirtIO (paravirtualized) | Best network performance |
| Qemu Guest Agent | Enabled | Clean shutdowns, IP reporting |
| Memory ballooning | Off (production) | Predictable performance |
LXC vs VM: When to Use What
LXC containers share the host kernel. They use ~50-100MB of RAM idle, vs 256MB+ for a minimal VM. They start in under a second. They have near-zero CPU overhead.
When to use LXC:
- Linux-only workloads.
- Stateless services (web servers, app servers, databases without exotic kernel needs).
- Anything where you'd otherwise run a VM but don't need a separate kernel.
- Things that need to access the host's filesystem (mount a host path into the container).
- Things where startup speed matters (CI runners, ephemeral services).
When to use a VM:
- Windows or non-Linux guests.
- Workloads that need kernel features LXC doesn't virtualize well (specific sysctls, custom kernel modules, certain systemd features).
- Workloads that need strong isolation (different security domains, untrusted code).
- Workloads where you need to test on a specific kernel version.
- Anything you might want to migrate to a different host architecture in the future (LXC is x86-on-x86 only; a VM image can be moved between Intel and ARM with caveats).
Rule of thumb: if it's Linux and doesn't need a custom kernel, use LXC. You'll save RAM, disk, and startup time.
To create an LXC container: top-right "Create CT." Pick a template (Debian, Ubuntu, Alpine, etc., downloadable via the storage's "Templates" button). Set root password, network (DHCP or static), and start.
Cloud-init Templates
For spawning many similar VMs (e.g., a k8s cluster, a fleet of CI runners), build a cloud-init template. Once.
BashCopy
shell
1. Download a cloud image (these are qcow2 images designed for cloud-init)
cd /tmp
wget https://cloud-images.ubuntu.com/jammy/current/jammy-server-cloudimg-amd64.img
2. Install libguestfs-tools for virt-customize
apt install libguestfs-tools
3. Install qemu-guest-agent into the image
virt-customize -a jammy-server-cloudimg-amd64.img \
--install qemu-guest-agent \
--run-command 'systemctl enable qemu-guest-agent'
4. Create a VM that will become the template
qm create 9000 --name ubuntu-2204-template --memory 2048 --cores 2 --net0 virtio,bridge=vmbr0
qm importdisk 9000 jammy-server-cloudimg-amd64.img nvme-pool
qm set 9000 --scsihw virtio-scsi-single --scsi0 nvme-pool:vm-9000-disk-0
qm set 9000 --ide2 nvme-pool:cloudinit --boot c --bootdisk scsi0
qm set 9000 --serial0 socket --vnc 0.0.0.0:100
5. Convert to template
qm template 9000
6. Clone a new VM from the template (linked clone is fast, full clone is independent)
qm clone 9000 101 --name k8s-worker-1 --full
qm set 101 --sshkeys ~/.ssh/id_rsa.pub
qm set 101 --ipconfig0 ip=192.168.1.101/24,gw=192.168.1.1
qm set 101 --ciuser ubuntu
7. Start the VM
qm start 101
markdown
The cloned VM boots, runs cloud-init, sets the SSH key, sets the static IP, and is ready to SSH into in ~30 seconds. No manual ISO install.
This is how you spawn a 5-node Kubernetes cluster in 5 minutes - template + 5 clones with different IPs and hostnames.
Cluster Setup
To join multiple nodes into a cluster, use pvecm (Proxmox Cluster Manager).
BashCopy
shell
On node A (the first node)
pvecm create my-cluster
On node B and C (joining)
pvecm add 192.168.1.10 # IP of node A
plaintext
That's it. The cluster is formed. Corosync replicates config across nodes; the web UI shows all nodes; you can migrate VMs between them.
Important cluster considerations:
Quorum. A Proxmox cluster needs a majority of nodes alive to make config changes. A 3-node cluster tolerates 1 node failure. A 2-node cluster has no tolerance (lose either node and you're locked out). A 1-node cluster has no quorum concept. For production, always run 3 nodes minimum. If you can't afford 3, run 2 nodes plus a "QDevice" - a tiny third machine (or even a Raspberry Pi) that just votes.
BashCopy
shell
On the QDevice (a separate small machine running corosync-qdevice):
apt install corosync-qdevice
Follow Proxmox docs to configure; the QDevice joins the cluster as a vote-only member
markdown
Corosync network. Use a dedicated network for corosync traffic. It's chatty (every node talks to every other node ~every 1 second) and latency-sensitive. A dedicated VLAN or physical network is ideal. Configure in /etc/pve/corosync.conf:
CodeCopy
conf
nodelist {
node {
name: pve-a
nodeid: 1
quorum_votes: 1
ring0_addr: 10.10.10.1 # dedicated corosync network
}
# ...
}
markdown
Storage for live migration. To live-migrate a VM from node A to node B, both nodes need access to the VM's disk. Options:
- Shared storage (NFS, iSCSI, Ceph) - VM disk lives on a network share; both nodes can access. Live migration works seamlessly.
- ZFS replication (zfs send/receive) - Proxmox replicates the VM's disk to other nodes on a schedule (every 1-15 minutes). Live migration uses the replicated copy. Provides HA but with RPO of the replication interval (you lose the last few minutes of writes if the source dies).
-
Local storage + manual storage migration -
qm migratewith--with-local-disksmoves the disk over the network. Slow for large disks; works for occasional migrations.
For a 3-node cluster with local storage, set up ZFS replication:
BashCopy
plaintext
In the UI: Datacenter -> Replication -> Add
Source: pve-a, Guest: vm-101, Target: pve-b, Schedule: */15
This replicates vm-101's disk from pve-a to pve-b every 15 minutes
plaintext
Now if pve-a dies, you can fail over vm-101 to pve-b. Enable HA on the VM and Proxmox will do this automatically.
HA groups. Define groups of nodes that should run certain VMs, and Proxmox will place them on the preferred node, failover to others if needed:
BashCopy
plaintext
In the UI: Datacenter -> HA -> Groups -> Add
Group name: web-tier
Members: pve-a, pve-b, pve-c (in priority order)
Then assign VMs to the group:
Datacenter -> HA -> Add
VM: 101, Group: web-tier, State: started
markdown
Proxmox Backup Server (PBS)
The built-in vzdump backups work but they're file-level and not deduplicated. For real backups, run a separate Proxmox Backup Server.
PBS is a Debian-based appliance (same install flow as PVE) that provides:
- Chunk-based deduplication - only changed blocks are stored. A 100GB VM with daily backups for a year takes ~150GB instead of 36TB.
- Encryption at rest - backups are encrypted client-side; PBS never sees plaintext.
- Incremental forever - one full backup, then incremental forever. No scheduling fulls.
- Verification - PBS periodically re-reads chunks and verifies checksums.
- Sync to remote PBS - for offsite replication.
Install PBS on a separate machine (a small Intel NUC with a 4TB disk works for homelab; a real server with 20TB+ for production). Point your PVE nodes at it:
BashCopy
plaintext
On each PVE node, in the UI: Datacenter -> Storage -> Add -> Proxmox Backup Server
ID: pbs-backup
Server: 192.168.1.20
Username: root@pam
Password: ...
Datastore: main
Fingerprint:
Content: VZDump backup file
plaintext
Schedule nightly backups:
CodeCopy
plaintext
Datacenter -> Backup -> Add
Node: All
Storage: pbs-backup
Schedule: 02:00 daily
Selection: All VMs
Mode: Snapshot (uses QEMU's snapshot feature; VMs stay running)
Retention: Keep 7 daily, 4 weekly, 12 monthly
plaintext
Restore: in the UI, navigate to the backup, click "Restore." It's a one-click operation; the VM is restored to its original (or a new) ID.
For offsite, set up a second PBS at a remote location and sync:
BashCopy
plaintext
On the remote PBS:
In the UI: Sync Jobs -> Add
Remote:
Remote Datastore: main
Local Datastore: offsite
Schedule: daily
markdown
This pulls (PBS sync is always pull-based from the destination) the new chunks from the primary PBS to the offsite PBS.
Monitoring
pveperf gives a quick host health check:
BashCopy
plaintext
pveperf
CPU BOGOMIPS: 12345.67
Regex/second: 1234567
HDD SIZE: 1.82 TB (4K blocks)
HDD READ: 234.56 MB/s
HDD WRITE: 187.65 MB/s
FSYNC 1024: 1234 ops/second
FSYNC 4096: 567 ops/second
...
plaintext
For real monitoring, run prometheus-pve-exporter:
BashCopy
shell
As a Docker container on a monitoring host, or as a service on each PVE node
docker run -d \
--name pve-exporter \
-p 9221:9221 \
-v /etc/pve:/etc/pve:ro \
-e PVE_USER=monitoring@pve \
-e PVE_PASSWORD=... \
prom/pve-exporter:latest
markdown
Useful metrics:
-
pve_up- node is reachable -
pve_cpu_usage_ratio- CPU usage per node -
pve_memory_used_bytes/pve_memory_total_bytes- memory -
pve_disk_usage_bytes- per-storage usage -
pve_guest_running- count of running VMs/CTs per node -
pve_cluster_nodes- cluster membership
Alert on:
-
pve_up == 0for any node - node down -
pve_disk_usage_bytes / pve_disk_total_bytes > 0.85- storage filling -
pve_cluster_quorum == 0- cluster lost quorum (critical; nothing can be changed) -
pve_guest_running < pve_guest_totalon a node - VMs crashed - ZFS pool health:
node_zfs_zpool_health{state!="ONLINE"} > 0
Common Mistakes
Single-node cluster with HA enabled. A 1-node cluster has no quorum if the node reboots. With HA enabled on VMs, Proxmox will refuse to start them because it can't verify the cluster state. Fix: 3 nodes minimum, or don't enable HA on a 1-node setup.
ZFS on hardware RAID. The RAID controller hides disk failures from ZFS, defeats self-healing, and creates weird performance bugs. Flash to IT mode or use HBA.
SMR drives in a ZFS pool. Shingled Magnetic Recording drives perform terribly under ZFS rewrite workloads. They'll work for a while, then collapse to single-digit MB/s. Check the model number against the OpenZFS bad SMR list. WD Red (non-Pro, non-Plus) and Seagate Barracuda are SMR.
Running PBS on the same host as PVE. Backups then compete with VMs for I/O, and if the host dies you lose both VMs and backups. Run PBS on a separate physical machine.
Forgetting to install qemu-guest-agent. Without it, Proxmox can't gracefully shut down VMs (it falls back to ACPI shutdown, which can take a long time or fail), can't report the VM's IP, can't freeze the filesystem for snapshot consistency. Always install it in the guest.
Setting memory ballooning on production VMs. Ballooning can cause weird OOM behavior under memory pressure. For production, give VMs fixed memory and disable ballooning.
Using host CPU type in a heterogeneous cluster. host exposes the host's CPU features to the guest. If you live-migrate from an Intel node to an AMD node, the guest may crash because instructions don't match. Use x86-64-v2-AES (or v3) for portability across cluster nodes.
Forgetting to update PBS along with PVE. PBS and PVE versions must match within a major version. A PBS 2.x backup server can't back up PVE 8.x hosts.
Not fencing properly. Proxmox HA relies on the host being able to kill a failed node (via SSH or via a PDU/IPMI watchdog). Without fencing, a "dead" node that's actually still running can corrupt shared storage. Configure pve-ha-manager with proper fencing (watchdog device, IPMI power control) before relying on HA.
Ignoring pveperf warnings. pveperf reports FSYNC numbers - these reflect how fast the storage can sync writes. Single-digit FSYNC numbers mean your ZFS SLOG is too slow (or you don't have one and you're hitting the spinning rust). Databases will be slow.
No backups of /etc/pve. The cluster config lives in /etc/pve, which is a virtual filesystem backed by SQLite. Back up the underlying SQLite db periodically: cp /var/lib/pve-cluster/config.db /etc/pve-backup-$(date +%F).db. If the cluster config gets corrupted, you'll need this.
Troubleshooting
Cluster lost quorum. A node died and now the web UI says "cluster not ready - no quorum." You can't start VMs, can't edit config. Fix:
BashCopy
shell
On a surviving node, force quorum:
pvecm expected 1
Now the surviving node has quorum by itself.
CAUTION: this lets you make changes, but if the "dead" node comes back, you'll have split-brain.
Only use this if you're sure the other nodes are actually dead (powered off).
plaintext
To permanently remove a dead node:
BashCopy
shell
pvecm delnode
Then on the dead node (if it ever comes back):
/usr/bin/proxmox-backup-client delete-all-backups (if PBS-backed)
systemctl stop pve-cluster
rm -rf /etc/pve /etc/corosync
Then reinstall the node from scratch before re-adding.
plaintext
VM stuck in "starting" state. The QEMU monitor is unresponsive. Force stop:
BashCopy
shell
qm stop
If that hangs:
qm unlock
As a last resort, find the QEMU process and kill it:
ps aux | grep "qemu.*"
kill -9
plaintext
ZFS pool degraded. A disk failed. Replace:
BashCopy
shell
zpool status # shows which disk is faulted
zpool replace rpool
Watch the resilver:
zpool status rpool
Resilver progresses; pool returns to ONLINE when done.
markdown
VM disk full. The VM reports no space, but zfs list shows free space on the pool. The VM's disk image has a quota or the VM's filesystem is full. Either expand the disk (qm resize <vmid> scsi0 +50G from the host), or delete files inside the VM.
VM migration fails with "storage not available on target." The VM is on local storage; the target node can't see it. Either use shared storage, set up ZFS replication before migrating, or migrate with --with-local-disks:
BashCopy
shell
qm migrate --with-local-disks --online
markdown
Web UI shows "connection error" intermittently. Usually pveproxy is restarting (due to a log rotation or an update). Check systemctl status pveproxy. Also check /var/log/proxmox-proxy/access.log for errors.
Corosync token loss. Cluster nodes can't talk, quorum is flapping. Check /var/log/syslog for corosync errors. Common cause: network issue on the corosync VLAN, or CPU starvation on a node preventing corosync from getting its time slot. Increase token timeout in /etc/pve/corosync.conf:
CodeCopy
hocon
totem {
token: 10000 # 10 seconds (default 3s)
}
Apply: pvecm updatecerts and restart corosync on each node.
LXC container can't start, "Permission denied." The container's storage is on a ZFS dataset with canmount=off or wrong mountpoint. Check zfs list -r rpool/data and the container's config in /etc/pve/lxc/<ctid>.conf.
Live migration hangs at 90%. The VM is doing writes faster than the migration can sync the final state. Pause the workload in the VM, or schedule the migration during low-traffic hours, or use --with-local-disks (which copies the disk first, slower but doesn't require quiescing).
Production Considerations
Hardware redundancy. Redundant PSUs on each node. Redundant network paths (bonded NICs to separate switches). IPMI/BMC for out-of-band management. A switched PDU for remote power cycling. These are the boring basics that save you at 3am.
Cluster sizing. Three nodes minimum for production. Five nodes is the next sweet spot (tolerates 2 failures). Above ~7 nodes, corosync starts to get chatty; consider splitting into multiple clusters.
Storage tiering. Fast NVMe for VMs that need it (databases, build runners). Slower HDD pool for archival VMs, ISO storage, backups. PBS on its own dedicated storage, not on a VM host.
Network design. Dedicated corosync network. Separate storage network (10GbE minimum for live migration). VM traffic on the main network. Management traffic (web UI, SSH) on a management VLAN.
Update strategy. Subscribe to proxmox-announce. Schedule monthly maintenance windows for major updates. Test updates on a non-prod node first. Keep PBS updated in lockstep with PVE.
Backup verification. Schedule monthly restore tests. A backup that doesn't restore is not a backup. Pick a random VM, restore it to a new ID, boot it, verify it works, delete.
Capacity planning. Don't run nodes above 70% memory. ZFS ARC needs RAM (default up to 50% of system RAM). VMs need headroom for spikes. Plan for node failure: if you have 3 nodes each at 70% memory, losing one means the other two need to absorb 35% more - they're now at 105%, which doesn't fit. Target 60% utilization in steady state for a 3-node cluster.
Disaster recovery. What happens if the entire cluster dies? You should be able to: stand up a new PVE host from scratch (have the ISO documented), restore PBS from offsite, restore cluster config from /etc/pve backup, restore VMs from PBS. Test this once a year. It's a multi-day exercise; that's fine, the goal is to find the gaps before they matter.
Compliance. For regulated environments (PCI, HIPAA, FedRAMP), Proxmox supports the usual audit controls - RBAC, audit logging via /var/log/audit/, integration with LDAP/SAML for auth. The Proxmox VE Admin Guide has a security-hardening section worth following.
Cost Considerations and Alternatives
Proxmox VE itself is free. The costs are hardware, electricity, and (optionally) support subscriptions.
| Subscription tier | Cost (per socket/year) | What you get |
|---|---|---|
| Community (no sub) | $0 | No-subscription repo (slower updates), community forums |
| Basic | ~€95/socket/yr | Enterprise repo, email support, 1-year SLA |
| Standard | ~€305/socket/yr | Enterprise repo, phone/email support, 4hr SLA |
| Premium | ~€705/socket/yr | 1hr SLA, dedicated account manager |
For homelab and small teams: no subscription. The no-subscription repo is fine; you just get updates a few days later than enterprise.
For production at a company that needs an SLA: Basic or Standard. The math: a 4-socket cluster at Standard is ~€1,200/year - comparable to a single ESXi license, with no per-VM limits.
Hardware cost ranges (used market, 2024 prices):
| Hardware | Cost | Specs | Good for |
|---|---|---|---|
| Dell R720 (used) | $150-300 | 2x Xeon E5-2600, 64-256GB RAM, 8x 3.5" bays | Lab, low-power prod |
| Dell R730 (used) | $300-600 | 2x Xeon E5-2600 v4, 64-512GB RAM, DDR4 | Mid-range prod |
| Supermicro X10/X11 (used) | $400-800 | Various, modern features | Custom builds |
| Intel NUC 13/14 | $400-700 | i5/i7, 32-64GB RAM, NVMe only | Small office, edge |
| Mini-PC cluster (3x NUC) | $1,200-2,100 | 3 nodes, ~100W total | Home lab cluster |
| New server (e.g., Dell R760) | $5,000-15,000 | Modern Xeon Scalable, large RAM | Real production |
Alternatives:
- ESXi - Broadcom killed the free tier in 2023. Cheapest paid path is vSphere Essentials (~$5,800 for 3 hosts, no vMotion). Proxmox is dramatically cheaper for the same capabilities.
- Hyper-V - Free with Windows Server. Reasonable if you're already Windows-heavy. Lacks ZFS, lacks LXC.
- XCP-ng + Xen Orchestra - Open-source Xen fork with a great web UI. Comparable to Proxmox; Xen instead of KVM. Stronger bare-metal backup story (XOA's backup pools are excellent).
- Harvester - Rancher's Kubernetes-native HCI. Runs VMs as KubeVirt resources. Cool if you're already k8s-native; overkill otherwise.
- oVirt - Red Hat's open-source virtualization. RHEL-centric. Less active development than Proxmox.
If you're choosing today, the realistic options are Proxmox and XCP-ng. I prefer Proxmox because of LXC, because of ZFS, and because the API is more pleasant to automate against.
Real-World Use Cases
A homelab running 30 VMs/CTs on 3 used Dell R720s. Total cost: $900 hardware + $0 software + ~$15/mo electricity. Replaces $400/mo of cloud VMs. Runs: Pi-hole, Plex, Home Assistant, Grafana stack, k3s cluster, Gitea, Jellyfin, WireGuard, a Windows VM for taxes, the list goes on.
A small startup running production on 3 nodes. Three Supermicro servers with NVMe, 256GB RAM each, 10GbE. Runs the entire production stack (Postgres, Redis, web apps, CI runners) in a mix of VMs and LXC. PBS on a fourth box. Total cost: ~$8,000 hardware + €900/yr subscriptions. Comparable cloud bill would be $1,500/mo.
An edge deployment running 1 node per location. Proxmox on Intel NUCs at 50 retail locations. Each runs 2-3 LXC containers (POS system, signage, local cache). Centralized management via Proxmox API; nightly PBS backups over WAN. Total hardware: ~$700/location.
A research computing cluster. 10 nodes, each with 512GB RAM and 4 GPUs. Proxmox manages the GPU passthrough to JupyterLab VMs for researchers. PBS for snapshots; researchers can roll back to a clean state. Much simpler than OpenStack for a 10-node cluster.
A development environment for a SaaS company. Each developer gets a dedicated VM (their own Linux desktop with their tools). Snapshotted daily. Can be reset to a known state. Developers access via VNC or SSH. Cost: 3 nodes for 30 developers, far cheaper than 30 cloud workstations.
A backup target for cloud infrastructure. PBS as an offsite backup target for cloud VMs. proxmox-backup-client runs in cloud VMs, backs up to PBS over WireGuard. The cloud VMs are still cloud VMs; PBS just gives you a non-cloud backup in case the cloud provider loses your data.
Conclusion
Proxmox is the rare infrastructure tool that works equally well for a $200 homelab and a $50,000 production cluster. The software is the same; the hardware and the operational practices differ. The path from "one old PC running Proxmox" to "a 5-node production cluster with HA, PBS backups, and Prometheus monitoring" is incremental - each step adds capability without requiring a rewrite.
The configuration that works for me, after three years of iteration: 3 nodes (mix of used Dell servers and Mini-PCs), ZFS mirrors for boot and a separate NVMe pool for VM disks, dedicated corosync VLAN, bonded 10GbE for storage migration, PBS on a separate box with offsite sync to a second PBS at a friend's house, monthly restore tests, Prometheus monitoring with alerts on cluster quorum and ZFS pool health.
The thing I'll be preachy about: don't run a single-node Proxmox cluster for production. The day that node dies is the day everything is down. Three nodes is the minimum, even if the third is a tiny Mini-PC that just votes. The QDevice pattern (a Raspberry Pi as a third vote) is a legitimate cheat code for 2-node clusters that can't afford a real third node.
The second thing: PBS, not vzdump. The deduplication alone is worth it - a year of daily backups of a 100GB VM is ~150GB on PBS, ~36TB with vzdump. Add the encryption, the incremental-forever model, the verification, the offsite sync, and it's not even close. Run PBS on a separate physical machine, not on a PVE host.
If you take one thing from this article: set up ZFS replication between your PVE nodes for the VMs that matter. It's a 5-minute configuration per VM and gives you a near-instant failover when a node dies. The alternative is restoring from backup, which is hours. That's the difference between "we were down for 30 seconds" and "we were down for 3 hours."
Originally published on Mango Developer.
Top comments (1)
When a small platform team runs Proxmox in production, how do you give operators or contractors browser access to the port 8006 web UI and internal LXC dashboards without exposing the management network?