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

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

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

VirtualBoxは、現在米オラクル社が開発している、 x86仮想化ソフトウェア・パッケージの一つです。

Vagrant

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

Q&A

解決済

2回答

20179閲覧

Vagrant upコマンドの後でTime outのエラーがでます。

hidedeooo

総合スコア13

VirtualBox

VirtualBoxは、現在米オラクル社が開発している、 x86仮想化ソフトウェア・パッケージの一つです。

Vagrant

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

0グッド

3クリップ

投稿2015/05/09 09:45

初めてご質問させていただきます。どうぞよろしくお願い申し上げます。

ドットインストールにてローカル環境の構築(Windows)をおこなっておりますが、
Vargrant upコマンドを入力したところエラーとなってしまいました。(動画教材のように正常に完了しませんでした) これはどのような問題によってエラーとなってしまうのでしょうか。 また解決策などご存じの方がいらっしゃいましたらご教授いただければ幸いです。 どうぞよろしくお願い申し上げます。

使用環境は
Windows 8.1
Vagrant 1.7.2
Virtual box 4.3.20

これはドットコムインストールの環境とはVagrant、Virtual boxのバージョンが異なっております。

コマンドプロンプトでVargrant upと入力した後は以下のように表示されております。

C:\Users\Hideo\MyVagrant\mycentos>vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'chef/centos-6.5' 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 => 2222 (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: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. Retrying...
default: Warning: Connection timeout. 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
t he timeout ("config.vm.boot_timeout") value.

C:\Users\Hideo\MyVagrant\mycentos>Timed out while waiting for the machine to boo
t.

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

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

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

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

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

guest

回答2

0

default: SSH auth method: private keyの後からタイムアウトになってますが、適切な場所にprivate keyのファイルは置いていますか?

投稿2015/05/09 10:22

imamoto_browser

総合スコア1161

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

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

hidedeooo

2015/05/09 10:28

早速のご回答誠にありがとうございます。 .vargrant.dフォルダーの下にinsecure_private_keyというファイルが有りますが、 このファイルのことでしょうか?
hidedeooo

2015/05/09 13:59

もう一度vagrant up のコマンドを入力すると以下のようになりましたが、 これで、上記のTime Outの問題は解決したということでしょうか? C:\Users\Hideo\MyVagrant\mycentos>vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Checking if box 'chef/centos-6.5' is up to date... ==> default: VirtualBox VM is already running. この後にPuttyごった煮で接続しようとすると、 30秒後くらいに"PuTTY Fatal Error, ネットワークエラー、接続がタイムアウトしまいしたとなって、接続ができませんでした。 やはりネットワーク上での接続がうまくいっていないのでしょうか?
guest

0

ベストアンサー

コマンドプロンプトから下記を入力
vagrant ssh-config
私の環境では

Hostname 127.0.0.1
Port 2222
と表示されたので
その内容でターミナルでアクセスしてみると
無事vagrantに接続できました!

投稿2015/06/25 10:25

Carlos

総合スコア15

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

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

hidedeooo

2015/06/27 09:13

アドバイスいただきまして、誠にありがとうございます。 私の場合 Hostname 127.0.0.1 Port 2222 と表示されずにエラーとなってしまいました。 もう一度構築を一からやり直してみます。
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.50%

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

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

質問する

関連した質問