vagrant
vagrant copied to clipboard
Vagrant halt/reload timeout too low
Is it possible to increase the timeout of the halt/reload commands before the VM guest gets forced to shutdown?
I wrote a script that runs on shutdown/reboot of the Ubuntu guest to backup live data of my puppet build Minecraft server to a share folder. Another script restores the data after a 'vagrant destroy'. Tests revealed that the time needed to backup (especially the first run) is longer than the timeout of vagrant and it just cuts the cord before the backup is finished.
I didn't find an option to increase the timeout in the manual or via Google.
Just committed some changes where you just set config.vm.graceful_halt_timeout (defaults to 60 seconds).