vagrantを実行しようとしているのですが、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 version 4.3.26 r989888 と Linux Ubuntu (64 bit) の前にインストールしました。
後です。 varrant box add precise32 http://files.vagrantup.com/precise32.box`。
==> box:プロバイダ用のボックス 'precise32' (v0) を追加します。 box:ダウンロード中: http://files.vagrantup.com/precise32.box ボックス進捗状況です。100% (レート: 1425k/s、推定残り時間: --:--:--) ==> box:箱 'precise32' (v0) を 'virtualbox' 用に正常に追加しました!
。
と表示されます。 vagrant box list` を実行します。
lucid32 (virtualbox, 0)
precise32 (virtualbox, 0)
**プロバイダがおかしいのでしょうか?
vagrant パッケージ --base vagrant-ubuntu64` です。
Vagrant could not detect VirtualBox! Make sure VirtualBox is properly installed.
Vagrant uses the `VBoxManage` binary that ships with VirtualBox, and requires
this to be available on the PATH. If VirtualBox is installed, please find the
`VBoxManage` binary and add it to the PATH environmental variable.
VirtualBox の検出を助けるには?
VirtualBox 4.3.12以降、問題が報告されているようです。
VirtualBox は自動的に次の環境変数 VBOX_MSI_INSTALL_PATH
を作成します。
しかし、vagrant では (base.rb
ファイルを探すと) VBOX_INSTALL_PATH
という変数が使われます。
なので、以下のようにします。
VBOX_MSI_INSTALL_PATH
を更新して、VBOX_INSTALL_PATH
に変更する。VBOX_INSTALL_PATH
を作成し、VBOX_MSI_INSTALL_PATH
と同じ値を設定します。*Windowsの場合は、「マイコンピュータ(右クリック) --> プロパティ --> 詳細システム設定 --> 環境変数」にアクセスし、管理する必要のある変数を探します。
ok so 私は、Windows、vagrant、virtualboxで同じ問題を抱えていたので、これを実行しました。
にセットします。 8.OK"を選択し、他の設定ウィンドウを閉じます。
credit goes to here: https://github.com/mitchellh/vagrant/issues/3852
環境変数(LinuxではPATH)にvirtualboxの実行ファイルへのパスが設定されていると思われます。