Skip to content
This repository has been archived by the owner on Aug 8, 2024. It is now read-only.
/ vboxd Public archive

A simple launchd agent for Mac OS X to help VirtualBox start/stop VMs on user logging in/out.

Notifications You must be signed in to change notification settings

frankshaka/vboxd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vboxd

A launchd agent for Mac OS X to automatically starts/stops VirtualBox managed virtual machines on user logging in/out.

Why vboxd?

If you log out or shut down your Mac, all running VMs managed by VirtualBox are aborted and forcedly shut down, so that all runtime states of these VMs are lost (e.g. Windows will report this as an abnormal shutdown on next launch) and you have to reboot them manually next time you log in. The 'vboxd' intends to save running VMs' states when you log out by keeping a little launch agent(daemon) running in the background and listening for logging out signal.

Another benefit of using 'vboxd' is that you can specify which VMs should be automatically started once you boot up and log in your Mac, so that you don't have to start them manually.

To Install

$ python setup.py install

To Configure

Edit ~/Library/Application Support/org.virtualbox.custom.vboxd/etc/vboxd-start.conf to specify which virtual machines should be started on daemon starting.

To Reload

$ launchctl unload ~/Library/LaunchAgents/org.virtualbox.custom.vboxd.plist
$ launchctl load ~/Library/LaunchAgents/org.virtualbox.custom.vboxd.plist

To Uninstall

$ python setup.py uninstall

to get launch agent unloaded and executable file deleted while config and log files are kept, or

$ python setup.py uninstall -a

if you want all related files to be deleted.

About

A simple launchd agent for Mac OS X to help VirtualBox start/stop VMs on user logging in/out.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published