[Resolved] Remove prompt on quit

This is for discussing general topics about how to use VirtualBox.
Post Reply
abhibeckert
Posts: 9
Joined: 14. Mar 2012, 11:13

[Resolved] Remove prompt on quit

Post by abhibeckert »

When I quit a running VirtualBox guest, an alert appears to select between save state/shutdown signal/power off.

Is there some way to disable the alert? The extra "OK" step is quite annoying whenever I need to reboot the host.

In several years of running VirtualBox I don't think I have ever selected the shutdown signal or power off options and there are other ways to do both actions if I ever do need that.
Last edited by socratis on 13. Aug 2019, 12:39, edited 1 time in total.
Reason: Marked as [Resolved].
scottgus1
Site Moderator
Posts: 20965
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: Remove prompt on quit

Post by scottgus1 »

The manual, section 9.19.9 says it's possible:
9.19.9 Default Action when Terminating the VM
You can define a specific action for terminating a VM. In contrast to the setting described in the
previous section, this setting allows only one action when the user terminates the VM. No exit
menu is shown.
I tried this command on a guest:
VBoxManage setextradata "<vmname>" GUI/DefaultCloseAction SaveState
And the guest automatically save-stated when I closed the guest window, no Close box appeared

This command:
VBoxManage setextradata "<vmname>" GUI/DefaultCloseAction
cleared the default and re-showed the Close box.
abhibeckert
Posts: 9
Joined: 14. Mar 2012, 11:13

Re: Remove prompt on quit

Post by abhibeckert »

Thanks! That worked for me.
socratis
Site Moderator
Posts: 27330
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: Remove prompt on quit

Post by socratis »

Marking as [Resolved].
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