Skip to content

Commit

Permalink
(#74) Adjust Hyper-V provider config
Browse files Browse the repository at this point in the history
The hyper-v box can potentially have the max memory set lower than the
desired amount of memory in the test environment Vagrantfile. Overring
the max memory with `nil` enables any memory amount to be used.

In testing, it also took longer than expected to for the box to get an
IP address, and so the IP Address Timeout has been increased to give
more time for this step to complete.
  • Loading branch information
Windos committed Jun 17, 2024
1 parent f42c54e commit bd8022a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Vagrantfile
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,11 @@ Vagrant.configure("2") do |config|
config.vm.provider :hyperv do |v, override|
# 4GB RAM
v.memory = 4096
v.maxmemory = nil
# 2 CPUs
v.cpus = 2
# The time in seconds to wait for the virtual machine to report an IP address
v.ip_address_timeout = 130
v.ip_address_timeout = 240
# Use differencing disk instead of cloning whole VHD
if Vagrant::VERSION >= '2.1.2'
v.linked_clone = true
Expand Down

0 comments on commit bd8022a

Please sign in to comment.