From 900f7e4d63aefc789b7717ee3cb8dd1900d7e708 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 18 Jul 2013 13:54:53 -0400 Subject: [PATCH] Error if VBox 4.2.14 is running. --- CHANGELOG.md | 1 + lib/vagrant/errors.rb | 4 ++++ plugins/providers/virtualbox/driver/meta.rb | 4 ++++ templates/locales/en.yml | 5 +++++ 4 files changed, 14 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3e4e566b5..7d9993748 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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: diff --git a/lib/vagrant/errors.rb b/lib/vagrant/errors.rb index 7f1ce463c..0999a820f 100644 --- a/lib/vagrant/errors.rb +++ b/lib/vagrant/errors.rb @@ -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 diff --git a/plugins/providers/virtualbox/driver/meta.rb b/plugins/providers/virtualbox/driver/meta.rb index ed53357bc..cd4c2bebb 100644 --- a/plugins/providers/virtualbox/driver/meta.rb +++ b/plugins/providers/virtualbox/driver/meta.rb @@ -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) diff --git a/templates/locales/en.yml b/templates/locales/en.yml index 5418fea5d..12af91c38 100644 --- a/templates/locales/en.yml +++ b/templates/locales/en.yml @@ -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