Error if VBox 4.2.14 is running.

This commit is contained in:
Mitchell Hashimoto 2013-07-18 13:54:53 -04:00
parent 80666c03d6
commit 900f7e4d63
4 changed files with 14 additions and 0 deletions

View File

@ -13,6 +13,7 @@ IMPROVEMENTS:
formatter. [GH-1250]
- VAGRANT_DOTFILE_PATH environmental variable reintroduces the
functionality removed in 1.1 from "config.dotfile_name" [GH-1524]
- Vagrant will show an error if VirtualBox 4.2.14 is running.
BUG FIXES:

View File

@ -507,6 +507,10 @@ module Vagrant
error_key(:vboxmanage_not_found_error)
end
class VirtualBoxBrokenVersion040214 < VagrantError
error_key(:virtualbox_broken_version_040214)
end
class VirtualBoxInvalidVersion < VagrantError
error_key(:virtualbox_invalid_version)
end

View File

@ -47,6 +47,10 @@ module VagrantPlugins
"4.2" => Version_4_2
}
if @version.start_with?("4.2.14")
raise Vagrant::Errors::VirtualBoxBrokenVersion040214
end
driver_klass = nil
driver_map.each do |key, klass|
if @version.start_with?(key)

View File

@ -545,6 +545,11 @@ en:
be found. Please verify VirtualBox is properly installed. You can verify
everything is okay by running "VBoxManage --version" and verifying
that the VirtualBox version is outputted.
virtualbox_broken_version_040214: |-
Vagrant detected you have VirtualBox 4.2.14 installed. VirtualBox
4.2.14 contains a critical bug that causes it to not work with
Vagrant. VirtualBox 4.2.16+ fixes this problem. Please upgrade
VirtualBox.
virtualbox_invalid_version: |-
Vagrant has detected that you have a version of VirtualBox installed
that is not supported. Please install one of the supported versions