Looking for some advice in case I've missed something.
I'm looking to configure NUT to shutdown LXC/VMs that are non crucial when the notification for 'ONBATT' occur. The remaining I would shut down on 'LOWBATT'.
To do this I'm looking for a way to get a list of lxc / vm that don't have a tag on them ie "crucial". I'm aware of qm list and pct list but I'm not seeing any way of filtering them based on tags. I'd like to avoid having to parse the list of all the conf files if I can, if not it's probably not that difficult a script but having a command that could just spit out the list would be even easier.
Additionally if the power comes back 'ONLINE' I'm curious if there is a simple way to trigger the on boot ordered sequence of startups for everything that is start at boot?
Thanks for any info in advance.
I'm looking to configure NUT to shutdown LXC/VMs that are non crucial when the notification for 'ONBATT' occur. The remaining I would shut down on 'LOWBATT'.
To do this I'm looking for a way to get a list of lxc / vm that don't have a tag on them ie "crucial". I'm aware of qm list and pct list but I'm not seeing any way of filtering them based on tags. I'd like to avoid having to parse the list of all the conf files if I can, if not it's probably not that difficult a script but having a command that could just spit out the list would be even easier.
Additionally if the power comes back 'ONLINE' I'm curious if there is a simple way to trigger the on boot ordered sequence of startups for everything that is start at boot?
Thanks for any info in advance.