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 ออกมา
Proxmox VM
Install Windows
Windows ตอนติดตั้งบังคับ microsoft account ให้ disable hardware > Nedwork Device ก่อนติดตั้ง (ใน advance)
ถ้า VM ค้างแล้วปิดไม่ได้
100 คือเลข id
rm -f /var/lock/qemu-server/lock-100.conf
qm unlock 100
qm stop 100
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