Start and stop headless VM

Discussions related to using VirtualBox on Mac OS X hosts.

Start and stop headless VM

Postby borgo1971 » 24. Feb 2009, 10:49

I'm looking to make automatically start and stop a headless VirtualBox VM on my office server. I can start the VM sending command vboxheadless -s vm-name, even adding it to lunchd with lingon to start the VM with Server startup (after moving vm to root's Library). But what about shutdown? Is there a way to automatically and nicely shutdown the VM?
And what about this massage I get if I start VM without a user logged into server:
VBoxManage[205] <Warning>: 3891612: (connectAndCheck) Untrusted apps are not allowed to connect to or launch Window Server before login.
How can I avoid it?
Posts: 24
Joined: 11. Feb 2009, 18:32
Location: Italy
Primary OS: Mac OS X Leopard
VBox Version: PUEL
Guest OSses: Windows Server 2003

Re: Start and stop headless VM

Postby schmick » 29. Jul 2009, 05:39

Try with:
VBoxManage controlvm <vmname> pause|resume|reset|poweroff|savestate
get the complete list of options with:
VBoxManage controlvm

i.e. VBoxManage controlvm "Ubuntu LAMP" savestate

Carlos Troncoso Phillips
Posts: 1
Joined: 29. Jul 2009, 05:30
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: Windows

Return to VirtualBox on Mac OS X Hosts

Who is online

Users browsing this forum: No registered users and 15 guests