Home Blog About Me Resume

Proxmox Cluster with QDevice & Data Center Manager

Introduction

I am setting up another Proxmox server and making a cluster with my current one. I will then install and setup Proxmox Data Center to have a dashboard to view my Proxmox environment.

Setting up the Cluster

Main Node Configuration

On the main node, create the cluster with the command:

pvecm create homelab
Cluster creation output

Fig 1: Creating the Proxmox Cluster

Check cluster status:

pvecm status
Primary node status

Fig 2: Primary node status

Node 2 Configuration

Join node 2 to the cluster (replace IP with primary node's IP):

pvecm add 172.16.1.24
Node 2 join output

Fig 3: Node 2 added to cluster

Verify nodes:

pvecm nodes
Cluster nodes list

Fig 4: Cluster nodes listing

QDevice Setup

With only 2 nodes, you need a QDevice to maintain quorum if one node fails. This can be a small VM, Raspberry Pi, or another system.

Configuration Steps

Set a static IP for the QDevice:

nano /etc/network/interfaces
Static IP config

Fig 5: Configuring static IP

Install corosync on QDevice:

apt install corosync-qnetd -y

Adjust SSH settings for root login and password authentication:

PermitRootLogin yes
PasswordAuthentication yes
      

Install corosync qdevice on both Proxmox nodes:

apt install corosync-qdevice -y

Setup QDevice on one node:

pvecm qdevice setup 172.16.1.50

Verify quorum:

pvecm status
Cluster status with QDevice

Fig 6: Cluster status showing quorum

Proxmox Web UI Overview

View your nodes in the web UI:

Proxmox nodes in web UI

Fig 7: Nodes visible in Proxmox web interface

Data Center Manager Setup

Download Proxmox Data Center Manager: Download

Installation

Access DCM at: http://your-ip:8443

Linking with Cluster

In DCM: Remotes → Add → Proxmox VE. Enter server IP and port.

Add Proxmox remote

Fig 8: Adding Proxmox remote

Creating and Using API Token

Generate token on primary node (Datacenter → Permissions → API Tokens → Add):

Create API token

Fig 9: Creating API token

Copy Token ID and Secret into DCM remote setup:

Token ID and Secret

Fig 10: Token credentials

DCM remote setup

Fig 11: Configuring remote in DCM

DCM summary

Fig 12: Summary of remote setup

Accessing Dashboard

View cluster information in DCM dashboard:

DCM dashboard

Fig 13: Data Center Manager dashboard