# How to Create and Configure a Proxmox VE Cluster

## Prerequisites

- 2 or more Proxmox VE hosts
- All hosts must be on the same version of Proxmox VE
- All hosts must be able to communicate over UDP ports 5404 and 5405 and TCP port 22
- Finalized hostnames and IP addresses (can't be changed later)

## Preparation

1. Log into the Proxmox web UI for each of the hosts to be joined to the cluster
2. Run the following commands on each node to update them
   # update software repositories
   apt update
   # install available updates
   apt upgrade -y

## Creating the Cluster

1. On the main node of the cluster, select Datacenter from the left navigation menu
2. Select Cluster from the left sub-navigation menu
3. Click the Create Cluster button
4. Give the cluster a name > Click Create
5. Close the Create Cluster summary dialog
6. Click the Join Information button
7. Click the Copy Information button at the bottom of the dialog
8. On the remaining nodes to join to the cluster, select Datacenter from the left navigation menu
9. Select Cluster from the left sub-navigation menu
10. Click the Join Cluster button
11. Paste the copied join information into the Information field
12. Enter the main node's root password in the password field
13. Click the Join button
14. After a few minutes the cluster nodes should sync and show data across all nodes

Further reading: https://pve.proxmox.com/pve-docs/pve-admin-guide.html#chapter_pvecm