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?
Start and stop headless VM
-
- 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
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
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