Menu

#5 vboxtool-watchdog: Monitors VirtualBox running sessions, res

open
nobody
None
5
2010-05-18
2010-05-18
Anonymous
No

I tried VBoxTool (latest trunk) and find it very useful for managing multiple VMs remotely. One thing that's missing, but will be a nice addition is some kind of a "watchdog" mode, which can be run periodically to verify all VMs in machines.conf are running and to restart them, if not. Because I needed this feature for a server, hosting several machines (a web server, DB server, DNS, etc.), I made such a simple watchdog bash script, which integrates nicely with vboxtool, without any extra requirements (everything is auto-detected). It is designed to be run as root from a crontab rule (e.g. every 10 minutes), uses the configured vboxtool log file, and runs vboxtool as the configured 'vbox_user'.

Just put it somewhere, make it executable, add a crontab rule (or just run it when needed). If VBoxTool is not installed in /usr/local/bin/vboxtool, change the vboxtool_path variable inside vboxtool-watchdog.

Feel free to use/modify the script (uses the same license - GPLv3). If could also consider including it with VBoxTool.

Discussion

  • Mark Baaijens

    Mark Baaijens - 2010-05-18

    Looks nice. I guess this is a good candidate for including into VBoxTool.

     

Log in to post a comment.