Public cloud is wonderful until the invoice arrives. A workload that costs $40 a month on a VPS costs $400 a month on a hyperscaler once you add managed disks, load balancers, and data transfer — and it is still somebody else's computer, in somebody else's country, under somebody else's terms. I run production infrastructure on Proxmox VE, and I have for years — 130+ virtual machines across clusters, real customer workloads, real 3 AM pages. Proxmox is the closest thing to a private cloud you can build without a VMware licence or a second mortgage: KVM virtualization, LXC containers, ZFS and Ceph storage, software-defined networking, clustering, HA, and backups, all in one free, open-source package. This is the setup I run in production, and the one I would defend in a DevOps interview. Why Proxmox, and When It Is the Wrong Choice Proxmox VE is a Debian-based hypervisor with a web UI, a REST API, and a CLI for everything. One node is a lab. Three nodes is a cluster. Three nodes with shared storage is a private cloud. Choose Proxmox when you want control: fixed hardware costs, data in your own rack, no per-socket licence, and the freedom to run anything from a Windows VM to a Kubernetes cluster on top. Choose public cloud instead when your load is spiky and unpredictable, when you need a managed service you cannot staff (a managed database, a global CDN), or when you have no one to replace a dead disk at 2 AM. A private cloud is a commitment to operations — if nobody owns the hardware, nobody owns the outage. The single most important decision is made before you install anything: three nodes, not one. A single node is a server with a nice UI. A three-node cluster gives you quorum, live migration, and high availability. Two nodes cannot form a quorum — if one dies, the survivor cannot tell whether it is alone or partitioned, so it stops. Three is the minimum for a real cluster, and it is not negotiable. Install and Cluster: Three Nodes, One Quorum Install Proxmox VE 8.x from the ISO on each node, on identical or near-identical hardware. Give every node two network interfaces at minimum: one for management and cluster traffic (Corosync), one for VM traffic. Corosync is latency-sensitive — it wants a dedicated, low-latency link, and it will punish you with fencing and false failovers if you run it over a congested or lossy network. # On node 1: create the cluster pvecm create my-cluster # On nodes 2 and 3: join it (run once per node) pvecm add 192.168.1.11 # Check quorum — this must say "Quorate: Yes" with 3 votes pvecm status Enter fullscreen mode Exit fullscreen mode Three rules that save you from the classic mistakes: Never run an even number of nodes without a QDevice. Two nodes plus a quorum device (even a Raspberry Pi) beats two nodes alone. But three real nodes is simpler and better. Set the management network to a static IP and a real hostname. Proxmox hates DHCP-assigned management addresses and hostname changes after install. Get this right on day one. Keep Proxmox updated, but never update all nodes at once. Update one node, reboot it, watch the cluster, then do the next. A cluster-wide apt upgrade followed by a simultaneous reboot is how you schedule your own outage. Storage: ZFS Local, Ceph Shared Storage is where private clouds are won or lost. Proxmox gives you two serious options, and they solve different problems. ZFS on local disks is the right choice for a single node or for VMs that do not need to migrate. It gives you snapshots, compression, checksumming, and replication between nodes. Create a ZFS pool per node and let Proxmox manage it: # A mirrored pool for VM disks (2 disks, survives 1 failure) zpool create -f tank mirror /dev/sdb /dev/sdc # Add it to Proxmox as storage pvesm add zfspool local-zfs -pool tank Enter fullscreen mode Exit fullscreen mode Ceph is the right choice when VMs must move. Live migration and HA need shared storage — every node must see the same disks. Ceph turns the disks in your three nodes into one distributed, self-healing pool. It needs at least three nodes, one SSD per node for the OSD journal (or use the SSD itself as the OSD), and a dedicated 10 GbE network for Ceph traffic. Do not run Ceph replication over your VM network; the day a disk rebuild saturates the link, your VMs will feel it. The rule I use: ZFS for local, fast, single-node workloads; Ceph for anything that needs HA. And whichever you pick, test a disk failure before you trust it. Pull a disk (in a lab first), watch the pool degrade, replace it, watch it rebuild. The first time you do this should not be during a real incident. Networking: Bridges, VLANs, and SDN Proxmox networking is Linux networking — bridges, bonds, and VLANs — with a web UI on top. A bridge (vmbr0) is a virtual switch; every VM plugs into one. Keep three networks separate: Management / Corosync — the cluster's private conversation. Never expose it to the internet. VM traffic — what your guests use. Segment it with VLANs: one VLAN per customer, team, or environment. Storage traffic — Ceph replication and ZFS replication. Dedicated interface, dedicated VLAN, no VM traffic. # A VLAN-aware bridge: one bridge, many VLANs # /etc/network/interfaces (managed by Proxmox) auto vmbr0 iface vmbr0 inet manual bridge-ports eno1 bridge-stp off bridge-fd 0 bridge-vlan-aware yes Enter fullscreen mode Exit fullscreen mode Proxmox 8's SDN feature takes this further: define zones (VLAN, QinQ, VXLAN, EVPN) and virtual networks in the UI, and apply them consistently across the cluster instead of hand-editing interfaces on every node. VXLAN is how you stretch a network across racks without stretching a VLAN — useful the day your cluster outgrows one switch. And the firewall: Proxmox has a built-in, cluster-wide firewall at the datacenter, node, and VM level. Turn it on for management access at minimum — the web UI on port 8006 should never be reachable from the internet without a VPN or a reverse proxy in front of it. VMs, Containers, and Templates Proxmox runs two kinds of guests, and knowing which to use is half the job: KVM virtual machines for anything that needs its own kernel: Windows, FreeBSD, a Kubernetes node, a firewall appliance. Full isolation, slight overhead. LXC containers for Linux services that share the host kernel: a web server, a database, a monitoring stack. Near-native speed, seconds to start, a fraction of the memory. The workflow that makes both fast is templates and cloud-init. Build one golden Ubuntu or Debian template with cloud-init, your SSH keys, and the basics installed, then clone it: # Download a cloud image, make a template, clone it in seconds qm create 9000 --name ubuntu-2404-template --memory 2048 --net0 virtio,bridge=vmbr0 qm importdisk 9000 noble-server-cloudimg-amd64.img local-zfs qm set 9000 --scsihw virtio-scsi-pci --scsi0 local-zfs:vm-9000-disk-0 qm set 9000 --ide2 local-zfs:cloudinit --boot c --bootdisk scsi0 qm set 9000 --serial0 socket --vga serial0 qm template 9000 # Clone a new VM from the template with its own IP qm clone 9000 101 --name web-01 --full 1 qm set 101 --ipconfig0 ip=192.168.10.11/24,gw=192.168.10.1 Enter fullscreen mode Exit fullscreen mode A VM that takes 30 minutes to build by hand takes 30 seconds from a template. That difference is what turns infrastructure into something you can actually iterate on — and it is exactly what an interviewer wants to hear you describe. High Availability and Backups HA in Proxmox means: when a node dies, its VMs restart on a surviving node. It needs three things: a quorate cluster, shared storage (Ceph), and HA enabled per VM with a priority. Set it up and then test it by killing a node. Pull the power (in a lab), watch the VMs come back. If you have never tested HA, you do not have HA — you have a checkbox. Backups are the other half, and I wrote a whole post about them yesterday for a reason: a backup you have never restored is a hope, not a backup. Proxmox Backup Server (PBS) is the native answer — deduplicated, incremental, encrypted backups with verify jobs. Schedule nightly backups of every VM, verify them weekly, and restore one to a test VM monthly. The restore test is the entire point; everything else is paperwork. # A backup is only real if you can restore it — test monthly # In PBS: Datastore -> Verify Jobs -> run, and restore one VM to a test node Enter fullscreen mode Exit fullscreen mode Production Pitfalls The mistakes I see most often, in the order they hurt: One node, called a cluster. No quorum, no HA, no migration. A single disk failure is a full outage. Ceph on a 1 GbE network. Rebuilds take days, VMs crawl, and everyone blames the storage. Ceph wants 10 GbE. Budget for it. No fencing configured. A node that is half-dead but still writing to shared storage corrupts data. Proxmox HA with fencing is the difference between an outage and data loss. The management UI on the public internet. Port 8006 open to the world, default credentials, no 2FA. This is how clusters get crypto-mined. VPN or reverse proxy, always. No monitoring of the cluster itself. Proxmox is infrastructure — it needs the same Prometheus and Grafana treatment as everything else (see my Nov 25 post). Monitor disk health, Ceph status, quorum, and backup success. Alert on all four. What Hiring Managers Look For If you are building this to get hired — and that is why I write these posts — know what a Proxmox project proves: you can design a system, not just run commands. Talk about the trade-offs: why three nodes, why Ceph over ZFS for this workload, how you sized the network, what you did when a disk failed. Bring numbers: how many VMs, how much storage, what the recovery time was in your last test. A homelab with a documented failure test beats a certificate with no story behind it. Start small if you must — one node, ZFS, a handful of VMs — but design it as if it will become three nodes. The day you add the second and third node, you will be glad the network, the storage, and the naming were planned for a cluster from the start. Your private cloud does not need to be big. It needs to be real: tested, monitored, backed up, and able to survive a dead disk on a bad day. Build that, and you have built something most teams pay a fortune to rent.
Proxmox VE: Build Your Own Private Cloud
Full Article
Original Source
Read the full article at Dev →KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.