From 28bb8ee1b5aa081ebab74acc4726a4b519e1e0cf Mon Sep 17 00:00:00 2001 From: Vitalii Ishchenko Date: Wed, 29 Jan 2025 23:18:08 +0000 Subject: [PATCH] Add VirtioSCSI to the list of supported storage controllers for VirtualBox --- plugins/providers/virtualbox/model/storage_controller.rb | 2 +- .../providers/virtualbox/model/storage_controller_array.rb | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/providers/virtualbox/model/storage_controller.rb b/plugins/providers/virtualbox/model/storage_controller.rb index e68118b1824..e4ab828e591 100644 --- a/plugins/providers/virtualbox/model/storage_controller.rb +++ b/plugins/providers/virtualbox/model/storage_controller.rb @@ -9,7 +9,7 @@ module Model class StorageController IDE_CONTROLLER_TYPES = ["PIIX4", "PIIX3", "ICH6"].map(&:freeze).freeze SATA_CONTROLLER_TYPES = ["IntelAhci"].map(&:freeze).freeze - SCSI_CONTROLLER_TYPES = [ "LsiLogic", "BusLogic"].map(&:freeze).freeze + SCSI_CONTROLLER_TYPES = ["LsiLogic", "BusLogic", "VirtioSCSI"].map(&:freeze).freeze IDE_DEVICES_PER_PORT = 2.freeze SATA_DEVICES_PER_PORT = 1.freeze diff --git a/plugins/providers/virtualbox/model/storage_controller_array.rb b/plugins/providers/virtualbox/model/storage_controller_array.rb index 95b27cf4bc8..65663f798f1 100644 --- a/plugins/providers/virtualbox/model/storage_controller_array.rb +++ b/plugins/providers/virtualbox/model/storage_controller_array.rb @@ -35,7 +35,7 @@ def get_primary_controller if !controller raise Vagrant::Errors::VirtualBoxDisksNoSupportedControllers, - supported_types: supported_types.join(" ,") + supported_types: supported_types.join(", ") end controller @@ -67,7 +67,7 @@ def get_dvd_controller controller = ordered.first if !controller raise Vagrant::Errors::VirtualBoxDisksNoSupportedControllers, - supported_types: supported_types.join(" ,") + supported_types: supported_types.join(", ") end controller