Overview
Adding individual Proxmox nodes into a cluster allows for a centralized web management portal, removing the need to access each nodes web portal separately. Joining the cluster also allows for replicated configuration, making management of the nodes and the environment simpler. Virtual machines can be migrated between nodes, which is useful for maintenance windows and providing High Availability functionality, which will be covered in a later guide.
- NOTE: A minimum of 3 Proxmox nodes is typically required in order to maintain quorum. However, using a Qdevice allows for a two-node cluster to operate and maintain quorum, without the need of an entire third Proxmox node.
The topic of Qdevice configuration will be covered in a later guide.
Requirements
- Two Proxmox nodes (or more) installed and initial configuration completed.
- Network connectivity between the nodes.
Configuring the Proxmox Cluster
The first step to configure the Proxmox cluster is to ensure we have access to the web management console for both Proxmox nodes. Although this configuration can be achieved via the terminal on each node, we are going to use the GUI to provide a visual representation of how this all hangs together.
Create the Cluster (First Node)
- Starting with the first Proxmox node in the environment, navigate to the web interface, login and select Datacenter from the left side navigation panel.
- Within this section, select Cluster, then click the button Create Cluster.
- Provide a name for the cluster and click Create.
- You should see an output message with the text
TASK OK
once the cluster has been successfully created. - The Proxmox node should now also be listed under the section Cluster Nodes.
- Click the button Join Information and click the button Copy Information. This will be used to join the second Proxmox node to join the cluster that has just been created.
Join the Cluster (Second Node)
- In another browser window, navigate to the web interface for the second Proxmox node.
- Login and navigate to the Datacenter section, select Cluster and click Join Cluster.
- Paste the copied data from the first Proxmox node into the Information field.
- Enter the root password for the first Proxmox node and click Join Cluster.
Once complete, you should now see both Proxmox nodes listed under the Cluster Nodes section, along with the nodes listed in the left side navigation panel.
Joining the cluster will allow each node to be configured from the web interface of the other node, and visa versa.
Live VM Migration
The ability to migrate VMs between Proxmox nodes is a functionality provided when using Proxmox nodes in a cluster. This can be useful during planned maintenance windows or when a specific Proxmox nodes resources are nearing capacity.
- NOTE: Live migration is only possible if both the source and target nodes are active and online.
Using live (online) migration allows for the VM to remain active while it is migrated from the first Proxmox node to the second node. The migration will include storage along with CPU and memory state.
- Right click the VM and select Migrate (alternatively use the Migrate button from the top navigation panel).
- Select the target node to migrate the VM, and select the an available storage option.
- Enable the option for Contrack State if using the built-in Proxmox firewall. This will help maintain network connections during the migration process.
- Click Migrate to begin the live migration from node 1 to node 2.
- Optional: Run a continuous ping test during the migration to demonstrate the VM is remaining active during the process.
- Once complete, you will see the VM listed under the second node in the navigation tree in the left side panel.
Next Steps
This concludes the steps required to configure clustering for Proxmox in the home lab, showing the benefits of a live migration for VMs within a cluster. The next part in this series will provide the steps required to configure a Qdevice for maintaining quorum within the Proxmox cluster.
Photo by Kvistholt Photography on Unsplash