Proxmox Command-Line Snippets

The following table provides a handy list of Proxmox commands.

Description Command
List all virtual machines hosted in a Proxmox node.

for vm in $(sudo qm list | awk 'NR>1 {print $1}'); do echo "$vm"; done
      
Show detailed status for a specific VM.

qm status <VMID>
      
Display the full configuration of a VM.

qm config <VMID>
      
Start a virtual machine.

qm start <VMID>
      
Stop a virtual machine (graceful shutdown).

qm shutdown <VMID>
      
Force-stop a VM (equivalent to pulling the power).

qm stop <VMID>
      
Migrate a VM to another node (online/live migration).

qm migrate <VMID> <target-node> --online
      
Show node resource usage (CPU, RAM, storage).

pvesh get /nodes/$(hostname)/status
      
List all storage backends available on the node.

pvesm status
      
List all nodes in the Proxmox cluster.

pvecm nodes
      
Display cluster quorum and corosync status.

pvecm status