Close Virtual Machine and save state

Discussion about using the VirtualBox API, Tutorials, Samples.
Post Reply
MaIron
Posts: 2
Joined: 3. Oct 2017, 16:27

Close Virtual Machine and save state

Post by MaIron »

When you manually close the virtual machine window, it asks: "Save the state", "Send the end signal or "Turn off".
If You select "Save the state" Virtual Box close the window and save the state. Then system starts fast.

I use API and when I want "Turn off", I send use command:

Code: Select all

console->PowerDown(&progress);
This simple.

But, how I can save the state and close VM window like close window manually?

SaveState certainly does not work.
noteirak
Site Moderator
Posts: 5229
Joined: 13. Jan 2012, 11:14
Primary OS: Debian other
VBox Version: OSE Debian
Guest OSses: Debian, Win 2k8, Win 7
Contact:

Re: Close Virtual Machine and save state

Post by noteirak »

Please see the Posting Guidelines
Hyperbox - Virtual Infrastructure Manager - https://apps.kamax.lu/hyperbox/
Manage your VirtualBox infrastructure the free way!
MaIron
Posts: 2
Joined: 3. Oct 2017, 16:27

Re: Close Virtual Machine and save state

Post by MaIron »

Where does my post violate the rules?
I do not have additional code, I ask for help, what would be suggested here, in which direction to dig.
I need to close console with saving the state, not just turn off the machine.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: Close Virtual Machine and save state

Post by socratis »

I don't believe that 'noteirak' said anything about rule violation. What he pointed you to were the guidelines, i.e. the minimum amount of information needed to get help. See the bullet list in the guidelines and fill each bullet with your information. You didn't provide the minimum information, and until you do, I believe this is going to be a short conversation...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Post Reply