Proxmox Commands
Proxmox VE CLI commands for virtualization management.
Node Startup Procedure
Step 1: Power on Proxmox nodeBoot the physical server
Step 2: Wait for node bootWait 3-5 minutes for Proxmox services to start
Step 3: Verify node statusCheck Proxmox services are running
pveversionVerify Proxmox version
systemctl status pve-clusterCheck cluster service status
systemctl status pvedaemonCheck daemon service status
Step 4: VMs/CTs auto-startGuests with auto-start enabled will boot automatically
qm listList all VMs and their states
pct listList all containers and their states
Step 5: Verify cluster statusEnsure node rejoins cluster (if clustered)
pvecm statusCheck cluster status
Node Shutdown Procedure
Step 1: Migrate or shutdown VMs/CTsMove or stop guests before node shutdown
qm listList all VMs to identify running ones
pct listList all containers to identify running ones
qm shutdown <vmid>Gracefully shutdown VM
pct shutdown <ctid>Gracefully shutdown container
Step 2: Migrate HA resources (if clustered)Move HA resources to other nodes
ha-manager migrate <vmid> <target_node>Migrate HA resource to another node
Step 3: Check storage syncEnsure replication is complete
pvesr statusCheck replication status
Step 4: Shutdown nodeGracefully shutdown Proxmox node
shutdown -h nowShutdown the node immediately
rebootReboot the node (alternative)
System Information
pveversionDisplay Proxmox VE version
pveversion -vDisplay detailed version info
pvesh get /versionGet version via API shell
pvesh get /cluster/statusGet cluster status
pvesh get /nodesList all nodes
pvenode statusDisplay node status
uptimeDisplay system uptime
df -hDisplay disk usage
free -hDisplay memory usage
Virtual Machine (QEMU/KVM)
qm listList all VMs
qm status <vmid>Get VM status
qm start <vmid>Start VM
qm shutdown <vmid>Shutdown VM gracefully
qm stop <vmid>Stop VM forcefully
qm reboot <vmid>Reboot VM
qm reset <vmid>Reset VM (hard reboot)
qm suspend <vmid>Suspend VM
qm resume <vmid>Resume suspended VM
qm create <vmid> --name <name> --memory <mb> --cores <num>Create new VM
qm clone <vmid> <newvmid> --name <name>Clone VM
qm destroy <vmid>Delete VM
qm config <vmid>Display VM configuration
qm set <vmid> --memory <mb>Set VM memory
qm set <vmid> --cores <num>Set VM CPU cores
qm monitor <vmid>Enter QEMU monitor
qm terminal <vmid>Open VM console
qm unlock <vmid>Unlock VM
Container (LXC)
pct listList all containers
pct status <ctid>Get container status
pct start <ctid>Start container
pct shutdown <ctid>Shutdown container gracefully
pct stop <ctid>Stop container forcefully
pct reboot <ctid>Reboot container
pct create <ctid> <template> --hostname <name> --memory <mb>Create container
pct destroy <ctid>Delete container
pct enter <ctid>Enter container shell
pct exec <ctid> -- <command>Execute command in container
pct config <ctid>Display container configuration
pct set <ctid> --memory <mb>Set container memory
pct set <ctid> --cores <num>Set container CPU cores
pct unlock <ctid>Unlock container
pct console <ctid>Open container console
Snapshot Management
qm snapshot <vmid> <snapname>Create VM snapshot
qm listsnapshot <vmid>List VM snapshots
qm rollback <vmid> <snapname>Rollback VM to snapshot
qm delsnapshot <vmid> <snapname>Delete VM snapshot
pct snapshot <ctid> <snapname>Create container snapshot
pct listsnapshot <ctid>List container snapshots
pct rollback <ctid> <snapname>Rollback container to snapshot
pct delsnapshot <ctid> <snapname>Delete container snapshot
Storage Management
pvesm statusDisplay storage status
pvesm list <storage>List content in storage
pvesm alloc <storage> <vmid> <filename> <size>Allocate disk image
pvesm free <volume>Free storage volume
pvesm scan nfs <server>Scan for NFS exports
pvesm scan iscsi <portal>Scan for iSCSI targets
pvesm add nfs <storage> --server <ip> --export <path>Add NFS storage
pvesm remove <storage>Remove storage
lvsList LVM logical volumes
vgsList LVM volume groups
pvsList LVM physical volumes
zpool statusDisplay ZFS pool status
zpool listList ZFS pools
zfs listList ZFS datasets
Network Configuration
ip addr showDisplay network interfaces
ip route showDisplay routing table
brctl showDisplay Linux bridges
ovs-vsctl showDisplay Open vSwitch configuration
ovs-vsctl list-brList OVS bridges
pvesh get /nodes/<node>/networkGet node network config via API
cat /etc/network/interfacesView network configuration file
systemctl restart networkingRestart networking service
ifreload -aReload network interfaces
Cluster Management
pvecm statusDisplay cluster status
pvecm nodesList cluster nodes
pvecm create <clustername>Create new cluster
pvecm add <master_ip>Join existing cluster
pvecm delnode <nodename>Remove node from cluster
pvecm expected 1Set expected votes (quorum recovery)
pvecm updatecertsUpdate cluster certificates
ha-manager statusDisplay HA status
ha-manager add <vmid>Add resource to HA
ha-manager remove <vmid>Remove resource from HA
Backup & Restore
vzdump <vmid>Backup VM or container
vzdump <vmid> --mode snapshot --compress lzoBackup with snapshot and compression
vzdump --allBackup all VMs and containers
qmrestore <backup> <vmid>Restore VM from backup
pct restore <ctid> <backup>Restore container from backup
pvesh get /cluster/backupList backup jobs
ls /var/lib/vz/dump/List backup files
User & Permission
pveum user listList users
pveum user add <username>@<realm> --password <password>Add user
pveum user delete <username>@<realm>Delete user
pveum passwd <username>@<realm>Change user password
pveum group listList groups
pveum group add <groupname>Create group
pveum acl listList ACLs
pveum role listList roles
Service Management
systemctl status pve-clusterCheck cluster service status
systemctl status pveproxyCheck web interface status
systemctl status pvedaemonCheck daemon status
systemctl status pvestatdCheck statistics daemon status
systemctl restart pveproxyRestart web interface
systemctl restart pvedaemonRestart daemon
systemctl restart pve-clusterRestart cluster service
pvesr statusDisplay replication status
Updates & Packages
apt updateUpdate package lists
apt dist-upgradeUpgrade all packages
pveupdateCheck for Proxmox updates
pve6to7Check PVE 6 to 7 upgrade readiness
pve7to8Check PVE 7 to 8 upgrade readiness
apt install <package>Install package
apt remove <package>Remove package
apt list --installedList installed packages
Monitoring & Logs
pvesh get /cluster/resourcesGet cluster resource usage
pvesh get /nodes/<node>/statusGet node status
topDisplay running processes
htopInteractive process viewer
journalctl -fFollow system journal
journalctl -u pveproxyView pveproxy logs
tail -f /var/log/syslogMonitor syslog
tail -f /var/log/pve/tasks/activeMonitor active tasks
qm showcmd <vmid>Display QEMU command line
pveperfRun performance benchmark