From a7a779586a20dca77fc11047bac9e31ac2a5c1f2 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Fri, 3 Apr 2020 16:21:46 -0700 Subject: [PATCH] Don't limit disk number for hyper-v for now --- plugins/providers/hyperv/cap/configure_disks.rb | 9 --------- 1 file changed, 9 deletions(-) diff --git a/plugins/providers/hyperv/cap/configure_disks.rb b/plugins/providers/hyperv/cap/configure_disks.rb index c489d68e1..f83008396 100644 --- a/plugins/providers/hyperv/cap/configure_disks.rb +++ b/plugins/providers/hyperv/cap/configure_disks.rb @@ -9,10 +9,6 @@ module VagrantPlugins module ConfigureDisks LOGGER = Log4r::Logger.new("vagrant::plugins::hyperv::configure_disks") - # The max amount of disks that can be attached to a single device in a controller - # TODO: Figure out if there's a limit for Hyper-V guests - MAX_DISK_NUMBER = 30.freeze - # @param [Vagrant::Machine] machine # @param [VagrantPlugins::Kernel_V2::VagrantConfigDisk] defined_disks # @return [Hash] configured_disks - A hash of all the current configured disks @@ -21,11 +17,6 @@ module VagrantPlugins return {} if !Vagrant::Util::Experimental.feature_enabled?("disks") - if defined_disks.size > MAX_DISK_NUMBER - # you can only attach up to 30 disks per controller, INCLUDING the primary disk - raise Vagrant::Errors::VirtualBoxDisksDefinedExceedLimit - end - machine.ui.info(I18n.t("vagrant.cap.configure_disks.start")) current_disks = machine.provider.driver.list_hdds