Update: Because of Ubuntu's curious hybrid state between upstart and init.d/SysV (I think), I had to add one additional step so that the graceful shutdown would work in every scenario.
To init.d...
Type: Posts; User: maxwellcom; Keyword(s):
Update: Because of Ubuntu's curious hybrid state between upstart and init.d/SysV (I think), I had to add one additional step so that the graceful shutdown would work in every scenario.
To init.d...
I am very happy to report success.
First, I created the script /home/<user>/Script/vmhalt:
#!/bin/bash
# set primary variables
credentials="/path/to/credentials/file/.vmcred"
While originally researching a solution, I did come across that very link. It looks like a robust replacement for init.d and likely to allow the sort of controlled vm shutdown I'm trying to develop,...
Using this post I modified the script to allow a sudo shutdown and implemented a launcher - seems like it will do the trick. Thanks!
#if vm is running, send shutdown signal and wait 5m for...
That would work if I could somehow modify the standard GUI shutdown to point to the main script. At least then I could try to remember to always shutdown via GUI (and not "shutdown -h now" from...
I made a simple script that issues a network signal to shut down a virtual machine running in vmplayer:
#!/bin/bash
#if vm is running, send shutdown signal and wait 5m for shutdown.
...