Know list of VMs with its disk sizes?

alexc

Active Member
Apr 13, 2015
123
4
38
Dealing with several PVE hosts, all of them are standalone, I want to know disk of each VM in some algorithically easy way. The problem that, some of VMs are raw or qcow2 files, some are stored in zfs volumes.

I suspect I can only scan /etc/pve/qemu-server/*.conf files for virtio/scsi/ide/sata lines and scan them for "size=...G" parts, but may there be any other way, like asking PVE to tell given VM disk sizes?
 

oguz

Proxmox Retired Staff
Retired Staff
Nov 19, 2018
5,207
708
118
hi,

just run qm list :)
if you want all the disks for a given VM (and not only bootdisk), then you can do something like qm config VMID | grep size
 
Last edited:

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 your own in 60 seconds.

Buy now!