Fenix Posted January 13, 2019 Share Posted January 13, 2019 Hey Guys, I've got a VM with GPU passthrough running, basically my unraid server is my main rig at the moment. I would like to refine my experience with a few tweaks. First of all is it possible to use the power button of my case to send my unraid server to sleep? Or has someone an idea how you could write a script that sends the server to sleep a few seconds after the VM is shutdown? Also any suggestions how you made your life easier while using an VM as your main rig are welcome. Quote Link to comment
Squid Posted January 13, 2019 Share Posted January 13, 2019 I don't sleep my servers, but the first thing to do would be to see if the dynamix s3 plugin works for you Quote Link to comment
Fenix Posted January 13, 2019 Author Share Posted January 13, 2019 (edited) Yes I've got the Dynamix S3 Sleep plugin, putting the server to sleep works like expected, but I have to shutdown my VM first and then use my laptop/smartphone to put the server to sleep. If I press the sleep button in the webinterface while the VM is running, it freezes and shuts down, resulting in windows complaining that the system was not correctly shutdown. I tried to put a command like "virsh stop Daedalus" in the custom commands before sleep, but when I press the Sleep button in the unraid webinterface, It does not care what I wrote down there. Strangely the commands after wakeup work. I was thinking that my issue was that the "virsh stop Daedalus" command exits before the VM is shutdown so I tried a few scripts which wait until all VM's are shutdown, but none of them worked. Has anyone got a working VM stop script, that waits until the VM's are shutdown? Also are there any other services that should be stopped before a sleep? Edited January 13, 2019 by Fenix Quote Link to comment
bjornatic Posted February 18, 2020 Share Posted February 18, 2020 Soo... i'm digging up this topic because I do too face the same problem. I would like that my running VM's are put to hibernate before Unraid goes to sleep (either via pressing the button or the Dynamix S3 Sleep plugin). I'm searching the forum for a solution but with no luck. 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.