Skip to content

Commit

Permalink
Fix boot timeout on slow hosts
Browse files Browse the repository at this point in the history
On slow host systems, especially with old HDDs, the first boot would run into timeouts. Increase the timeouts accordingly.
  • Loading branch information
mgmax authored Nov 26, 2023
1 parent 208ab44 commit c0e430b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ Vagrant.configure("2") do |config|
config.winrm.username = "vagrant"
config.winrm.password = "vagrant"
config.winrm.port = 55985
# a long boot timeout is needed for slow host systems
config.vm.boot_timeout = 1800
# to avoid WinRM errors in the middle of booting, we ensure that (max_tries * retry_delay) > boot_timeout:
config.winrm.max_tries = 900
config.winrm.retry_delay = 2
# explicitly tell Vagrant the guest is Windows
config.vm.guest = :windows

Expand Down

0 comments on commit c0e430b

Please sign in to comment.