diff --git a/CHANGELOG.md b/CHANGELOG.md index 664bc8faa..dd657fa48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -30,6 +30,7 @@ BUG FIXES: - providers/hyperv: allow users to configure memory, cpu count, and vmname [GH-5183] - providers/hyperv: import respects secure boot. [GH-5209] - providers/virtualbox: read netmask from dhcpservers [GH-5233] + - providers/virtualbox: Fix exception when VirtualBox version is empty. [GH-5308] - provisioners/ansible: fix SSH settings to support more than 5 ssh keys [GH-5017] - provisioners/ansible: increase ansible connection timeout to 30 seconds [GH-5018] - provisioners/docker: Only add docker user to group if exists. [GH-5315] diff --git a/plugins/providers/virtualbox/driver/meta.rb b/plugins/providers/virtualbox/driver/meta.rb index 3a3cfd396..8fb8867f1 100644 --- a/plugins/providers/virtualbox/driver/meta.rb +++ b/plugins/providers/virtualbox/driver/meta.rb @@ -152,7 +152,8 @@ module VagrantPlugins # This seems to happen on Windows for uncertain reasons. # Raise an error otherwise the error is that they have an # incompatible version of VirtualBox which isn't true. - raise Vagrant::Errors::VirtualBoxVersionEmpty + raise Vagrant::Errors::VirtualBoxVersionEmpty, + vboxmanage: @vboxmanage_path.to_s end end