###エラー内容
vagrantでLINUXのUBUNTU環境を構築しており
vagrant up すると下記の部分でフリーズしたかのように止まってしまいます。
default: SSH auth method: private key
数分後、下記エラーが発生します。
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.
###状況
少し前までは正常に"vagrant up"その後"vagrant ssh"も行えていましたがvagrantfileで指定したIPが正常に設定出来なかった為、下記コマンドなどを実行して設定を変更していた所、"vagrant up"や"vagrant reload"で上記エラーが発生するようになりました。
vm $ sudo vim /etc/network/interfaces
また、vagrantfileで「gui = true」として"vagrant up"や"vagrant reload"を行うとエラーは発生しますが、GUIの方はログインIDとPASSを入力する画面となりどちらもvagrantと入力する事でログイン自体は可能な状況です。
###試した事
1.エラーメッセージからSSHのKEYが壊れたのでは無いかと思いssh-keygenで新しくKEYを作成。
2.ホスト側の秘密鍵は"vagrant ssh-config"で場所を調べセットしました。
3.ゲスト側の公開鍵は「/home/vagrant/.ssh/authorized_keys」にセットすれば良い事が分かりscpで転送しようと思い「/etc/hosts.allow」に「sshd:ALL」と追記して実行しましたが下記エラーが発生してしまいました。
scp -P 2222 -i /Users/user/vagrant/Docker/.vagrant/machines/default/virtualbox/private_key /Users/user/vagrant/Docker/public_key vagrant@127.0.0.1:~/.ssh/authorized_keys ssh_exchange_identification: Connection closed by remote host
4.vagrantとのファイル同期機能も動作していないのでここで手詰まりとなってしまいました。
###最後に
情報が足りていない場合にはご指摘頂けましたらお知らせ致します。
"vagrant destroy"して作り直せば治るような気もしますが根本的な解決にならないと思うので、何かお分かりになる方いらっしゃいましたら何卒よろしくお願い致します。
回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2016/11/05 02:12