VM is Off - Force it to start


Recommended Posts

Good Morning I did a search but maybe my parameters were to wide or I was not using the proper verbage.

 

In the middle of the night a user inadvertently shutdown one of the Linux VM's we have running from within the actually OS. I'm hoping someone has run into this and has a solution that if Unraid sees this VM off or in a suspended state that it will just turn it back on.  

Link to comment

Or, just brute force it and script a virsh start <VMNAME> command every few minutes. Downside to automatically restarting a VM is if the start command is issued while to array is being asked to stop you could run into issues.

 

I'd only force a VM start every hour or so, eventually the users should learn not to shut down VM's.

 

 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.