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

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

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

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

Q&A

0回答

1860閲覧

vagrant upに失敗する

退会済みユーザー

退会済みユーザー

総合スコア0

Vagrant

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

0グッド

3クリップ

投稿2017/01/28 08:46

vagrant upに失敗します。

環境は以下の通りです。

  • macOS Sierra10.12.2
  • Vagrant 1.9.1
  • VirtualBox 5.3.30
  • box bento/centos-7.3 (virtualbox, 2.3.2)

です。$ vagrant upしたときの実行結果は以下のようになります。

lang

1$ vagrant up 2 3Bringing machine 'default' up with 'virtualbox' provider... 4==> default: Checking if box 'bento/centos-7.3' is up to date... 5==> default: Clearing any previously set forwarded ports... 6==> default: Clearing any previously set network interfaces... 7==> default: Preparing network interfaces based on configuration... 8 default: Adapter 1: nat 9 default: Adapter 2: hostonly 10==> default: Forwarding ports... 11 default: 22 (guest) => 2222 (host) (adapter 1) 12==> default: Booting VM... 13==> default: Waiting for machine to boot. This may take a few minutes... 14 default: SSH address: 127.0.0.1:2222 15 default: SSH username: vagrant 16 default: SSH auth method: private key 17 18# ここから処理が進まない 19# 一定時間経過後、以下のエラーメッセージが赤字で表示されます 20Timed out while waiting for the machine to boot. This means that 21Vagrant was unable to communicate with the guest machine within 22the configured ("config.vm.boot_timeout" value) time period. 23 24If you look above, you should be able to see the error(s) that 25Vagrant had when attempting to connect to the machine. These errors 26are usually good hints as to what may be wrong. 27 28If you're using a custom box, make sure that networking is properly 29working and you're able to connect to the machine. It is a common 30problem that networking isn't setup properly in these boxes. 31Verify that authentication configurations are also setup properly, 32as well. 33 34If the box appears to be booting properly, you may want to increase 35the timeout ("config.vm.boot_timeout") value.

Vagrant was unable to communicate with the guest machine
=> Vagrantがゲストマシンと通信できなかった
という部分が原因のようなので、その部分を解決できるようにエラーメッセージなどで県sなくしてみましたが解決に至る情報が得られませんでした。

また、この症状と関連している気がするのですが、ほぼ同時期にXAMPPのApacheがが起動しなくなりました。

$ httpd -v Server version: Apache/2.4.23 (Unix) Server built: Aug 8 2016 18:10:45

Apacheがインストールされていることは上記コマンドにより確認できていますが、何か異常が起きているのかどうかまではわかっていません。

問題は以上です。この問題の解決に対してどのように質問するべきかがわかっていないので、わかりにくい記述となってしまいました。解決のヒントだけでもいただければと思います。よろしくお願いします。

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

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

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

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

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

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問