If you like my tips, buy me a coffee
I believe that it is my responsibility to transfer the knowledge I gathered through the years of my experience with Proxmox
Set number of expected nodes in a Proxmox cluster
In some cases when you lose a node on Proxmox cluster, you need to lower that expected nodes to the number total nodes - 1 (n-1)
pvecm expected <number of expected nodes>
Restart Proxmox Cluster
To restart your Proxmox cluster, you can use the following command
service pve-cluster restart && service pvedaemon restart && service pvestatd restart && service pveproxy restart
Create a VM from OVA file
To restart your Proxmox cluster, you can use the following command
== make a working directory
mkdir tt && cd /root/tt
== download the ova
wget -O TurnKey.ova https://laotzu.ftp.acc.umu.se/ova/turnkey-core-16.1-buster-amd64.ova
(This is an example)
== extract the downloaded ova
tar xvf TurnKey.ova
== create a new vm from the ova usage
== qm importovf <unused vmid> <path to ova> <destination storage pool name> [OPTIONS]
qm importovf 300 ./turnkey-core-16.1-buster-amd64.ovf local --format qcow2
Add Proxmox to APT source.list and install Public key
Add this line to /etc/sources.list or to a new file (create a file 'pve-install-repo.list' in the directory /etc/apt/sources.list.d/)
deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription
Get public key
wget https://enterprise.proxmox.com/debian/proxmox-release-bookworm.gpg -O /etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg
Update
apt update