qm guest details

HPmoss

Member
May 8, 2023
45
7
8
Online
www.google.co.uk
I am looking for a terminal command(s) to get a detailed list of VM guests installed, RAM usage, disk space usage and location of storage. 'qm list' does not show all the info that I need. Any suggestions?
 
Try somethink like this (as 1 cmd line) :
for h in $(ls /etc/pve/nodes/.);do echo "##### $h #####";echo "";for l in $(ls /etc/pve/nodes/$h/lxc/.);do echo "# LXC $(echo $l|cut -d'.' -f1) #";grep -e cores -e hostname -e memory -e disk -e privilege /etc/pve/nodes/$h/lxc/$l;echo "";done;echo "";for v in $(ls /etc/pve/nodes/$h/qemu-server/.);do echo "# VM $(echo $v|cut -d'.' -f1) #";grep -e cores -e memory -e disk /etc/pve/nodes/$h/qemu-server/$v;echo "";done;echo "";done
 
  • Like
Reactions: UdoB

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!