Command-Line Command to List all Virtual Machines Hosted in a Node
Proxmox
05/19/2025
Use the following command to to list all virtual machines hosted in a Proxmox node. Connect to the node's console and perform the following
for vm in $(sudo qm list | awk '{print $1}' | grep -Eo '[0-9]{1,3}'); do echo $vm;done