LoginSignup
0
0

More than 5 years have passed since last update.

Vagrantのエラー対応

Posted at

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:

このエラーについて検索したときによく出てきたのが、chefbentoに変えるという方法。
ただ上記のように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:

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0