I have tried using the launchctl plist that comes with VirtualBox but something is going on I can't work out. I can load it and it appears in the list of jobs managed by launchctl:
Code: Select all
launchctl load -w /Applications/VirtualBox.app/Contents/MacOS/org.virtualbox.vboxautostart.plist; launchctl list | grep org
- 1 org.postfix.master
8310 0 org.virtualbox.vboxautostart
245 0 org.cups.cupsd
- 0 org.wireshark.ChmodBPF
84 0 org.macports.net-snmp
- 0 org.macosforge.xquartz.privileged_startx
Code: Select all
launchctl list | grep org
- 1 org.postfix.master
245 0 org.cups.cupsd
- 0 org.wireshark.ChmodBPF
84 0 org.macports.net-snmp
- 0 org.macosforge.xquartz.privileged_startx
I have even tried starting it from cron using the @reboot option but nothing works.
Code: Select all
/usr/local/bin/VBoxHeadless -s ed8b8574-9a71-4b27-b0a9-c6ac81721fe2
/usr/local/bin/VBoxManage startvm ed8b8574-9a71-4b27-b0a9-c6ac81721fe2
The VM is currently running and I don't know if that's an issue.