diff --git a/lib/vagrant/driver/virtualbox.rb b/lib/vagrant/driver/virtualbox.rb index 8c4009284..1cd0d7953 100644 --- a/lib/vagrant/driver/virtualbox.rb +++ b/lib/vagrant/driver/virtualbox.rb @@ -122,12 +122,12 @@ module Vagrant output = execute("--version") if output =~ /vboxdrv kernel module is not loaded/ raise Errors::VirtualBoxKernelModuleNotLoaded - # Check for installation incomplete warnings, for example: - # "WARNING: The character device /dev/vboxdrv does not - # exist. Please install the virtualbox-ose-dkms package and - # the appropriate headers, most likely linux-headers-generic." elsif output =~ /Please install/ - raise Errors::VirtualBoxInstallIncomplete + # Check for installation incomplete warnings, for example: + # "WARNING: The character device /dev/vboxdrv does not + # exist. Please install the virtualbox-ose-dkms package and + # the appropriate headers, most likely linux-headers-generic." + raise Errors::VirtualBoxInstallIncomplete end parts = output.split("_") diff --git a/lib/vagrant/errors.rb b/lib/vagrant/errors.rb index bd5b50516..6f17fbfab 100644 --- a/lib/vagrant/errors.rb +++ b/lib/vagrant/errors.rb @@ -389,7 +389,7 @@ module Vagrant end class VirtualBoxInstallIncomplete < VagrantError - status_code(79) + status_code(80) error_key(:virtualbox_install_incomplete) end