I'm looking for a script to check if any of my VM is up and running and then if there aren't, shutdown the system. Otherwise if any VM is up, do nothing.
I searched the web but didn't find anything useful.. just the "powerdown" function to turn off the server.
Script to check if any VM is up and running, then shutdown
in VM Engine (KVM)
Posted · Edited by Ironman79
Hi everyone,
I'm looking for a script to check if any of my VM is up and running and then if there aren't, shutdown the system. Otherwise if any VM is up, do nothing.
I searched the web but didn't find anything useful.. just the "powerdown" function to turn off the server.
Any help?
Thank you so much!