majorpaynedof Posted June 11, 2020 Share Posted June 11, 2020 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. Quote Link to comment
majorpaynedof Posted June 11, 2020 Author Share Posted June 11, 2020 Anyone have a clue how to even begin this? Quote Link to comment
JonathanM Posted June 11, 2020 Share Posted June 11, 2020 40 minutes ago, majorpaynedof said: Anyone have a clue how to even begin this? Periodically parse the output of virsh list and act on the result using the appropriate virsh start or resume. 1 Quote Link to comment
majorpaynedof Posted June 12, 2020 Author Share Posted June 12, 2020 Ooof ok, I have some work ahead of me Quote Link to comment
JonathanM Posted June 12, 2020 Share Posted June 12, 2020 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. Quote Link to comment
Recommended Posts
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.