Lesson 1 of 9 · 22m
The Proxmox Operating Model
What Proxmox actually is under the web UI: Debian, KVM, LXC, cluster-wide configuration, and the commands that matter when the GUI is unavailable.
Proxmox VE is not a black-box hypervisor appliance. It is Debian Linux with a carefully integrated stack: KVM/QEMU for virtual machines, LXC for containers, ZFS and Ceph integration for storage, and a small cluster filesystem that replicates configuration between nodes. Treat it as Linux plus disciplined orchestration and most mysteries disappear.
The objects you operate
A virtual machine is a QEMU process with a numeric VMID and a config file. A container is an LXC instance, also with a numeric ID. The web UI calls both guests; the CLI does not.
qm list # virtual machines
pct list # LXC containers
qm config 101 # VM 101 definition
pct config 200 # container 200 definitionThose definitions are plain text:
# /etc/pve/qemu-server/101.conf
name: wiki-prod
memory: 4096
cores: 4
scsi0: local-zfs:vm-101-disk-0,size=32G
net0: virtio=BC:24:11:4A:10:01,bridge=vmbr0
ostype: l26
boot: order=scsi0/etc/pve is the important idea. On a cluster it is not normal node-local storage; it is backed by pmxcfs, a small database-backed filesystem replicated through corosync. Do not hand-edit copies, symlink it elsewhere, or point backups there as if it were a normal directory.
GUI first, API second, shell when necessary
The web UI is good for inspection and routine work. Automation should use the REST API or the CLI because both follow the same object model. SSH remains essential when a guest will not boot, storage is degraded, or corosync disagrees with reality.
Useful read-only triage commands:
pvesh get /nodes/$(hostname)/status
systemctl status pveproxy pvedaemon pvestatd
journalctl -u pveproxy -n 80 --no-pagerRepositories are not cosmetic
Fresh installs often point at the enterprise repository without a subscription. That is not broken licensing; it is the wrong repository for a lab. Use the no-subscription repository for non-paying systems, and keep every node on compatible versions.
cat /etc/apt/sources.list.d/pve-enterprise.list
apt update
pveversion -vField notes
- VMIDs are global identity, not decoration. Adopt ranges such as 100-199 for VMs and 200-299 for containers before the estate grows.
- Never store anything important only under
/var/lib/vzwithout understanding which storage backend that path represents. qm unlock <vmid>removes a stale task lock; it does not repair whatever operation created the lock.- If
/etc/pvelooks empty on one node, treat it as a cluster filesystem problem, not as a missing-file coincidence. - Learn the CLI before an incident. The first time you need
qmshould not be while the web proxy is down.
Was this lesson helpful?