Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The Question

How do i start this Wiki VM at the startup of the OSX Server?

I am running OSX Server 10.6.8 and VirtualBox 4.1.8 r75467 and a Debian Linux VM (called "wiki").


What I tried so far

Following this article:, i have wrote this plist and placed it in /Library/LaunchDaemons/

<plist version="1.0">

and told launchd to start it:

sudo launchctl load -w /Library/LaunchDaemons/


The Logfile

But the VM doesn't start. A Look at

tail -f /var/log/system.log


sudo[1909]: administrator : TTY=ttys000 ; PWD=/Users/administrator ; USER=root ; COMMAND=/bin/launchctl load -w /Library/LaunchDaemons/
VBoxSVC[1914]: 3891612: (connectAndCheck) Untrusted apps are not allowed to connect to or launch Window Server before login.
VBoxSVC[1914]: kCGErrorFailure: Set a breakpoint @ CGErrorBreakpoint() to catch errors as they are logged.[1] ([1910]): Exited with exit code: 1

When i log into the server via ssh (so no login window opened) i can run:

/usr/bin/VBoxHeadless -s wiki

and it works. So i don't understand the error above.

share|improve this question
As an aside, have you ever considered OSX Server's built-in wiki engine. Many people either love it or hate it. I like it personally. I use it for one of my wikis. – JoshP Sep 28 '12 at 14:59

I think VMs are created under your normal user and not under root.

Try to set lunchd to start the command with your normal user privileges.

share|improve this answer

Another idea is to do this:

While you have Virtualbox in your dock right click on it, go to Options, and then click on "Open at Startup". Of course, this won't start the actual Virtual Machine automatically, but it will start Virtualbox.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .