Page 1 of 1

how should i do?

Posted: 28. Nov 2013, 15:51
by xuchao
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

Re: how should i do?

Posted: 29. Nov 2013, 08:12
by socratis
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...

Re: how should i do?

Posted: 29. Nov 2013, 15:56
by Perryg
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

VBoxManage controlvm <uuid|vmname> savestate