Get list of CT and VMs with their guest OS

DmytroKhytryi

Member
Nov 26, 2021
5
0
6
40
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: