proxmox
Proxmox Virtual Environment — LXC and VM management (https://www.proxmox.com)
--- LXC Containers (pct) ---
To list all containers:
To enter a container shell
To create a new unprivileged LXC container
pct create <vmid> <template> \
--hostname <name> \
--unprivileged 0 \
--net0 name=eth0,bridge=vmbr0,ip=dhcp,ip6=slaac \
--features nesting=1 \
--password $(pass show default-lxc-password)
To list available templates
To download a template
pveam download local <template-name>
To clone a container
pct clone <vmid> <new-vmid> --hostname <new-name>
To set container config option
pct set <vmid> --<option> <value>
To resize a container disk
pct resize <vmid> rootfs +<size>G
To take a snapshot
pct snapshot <vmid> <snapname>
To restore a snapshot
pct rollback <vmid> <snapname>
--- Virtual Machines (qm) ---
To list all VMs:
To take a VM snapshot
qm snapshot <vmid> <snapname>
--- Nodes & Cluster ---
To check node status:
pvesh get /nodes/<node>/status
--- Post-Setup LXC Convention ---
After container creation, always run:
apt update && apt install -y openssh-server syncthing
systemctl enable --now syncthing@root
sed -i 's/#PermitRootLogin.*/PermitRootLogin yes/' /etc/ssh/sshd_config
systemctl restart ssh
apt purge -y cloud-init
--- Networking ---
Add Traefik conf: pve/traefik/conf.d/.yml
Add AdGuard DNS rewrite for .home
Run: /homepage update && /traefik update && /gatus update