Skip to content

Commit

Permalink
Add VirtualBox 7.1.x Support
Browse files Browse the repository at this point in the history
Fixes hashicorp#13503

Signed-off-by: Erik Billerby <[email protected]>
  • Loading branch information
billerby committed Oct 29, 2024
1 parent 71150ee commit 1c246f7
Show file tree
Hide file tree
Showing 5 changed files with 878 additions and 1 deletion.
1 change: 1 addition & 0 deletions plugins/providers/virtualbox/driver/meta.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ def initialize(uuid=nil)
"6.0" => Version_6_0,
"6.1" => Version_6_1,
"7.0" => Version_7_0,
"7.1" => Version_7_1,
}

if @@version.start_with?("4.2.14")
Expand Down
19 changes: 19 additions & 0 deletions plugins/providers/virtualbox/driver/version_7_1.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1

require File.expand_path("../version_7_0", __FILE__)

module VagrantPlugins
module ProviderVirtualBox
module Driver
# Driver for VirtualBox 7.1.x
class Version_7_1 < Version_7_0
def initialize(uuid)
super

@logger = Log4r::Logger.new("vagrant::provider::virtualbox_7_1")
end
end
end
end
end
1 change: 1 addition & 0 deletions plugins/providers/virtualbox/plugin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ module Driver
autoload :Version_6_0, File.expand_path("../driver/version_6_0", __FILE__)
autoload :Version_6_1, File.expand_path("../driver/version_6_1", __FILE__)
autoload :Version_7_0, File.expand_path("../driver/version_7_0", __FILE__)
autoload :Version_7_1, File.expand_path("../driver/version_7_1", __FILE__)
end

module Model
Expand Down
Loading

0 comments on commit 1c246f7

Please sign in to comment.