Get list of CT and VMs with their guest OS

DmytroKhytryi

Member
Nov 26, 2021
5
0
6
39
Unfortunately, was not able to find an answer.
Is there any way to get a full list of VMs/CTs with their guest OS?
Not only specs with "pvesh get"
 
You can achieve this using a simple bash script, by listing all VMs/CTs running or all of them (qm list - pct list), then looping to get the `ostype` from the config then determining the OS, and finally printing the VMID and output
 
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 yours easily in our online shop.

Buy now!