Before Create Datacenter

add ssh public key to hosts

nano /etc/ssh/ssh_config
PermitRootLogin yes

copy key to node1

ssh-copy-id -i [email protected]

copy key to node2

ssh-copy-id -i [email protected]

copy key t node3

ssh-copy-id -i [email protected]

Config Local DNS

Node1

connect to ssh

ssh [email protected]
nano /etc/hosts 
192.168.1.128 pve1.local pve1
192.168.1.129 pve2.local pve2
192.168.1.130 pve3.local pve3

test for ping ping pve2 and ping pve3

Wrong Repository


nano /etc/apt/sources.list
# deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise

dev https://download.proxmox.com/debian/pve stretch no-subscription 

install htop and mc

apt install htop mc 
apt update

Node2

connect to ssh

ssh [email protected]
nano /etc/hosts 
192.168.1.128 pve1.local pve1
192.168.1.129 pve2.local pve2
192.168.1.130 pve3.local pve3

test for ping ping pve1 and ping pve3

Wrong Repository


nano /etc/apt/sources.list
# deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise

dev https://download.proxmox.com/debian/pve stretch no-subscription 

install htop and mc

apt install htop mc 
apt update

Node3

connect to ssh

ssh [email protected]
nano /etc/hosts 
192.168.1.128 pve1.local pve1
192.168.1.129 pve2.local pve2
192.168.1.130 pve3.local pve3

test for ping ping pve1 and ping pve2

Wrong Repository


nano /etc/apt/sources.list
# deb https://enterprise.proxmox.com/debian/pve stretch pve-enterprise

dev https://download.proxmox.com/debian/pve stretch no-subscription 

Install htop and mc

apt install htop mc 
apt update

Create Cluster

On Node1

on Website:

Datacenter > Create Cluster >

Cluster Name : cluster1
Ring 0 Address: 

Datacenter > Cluster > Join Information > Copy information (copy)


On Node2

Datacenter > Cluster > Join Cluster > Past (ctrl+V) >

password: *******  # from Node1 

On Node3

Datacenter > Cluster > Join Cluster > Past (ctrl+V) >

password: *******  # from Node1 

CLI Command

Status node

pvecm status

if you only want a list of all nodes, use:

pvecm nodes
qm list

migrate machine from node1 (101 = id of machine), to (pve2 = name of node2)

qm migrate 101 --online pve2 --with-local-disks

Root

# PermitRootLogin yes
PermitRootLogin without-password