Skip to main content

Install Proxmox

download iso

https://www.proxmox.com/en/downloads/proxmox-virtual-environment/iso

Create boot USB

https://etcher.balena.io

disable uefi ไม่งั้นจะติดตั้งไม่ได้

หลังจากนั้นติดตั้งตามขั้นตอนปกติ

ระหว่างติดตั้งจะมีหน้าจอให้เลือก target harddisk แนะนำให้กด options เข้าไป ตั้งค่า maxroot 

โดย maxroot (local ในหน้า datacenter) จะเป็นส่วนที่ไว้เก็บตัว OS หรือ ISO, backup ต่าง ๆ หากไม่ได้ใช้ backup หรือเก็บ ISO ไม่เยอะ ตั้งระหว่าง 32-50GB ก็พอ เพราะมีแค่ไว้ใช้กับ OS กับนิด ๆ หน่อย ๆ 

พื้นที่ส่วนที่เหลือที่ไม่ได้กำหนดให้เป็น maxroot จะเป็นส่วนของ local-lvm ไว้ให้เราใช้งานสร้างเป็นพื้นที่  VM Disks หรือ LXC Volumes

ส่วนตัวผู้เขียนใช้แค่เศษ ๆ HDD เช่น HDD 500GB จะมีพื้นที่ประมาณ 473+ ก็จะตั้งแค่ 33-73 ก็พอ

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 ทีเดียว

Proxmox VE LXC Updater Script

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