Sasquatch wrote:Use saved state instead of a graceful shutdown, because that takes way too long. The system only waits for a few seconds, just enough for save state to work, but too short for a graceful shutdown. Also, if it's a server OS inside the VM, it won't listen to the ACPI power button command most of the time.
I have considered save state, but I would prefer it to shut down. I've even tried delays in the script, but that doesn't work either.
Guest OS is Windows 7, so it the ACPI power button works.
I've also realised that VBoxHeadlessTray is easier than scripting, and if I have to use save state, this is my best bet.