skip to content
Maathuran's Blog
Proxmox 8.0 Cluster setup with Post-Install Script

Proxmox 8.0 Cluster setup with Post-Install Script

/ 2 min read

Last Updated:

Introduction

In the Last post, we learned how to image four separate nodes with Proxmox; today, we will merge all of them into one data center in Proxmox and run a helper script to remove the subscription nag.

ProxMox Cluster Setup

After Proxmox is set up and you have all four IPs recorded down, choose one of the nodes to be the primary and use that to add the rest. ProxmoxCluster

Under Datacenter -> Cluster, click the Create Cluster button. You can call it whatever. In my case, I’m going to name it Lab. Click Create to make the cluster.

ProxmoxCluster

After you see TASK OK, click X to close the popup. ProxmoxCluster

Click Join Information on the main page to get the encrypted JWT you must paste on the other nodes. ProxmoxCluster

On each of the other nodes, paste in the JWT token and put in the root password of the master node. ProxmoxClusterJoin ProxmoxClusterJoin2

After adding all nodes, you will be able to see them from any Web Gui ProxmoxClusterJoin3

tteck’s Proxmox Helper Script’s

This collection of scripts1 is beneficial as it contains some for proxmox and some for creating new LXC containers. ProxmoxClusterJoin3

Warning: make sure not to run any scripts you are unfamiliar with blindly. Raw script attached, https://github.com/tteck/Proxmox/raw/main/misc/post-pve-install.sh

Run with the following command bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/post-pve-install.sh)"

If it asks to enter `y’ for each one ProxmoxPostScript

Ultimately, it will ask to reboot, hit `y’, and wait for the host to return online. ProxmoxPostScript2

Repete the same post-install script on the rest of the nodes.

Footnotes

  1. GitHub page for Tteck’s Helper Scripts