not saving state with VBoxManage controlvm poweroff

Discussions related to using VirtualBox on Linux hosts.
Post Reply
josh
Posts: 2
Joined: 23. Nov 2007, 10:57

not saving state with VBoxManage controlvm poweroff

Post by josh »

Hi,

I have VirtualBox box 3.0.0 setup on a Ubuntu server. I have setup a simple Web UI so that it is easy for our QA Engineers to create and destroy virtual machines. I am using the VBoxManage command to control the VM and on shutdown if the "VBoxManage controlvm <vmname> icpipowerbutton" command does not shut the machine down in time I simple execute the "VBoxManage controlvm <vmname> poweroff" command to shut it down. This works fine except for the fact that it saves the state every time I user the poweroff command. I do not need or want the saved state so all it does is take up space on the hard drive that I have to go in and manual clean up later. I am wondering is there some option or commad I can use to power off the box without leaving a saved state around?


Thanks,

Josh
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: not saving state with VBoxManage controlvm poweroff

Post by Perryg »

You should probably wait a little longer. How long does it take anyway?
Just in case this "<vmname> icpipowerbutton" command" is not a typo it is acpipowerbutton.
kihjin
Posts: 71
Joined: 18. Nov 2008, 21:30
Primary OS: Ubuntu other
VBox Version: OSE self-compiled
Guest OSses: Ubuntu, Windows XP

Re: not saving state with VBoxManage controlvm poweroff

Post by kihjin »

In my experience, controlvm poweroff does not save the system state. To save the sate, you must do controlvm savestate

Unless that logic has changed recently...
Post Reply