diff --git a/config/default.rb b/config/default.rb index 3f3003658..e4002fb03 100644 --- a/config/default.rb +++ b/config/default.rb @@ -13,6 +13,8 @@ Vagrant.configure("2") do |config| config.vm.usable_port_range = (2200..2250) config.vm.box_url = nil config.vm.base_mac = nil + config.vm.graceful_halt_retry_count = 60 + config.vm.graceful_halt_retry_interval = 1 config.vm.guest = :linux # Share SSH locally by default diff --git a/plugins/kernel_v2/config/vm.rb b/plugins/kernel_v2/config/vm.rb index 3df3c5ca1..0ce31b54c 100644 --- a/plugins/kernel_v2/config/vm.rb +++ b/plugins/kernel_v2/config/vm.rb @@ -15,6 +15,8 @@ module VagrantPlugins attr_accessor :base_mac attr_accessor :box attr_accessor :box_url + attr_accessor :graceful_halt_retry_count + attr_accessor :graceful_halt_retry_interval attr_accessor :guest attr_accessor :host_name attr_accessor :usable_port_range @@ -25,10 +27,12 @@ module VagrantPlugins attr_reader :provisioners def initialize - @forwarded_ports = [] - @shared_folders = {} - @networks = [] - @provisioners = [] + @forwarded_ports = [] + @graceful_halt_retry_count = UNSET_VALUE + @graceful_halt_retry_interval = UNSET_VALUE + @shared_folders = {} + @networks = [] + @provisioners = [] # The providers hash defaults any key to a provider object @providers = Hash.new do |hash, key|