Immediate problem:
$ vagrant up --provider virtualbox
No usable default provider could be found for your system.
Vagrant relies on interactions with 3rd party systems, known as
"providers", to provide Vagrant with resources to run development
environments. Examples are VirtualBox, VMware, Hyper-V.
The easiest solution to this message is to install VirtualBox, which
is available for free on all major platforms.
If you believe you already have a provider available, make sure it
is properly installed and configured. You can see more details about
why a particular provider isn't working by forcing usage with
`vagrant up --provider=PROVIDER`, which should give you a more specific
error message for that particular provider.
Background:
Several days ago I installed VirtualBox Version 5.1.2 r108956 on my Ubuntu Linux 16.04 LTS x86_64 machine. Installation was successful. I subsequently successfully installed VirtualBox 5.1.2 Oracle VM VirtualBox Extension Pack.
I then followed instructions at https://www.freebsdfoundation.org/freebsd/how-to-guides/installing-freebsd-with-virtualbox/#! to install FreeBSD version 10.3 as a VM. I have successfully started, configured, utilized and stopped the FreeBSD VM many times since then.
I then decided to try to manage VirtualBox via Vagrant. I used 'apt-get' to install vagrant. The version of vagrant associated with Ubuntu 16.04 was 1.8.1. That version only works with VirtualBox up to VB's version 5.0; it would not support 5.1.2. I subsequently was able to install a newer version of vagrant from Debian testing:
$ apt-cache show vagrant
Package: vagrant
Version: 1.8.4+dfsg-2
...
$ vagrant --version
Vagrant 1.8.4
I was subsequently able to use Vagrant to add an OpenBSD box from Atlas:
$ vagrant box list
kaorimatz/openbsd-5.9-amd64 (virtualbox, 20160703.0.0)
According to this page from the Vagrant documentation, https://www.vagrantup.com/docs/providers/basic_usage.html, I should, at this point, have been able to launch the VM with Vagrant simply by saying:
$ vagrant up
However, when I did so, I got the error message displayed at the top of this gist. I have consistently gotten the same error message with this variants:
$ vagrant up --provider virtualbox
... and by adding:
config.vm.provider "virtualbox"
just before 'end' in my Vagrantfile.
What am I missing?
Raul Cuza called my attention to the fact that Hashicorp had released vagrant 1.8.5 on their web site: https://releases.hashicorp.com/vagrant/1.8.5/vagrant_1.8.5_x86_64.deb
I downloaded this file and let the Ubuntu Software Center application handle the work of installing it. It did so successfully.
Then, the acid test:
Success!
Thanks, Raul!