how should i do?

Discussions related to using the OSE version of VirtualBox.

how should i do?

Postby xuchao » 28. Nov 2013, 15:51

when i close the vm windows there will be a dialog to choose to save the machine state or to send the shutdown signal or to power off the machine.But now when i close the vm window i want it to save the machine state automatically without the dialog to choose what to do .How should i programm?Which .cpp file should i change
xuchao
 
Posts: 15
Joined: 20. Oct 2013, 16:15

Re: how should i do?

Postby socratis » 29. Nov 2013, 08:12

Don't close the VM's window. Shut down the guest OS as you would do if you had a physical computer. The window should close. No need to change any .cpp file...
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 25919
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: how should i do?

Postby Perryg » 29. Nov 2013, 15:56

Saved state is useful and the request is a valid one. Probably easier than hacking the code, just create a script/batch file that does this for you. Use VBoxManage on the host. This is also available from the GUI main manager by right clicking the guest in newer version of VBox.

Code: Select all   Expand viewCollapse view
VBoxManage controlvm <uuid|vmname> savestate
Perryg
Site Moderator
 
Posts: 34373
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX


Return to VirtualBox OSE

Who is online

Users browsing this forum: No registered users and 2 guests