Proxmox
Install Proxmox
download iso
https://www.proxmox.com/en/downloads/proxmox-virtual-environment/iso
Create boot USB
disable uefi ไม่งั้นจะติดตั้งไม่ได้
หลังจากนั้นติดตั้งตามขั้นตอนปกติ
Post Install Proxmox
This script provides options for managing Proxmox VE repositories, including disabling the Enterprise Repo, adding or correcting PVE sources, enabling the No-Subscription Repo, adding the test Repo, disabling the subscription nag, updating Proxmox VE, and rebooting the system.
Run the command below in the Proxmox VE Shell.
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/post-pve-install.sh)"
Basic Setup
https://tteck.github.io/Proxmox/
https://github.com/vzamora/Proxmox-Cheatsheet
Backup
backup ผ่าน nfs จะ fail ถ้า backup ขนาดใหญ่ให้แก้ไฟล์ ที่ตัว server จะใช้ได้
Bash:
nano /etc/vzdump.conf
# vzdump default settings
#tmpdir: DIR
#dumpdir: DIR
แก้เป็น:
# vzdump default settings
tmpdir: /var/tmp/
#tmpdir: DIR
#dumpdir: DIR
แล้ว ctrl+x แล้ว Y แล้ว Enter ออกมา
Maintenance
Update LXC
Run ที่ Node ทีเดียว
bash -c "$(wget -qLO - https://github.com/tteck/Proxmox/raw/main/misc/update-lxcs.sh)"
Run ที่ LXC ทีละอัน
apt update && apt upgrade -y
Docker Update Check
docker run -v /var/run/docker.sock:/var/run/docker.sock containrrr/watchtower --run-once --monitor-only