Living collection of snippets, tips and tricks for Proxmox VE.
Post-install
Non-subscription software repositories
Disable the enterprise repository:
mv /etc/apt/sources.list.d/pve-enterprise.list /etc/apt/sources.list.d/pve-enterprise.list.disabledDisable the Ceph repository:
mv /etc/apt/sources.list.d/ceph.list /etc/apt/sources.list.d/ceph.list.disabledEnable the no-subscription repository (source):
echo "deb http://download.proxmox.com/debian/pve bookworm pve-no-subscription" > /etc/apt/sources.list.d/pve-no-subscription.listUpgrade the node:
apt update && apt upgrade -yRemove the subscription notice in the web client. Credits go to John McLaren:
sed -Ezi.bak "s/(Ext.Msg.show\(\{\s+title: gettext\('No valid sub)/void\(\{ \/\/\1/g" /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js && systemctl restart pveproxy.service
User management
Manually delete a user
Delete user from /etc/pve/user.cfg and /etc/pve/priv/shadow.cfg.
Networking
Firewall
- Do not enable firewall before configuring it (Default input policy is to
DROPeveryting). - Lower-level rules override higher-level rules. For example, datacenter rules are overridden by node rules, if firewall is enabled on the node.
Storage
CLI
Virtual Machines
qm - Qemu/KVM Virtual Machine Manager
qm start <id> - Start VM.
qm shutdown <id> - Gracefully shutdown VM.
qm reset <id> - Reset VM (kill and start immediately).
qm stop <id> - Kill VM immediately.
qm set <id> --onboot 0 - Disable start on boot for VM.
qm config <id> - Get VM config.
Containers
pct - Tool to manage Linux Containers (LXC) on Proxmox VE
pct list - List containers.
pct config <id> - Get container config.
pct enter <id> - Open shell session on container.