Page 1 of 1

Start and stop headless VM

PostPosted: 24. Feb 2009, 10:49
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?

Re: Start and stop headless VM

PostPosted: 29. Jul 2009, 05:39
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

Carlos Troncoso Phillips