vagrant icon indicating copy to clipboard operation
vagrant copied to clipboard

Vagrant halt/reload timeout too low

Open HarlekinX opened this issue 13 years ago • 1 comments

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.

HarlekinX avatar Jul 07 '13 20:07 HarlekinX

Just committed some changes where you just set config.vm.graceful_halt_timeout (defaults to 60 seconds).

mitchellh avatar Aug 29 '13 23:08 mitchellh