Startup Sequence Overview?

UdoB

Distinguished Member
Nov 1, 2016
2,295
1,061
243
Germany
Hello,

some of my VMs shall start when a host starts up. For this there is per VM --> "Options" --> "Start/Shutdown Order". Works fine :)

To rearrange that sequence I would like to get an overview regarding this timing and order. Is there a way to show that information in a table, cluster-wide and/or per host? Commands like pvesh get /cluster/resources --type vm seem to lack this information. Also I can not find any information seeking for "startup" in the API-Viewer https://pve.proxmox.com/pve-docs/api-viewer/index.html

Do I need to parse the config manually, like:
Code:
~# grep startup /etc/pve/nodes/pvee/qemu-server/1103.conf | head -n1
startup: order=70,up=38,down=120

...or is there a more elegant solution I just don't see?


Best regards on this sunny sunday :)
 
  • Like
Reactions: janssensm
hi,

you can recursively grep in /etc/pve/qemu-server for "startup":
Code:
grep -R startup /etc/pve/qemu-server

can also do it for containers if you grep instead in /etc/pve/lxc/.

since /etc/pve is cluster filesystem you should be able to see all guests like that
 
  • Like
Reactions: janssensm
you can recursively grep in /etc/pve/qemu-server for "startup":
Yes, thanks. That will suffice - I was just hoping for something more elegant...

Best regards
 
Also I can not find any information seeking for "startup" in the API-Viewer https://pve.proxmox.com/pve-docs/api-viewer/index.html
It's here:
VM: nodes/{node}/qemu/{vmid}/config
LXC: /nodes/{node}/lxc/{vmid}/config
But just for 1 guest.

It would indeed be nice to see it returned in the array in path cluster/resources as this already gives a very nice overview in a table format. And if the array would then become too large, (the current table doesn´t fit my 1920x1200 screen, but does with my 2nd epanded ;)) perhaps an extra full parameter could be used similar too /nodes/{node}/qemu. Just some thoughts, not an api expert here.