From bd8022a0c132b4fbd1d2163bc7cb84a8bed8ea57 Mon Sep 17 00:00:00 2001 From: Josh King Date: Mon, 17 Jun 2024 12:15:58 +1200 Subject: [PATCH] (#74) Adjust Hyper-V provider config 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. --- Vagrantfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Vagrantfile b/Vagrantfile index 1267dee..9cea128 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -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