Windows 10でVagrant 1.8.5使ってテスト環境作ろうと思ったときに遭遇したエラーに対応した内容です。
box could not be found or could not be accessed
vagrant up
したら以下の様なエラーがでた。
The box 'bento/centos6-8' could not be found or
could not be accessed in the remote catalog. If this is a private
box on HashiCorp's Atlas, please verify you're logged in via
`vagrant login`. Also, please double-check the name. The expanded
URL and error message are shown below:
URL: ["https://atlas.hashicorp.com/bento/centos6-8"]
Error:
このエラーについて検索したときによく出てきたのが、chef
はbento
に変えるという方法。
ただ上記のようにbento
を使っても変わらず。
いろいろ調べた結果、Microsoft Visual C++ 2010 再頒布可能パッケージが必要とのこと。Windowsだから? (ここにたどり着くまで結構時間かかった。。)
ダウンロードしたら普通にいけました。
Authentication failure. Retrying...
同じくvagrant up
したとき。延々繰り返して先に進まない。
Vagrant 1.7以降でvagrant up
すると、対象のゲストOSに対して新たな鍵のペアを生成・配置されることが原因らしい。
とりあえず、Vagrantfileにconfig.ssh.insert_key = false
を追記したらいけました。
ssh executable not found
vagrant ssh
したとき。
これは内容の通り、SSHクライアントが存在しないのでクライアント入れてパスを通せばよい。
私はMobaXterm使っててそれでssh
できるので特に何もしませんでした。
`ssh` executable not found in any directories in the %PATH% variable. Is an
SSH client installed? Try installing Cygwin, MinGW or Git, all of which
contain an SSH client. Or use your favorite SSH client with the following
authentication information shown below: