質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.48%
Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

Q&A

解決済

1回答

10021閲覧

突然Vagrant upがうまくいかなくなり困っています。

haruto

総合スコア11

Vagrant

Vagrantは、VirtualBox上の仮想マシンを コマンドラインから作成してくれるソフトウェアです。 ビルド環境など容易に構築が可能です。

0グッド

1クリップ

投稿2016/03/18 00:59

###前提・実現したいこと
1カ月ぶりにvagrantを起動するためにコマンドプロンプトでvagrant upとコマンド入力してみたところ、一ヶ月前は無事に起動していたのですが、途中で止まってしまいタイムアウト状態になってしまいます。

タイムアウトになった後再びvagrant upとコマンド入力すると
vagrant is runningと立ち上がった状態になりますが、Puttyを利用してcentosにログインができなくなったりとうまくいきません。

どのようにしたら正常に起動できるのか教えていただけたら幸いです。

vagrantの設定・インストールはdotinstallを参考に行いました。

###発生している問題・エラーメッセージ

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.

タイムアウトしてしまい途中で止まってしまったことは理解できましたが

If you're using a custom box, ~
カスタムボックスを使っているならネットワークがきちんと動いているか確認してください

以降は何をどうすればいいか分かりませんでした。

###ソースコード

C:\Users\User\MyVagrant\mycentos>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'bento/centos-6.7' is up to date... ==> default: Resuming suspended VM... ==> 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. C:\Users\User\MyVagrant\mycentos>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'bento/centos-6.7' is up to date... ==> default: VirtualBox VM is already running.

###補足情報(言語/FW/ツール等のバージョンなど)

osはwindows7です。

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

回答1

0

ベストアンサー

可能性があるとしたら、利用ポートの衝突か利用ネットワークに無線と有線を混在させている、もしくは
こちらの可能性も疑ってみてください。

もしくはこれでも症状が改善しない場合は、以下情報をください。
・利用vagrantのバージョン
・virtualboxのバージョン
・1か月以前から今回の起動時のエラーにかけて設定ファイルを含む、アップデートをしているか していないか。(アップデートをしているのであれば何をどのように までください)
・あと下記情報も確認してくてください。

Vagrantfile ファイルに下記情報を追記保存してみる。

config.vm.provider "virtualbox" do |vb| vb.gui = true end

これは余談ですが・・・

質問の仕方はだいぶ良いと思います。これに加えて、補足情報に使用バージョンの記載を正確に書くようにすると、同様の事例か、もしくは参考情報を持っている方に出会う確率が上がりますので、
その辺もぜひ心掛けてみてください。

投稿2016/03/18 09:50

編集2016/03/18 09:54
lib

総合スコア446

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

haruto

2016/03/18 11:14

回答していただきありがとうございます。 >利用ポートの衝突か利用ネットワークに無線と有線を混在させている 利用ポートに関してネットで調べてみましたが、あまり理解できていません。 引き続き調べてみたいと思います。 利用ネットワークに関しては無線を利用しているので、有線接続と混在している可能性は低いようです。 >・利用vagrantのバージョン Vagrant 1.8.1 >・virtualboxのバージョン 5.0.14 r105127 >・1か月以前から今回の起動時のエラーにかけて設定ファイルを含む、アップデートをしているか していないか。(アップデートをしているのであれば何をどのように までください) アップデートは行っておりません。 よろしくお願いいたします。
lib

2016/03/19 02:02 編集

リンクを貼った上で、調査に役立つ情報も出しました。おそらくその設定でエラー情報が画面に出るかと思いますがその辺も確認されましたか?少なくともいくつかの解決策がリンク先にあります。Vagrantfileの編集はただのテキストなので、メモ帳かその他エディタで編集をお願いします。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.48%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問