Home Create proxmox cluster
Post
Cancel

Create proxmox cluster

I’ve already done a tutorial on how “Change your old laptop into proxmox node“, but what do you do in case you run out of RAM or CPU cores? Or maybe you want to create some HA(high availability) in your Homelab environment.

Well, in that case, you can just add another proxmox node and cluster them together! Sure, you can have them running separately, but grouping nodes has many advantages like

Grouping nodes into a cluster has the following advantages:

  • Centralized, web-based management
  • Multi-master clusters: each node can do all management tasks
  • Use of “pmxcfs”, a database-driven file system, for storing configuration files, replicated in real-time on all nodes using “corosync”
  • Easy migration of virtual machines and containers between physical hosts
  • Fast deployment
  • Cluster-wide services like firewall and HA

Requirements

  • 2 or more proxmox nodes
  • same network for all of them

In a case you want to know how to create a single proxmox node, follow my previous tutorial.

Creating a cluster

In this example, I have two running proxmox nodes (proxmox, proxmox2).

img-description Log in the first node (proxmox) and go to > Datacenter > Cluster, and select Create Cluster.

img-description

  1. Select a cluster name, and click create (leave the cluster network on default). The cluster will then be created and you’ll be able to join it from other Proxmox instances.

img-description

Join a cluster

Go to node 1 in which you’ve created a cluster (in my case name is proxmox). And go to Datacenter > Cluster > Join information

img-description

img-description

You will need both, the Fingerprint and Join Information to join the cluster. Select Copy Information.

  1. Open your second Proxmox node (proxmox2) and select Datacenter, Cluster, and Join Cluster. img-description

  2. You will see Cluster Join window prompt like this. Simply paste the copied information and type in password and click Join. img-description

img-description

You should see a Task viewer: Join Cluster window. It may seem like it stuck, but don’t worry, I think it’s just a bug and your cluster should already be up and running.

img-description

img-description

Now you can monitor and provision both of them from one place.

You can also migrate your “VMs” and LXC containers between them and you can also set up something called HA (high viability) which will keep your nodes running even if one of the nodes shuts down.

This post is licensed under CC BY 4.0 by the author.