Tech Blog - mixross
エラーの内容
$ vagrant up
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.
プロバイダーが見つからないからVirtualBox, VMware, Hyper-Vなどのプロバイダーを入れろということらしい。
もちろん、VirtualBoxはインストールしていて別マシンではうまく起動しているVagrantfileをそのまま使っている。
バージョン確認
$ vagrant version
Installed Version: 2.2.6
Latest Version: 2.2.7
To upgrade to the latest version, visit the downloads page and
download and install the latest version of Vagrant from the URL
below:
https://www.vagrantup.com/downloads.html
If you're curious what changed in the latest release, view the
CHANGELOG below:
https://github.com/hashicorp/vagrant/blob/v2.2.7/CHANGELOG.md
インストールバージョンが2.2.6、最新バージョンが2.2.7とあるので、メッセージ通り
https://www.vagrantup.com/downloads.html
に行ってMacOS用のインストーラをダウンロードしてインストール
$ vagrant version
Installed Version: 2.2.7
Latest Version: 2.2.7
You're running an up-to-date version of Vagrant!
まとめ
今回はこれだけでうまく動くようになった。
何年もVagrantとVirtualBoxの組み合わせは使ってきていて初めてのエラーだったからびっくりした。。