Start and stop headless VM

Discussions related to using VirtualBox on Mac OS X hosts.
Post Reply
borgo1971
Posts: 24
Joined: 11. Feb 2009, 18:32
Primary OS: Mac OS X Leopard
VBox Version: PUEL
Guest OSses: Windows Server 2003
Location: Italy

Start and stop headless VM

Post by borgo1971 »

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?
schmick
Posts: 1
Joined: 29. Jul 2009, 05:30
Primary OS: Ubuntu 8.10
VBox Version: OSE Debian
Guest OSses: Windows

Re: Start and stop headless VM

Post by schmick »

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

Regards
Carlos Troncoso Phillips
Post Reply