Add Vbox 7.2 support (#13709)

* Add Vbox 7.2 support

Signed-off-by: Corey Hemminger <hemminger@hotmail.com>

* update comment for 7.2

Signed-off-by: Corey Hemminger <hemminger@hotmail.com>

---------

Signed-off-by: Corey Hemminger <hemminger@hotmail.com>
This commit is contained in:
Corey Hemminger 2025-08-19 03:24:24 -05:00 committed by GitHub
parent 0c082e33ea
commit 4978fab045
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 37 additions and 1 deletions

View file

@ -70,6 +70,7 @@ module VagrantPlugins
"6.1" => Version_6_1,
"7.0" => Version_7_0,
"7.1" => Version_7_1,
"7.2" => Version_7_2,
}
if @@version.start_with?("4.2.14")

View file

@ -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.2.x
class Version_7_2 < Version_7_1
def initialize(uuid)
super
@logger = Log4r::Logger.new("vagrant::provider::virtualbox_7_2")
end
end
end
end
end

View file

@ -105,6 +105,7 @@ module VagrantPlugins
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__)
autoload :Version_7_2, File.expand_path("../driver/version_7_2", __FILE__)
end
module Model

View file

@ -0,0 +1,15 @@
# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: BUSL-1.1
require "stringio"
require_relative "../base"
describe VagrantPlugins::ProviderVirtualBox::Driver::Version_7_2 do
include_context "virtualbox"
subject { VagrantPlugins::ProviderVirtualBox::Driver::Version_7_2.new(uuid) }
it_behaves_like "a version 5.x virtualbox driver"
it_behaves_like "a version 6.x virtualbox driver"
it_behaves_like "a version 7.x virtualbox driver"
end

View file

@ -12,7 +12,7 @@ Vagrant comes with support out of the box for [VirtualBox](https://www.virtualbo
a free, cross-platform consumer virtualization product.
The VirtualBox provider is compatible with VirtualBox versions 4.0.x, 4.1.x,
4.2.x, 4.3.x, 5.0.x, 5.1.x, 5.2.x, 6.0.x, 6.1.x, 7.0.x, and 7.1.x. Other versions
4.2.x, 4.3.x, 5.0.x, 5.1.x, 5.2.x, 6.0.x, 6.1.x, 7.0.x, 7.1.x, and 7.2.x. Other versions
are unsupported and the provider will display an error message. Please note that
beta and pre-release versions VirtualBox are not supported and may not be well-behaved.