エンジニアをはじめて間もない者です。
質問意図ができるだけ伝わるようにしますが、知識不足の面もご理解頂きたく思います。
今回、
mac: OS X ElCaption
CentOS version:6.5
VirtualBox version:5.1.4
Vagrant version:1.8.5
CentOSとVirtualBoxでLAMP環境を構築したいと考えています。
ネットの既存の記事を参考にもしているのですが、"vagrant reload"コマンド実行時に
"Authentication failure"エラーが出てしまい、先に進めない状況です。
こちらの記事を参考に、
http://qiita.com/bobu_web/items/607930176d58ccced699
vagrantfile内private_networkに記述されているipアドレスのコメントアウトを外すして、
"vagrant reload"を実行すると、
==> default: Preparing network interfaces based on configuration...
default: Adapter 1: nat
default: Adapter 2: hostonly
==> default: Forwarding ports...
default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2222
default: SSH username: vagrant
default: SSH auth method: private key
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
default: Warning: Authentication failure. Retrying...
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.
If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.
If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.
If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.
default: SSH auth method: privateの部分でストップしてしまい、エラー文が表示されます。
調査したところ、公開鍵や秘密鍵の設定なのかと思っているのですが、具体的な設定順序や設定内容がわからない状況です。
なのでこちらの記事も試した試したのですが、上記同様箇所でストップしてしまいます。。
http://qiita.com/shyse/items/9ec50b868b90f847c75f
数回、boxを消して再度追加したりもしたのですがやはり同様箇所でストップ同様箇所でストップしてしまいます..
そもそも自分のやり方がそもそも間違っているかもしれませんが、、
エラーを解消しvagrantfileに記述されている、private network,IPアドレス部分のコメントアウトを外してブラウザでapacheやphpが動作していることを確認することが最終目的です。
どうかご教授宜しくお願い致します。。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/09/09 04:45