You can define a specific action for terminating a VM. In contrast to the setting decribed in the previous section, this setting allows only one action when the user terminates the VM. No exit menu is shown. Use the following command:
$ VBoxManage setextradataVM-name GUI/DefaultCloseActionaction
Save the VM state before terminating the VM process.
The VM is shut down by sending the ACPI power-off event to the guest.
The VM is powered off.
The VM is powered off and the saved state returns to the last snapshot.
Terminate the frontend but leave the VM process running.
This is a per-VM setting. You can specify any combination of properties. If all properties are specified, the VM cannot be shut down.