I am using the
vboxautostart-service to start all my vms on system boot (Debian 7), they've been configured with this command:
VBoxManage modifyvm '<vm-name>' --autostart-enabled on --autostop-type savestate.
I can also stop them manually by executing
service vboxautostart-service stop, this takes about 10 seconds to save state for all vms.
However, if i reboot the host machine (ctrl+alt+del or executing
reboot) it won't wait for the vm's to save their state, and next time I boot up they all have the state
Aborted. I tried modifying the
vboxautostart-service by adding a
sleep 15, but to no effect. The processes seem to get killed off, I suppose because they don't exit fast enough.
Does anyone know how to work around this?