###前提・実現したいこと
dotinstallのローカル開発環境の構築レッスンを受講中。
仮想マシンの立ち上げを行うとエラーが出力され、その後vagrant sshを打ち込むとログインすることができない
###発生している問題・エラーメッセージ
vagrant upを入力した際のメッセージ Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'bento/centos-6.8' is up to date... ==> default: VirtualBox VM is already running. Inoues-MacBook-Pro:PHPCentOS Inoue$ vagrant reload ==> default: Attempting graceful shutdown of VM... default: Guest communication could not be established! This is usually because default: SSH is not running, the authentication information was changed, default: or some other networking issue. Vagrant will force halt, if default: capable. ==> default: Forcing shutdown of VM... ==> default: Checking if box 'bento/centos-6.8' is up to date... ==> default: Clearing any previously set forwarded ports... ==> default: Clearing any previously set network interfaces... ==> 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 ここまで出力
エラーメッセージ 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 sshを入力すると以下のメッセージが表記 ssh_exchange_identification: Connection closed by remote host
###試したこと
vi Vagrantfileコマンドにてconfig.vm.boot_timeout = 600と入力し、:wqで上書き保存済み
vagrant upコマンドでエラーが出た後vagrant statusを打ち込むとrunning (virtualbox)と表記はされる。
そのあとにvagrant sshを打ち込むとログインできない状態となっている。
###補足情報(言語/FW/ツール等のバージョンなど)
private keyの部分で止まっているのでkeyがうまく設定できていないのかなと思うのですが、素人のためどのように訂正をすれば良いのか全くわからない状態でございます。
大変申し訳ありませんが、分かりやすいアドバイスよろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー