Save Machine State using a Batch Command on Windows host

This is for discussing general topics about how to use VirtualBox.
Post Reply
arishtech
Posts: 2
Joined: 30. Apr 2011, 00:23
Primary OS: MS Windows 2008
VBox Version: OSE Mandriva
Guest OSses: Windows Server 2008

Save Machine State using a Batch Command on Windows host

Post by arishtech »

How can I initiate save machine state and close virtualbox using a batch file command from the host windows server 2008 machine?
I just want virtualbox do save state of the running vm when the host is shutting down instead of just doing a dirty shutdown. I cant find any such option under settings.
I believe this should be a standard default feature of the program. Also users should be able to start the VM on logon OR run it in the background as a service (which loads on startup) without having to hack all day.
Any input will help. Please keep this thread going till a solution is developed. :mrgreen:
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Save Machine State using a Batch Command on Windows host

Post by Perryg »

Well switch to Linux where you can do all of this.
Only kidding it can all be done kind of in Windows. You need to read Chapter 8 VBoxManage in your VirtualBox users manual.
Also if you look at the Windows as host forum you can see the start as service discussion.
arishtech
Posts: 2
Joined: 30. Apr 2011, 00:23
Primary OS: MS Windows 2008
VBox Version: OSE Mandriva
Guest OSses: Windows Server 2008

Re: Save Machine State using a Batch Command on Windows host

Post by arishtech »

Thank you Perry. It is good to know that this is possible on windows. I am wondering why these basic options are not available as GUI settings?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Save Machine State using a Batch Command on Windows host

Post by Perryg »

Well I would only be guessing but for the most part it is not that useful to the normal end user as far as the included in the main manager.
They must keep it simple and they are always trying to add things without making it too cluttered. VirtualBox is a total powerhouse and it would get out of hand real fast to try to include things in the GUI. As for the start as service I can only guess here as well, but to keep VBox open source you need to be real careful what you include. 3rd party may be your only way. Not to mention the development it would entail spread over all of the formats that VirtualBox supports.
Post Reply