I am using Ubuntu 14.04.2. I have Virtual Box 4.3.26 installed running a headless CentOS VM. I use the
vboxautostart-service to start and save the virtual box at startup and shutdown as described here.
In general this works well, however suspending the virtual machine during shutdown takes some time. Unfortunately, the Ubuntu shutdown process does not wait long enough, so that the virtual machine is killed before it is completely saved.
How can I increase the timeout, so that the virtual machine has a chance to suspend?