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

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

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

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

Q&A

解決済

3回答

3028閲覧

Vagrant upでsshがCygwinからできない

yamada3

総合スコア14

Vagrant

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

1グッド

0クリップ

投稿2015/12/05 13:51

編集2015/12/06 12:08

vagrantをCygwinでvagrant upを行うと以下のようになります.
vagarant upに必要な解決策をご教示ください.

以下vagrant upの実行結果

Bringing machine 'default' up with 'virtualbox' provider... ==> 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: 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 refused. Retrying... ~~~~~~~~~~~~~~中略~~~~~~~~~~~~~~ default: Warning: Connection refused. 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 the timeout ("config.vm.boot_timeout") value.
  • 状況

os: win7_64
box_os: CentOS7_x64
guiでは起動しログインできる.
sshができない

以下vagrant ssh-configの実行結果

Host default HostName 127.0.0.1 User vagrant Port 2222 UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile C:/Users/kiitan/.vagrant.d/insecure_private_key IdentitiesOnly yes LogLevel FATAL

以下vagrant statusの実行結果

Current machine states: default running (virtualbox)
  • 行った対策
  1. Intel(R) Virtualization Technology: Enabled
  2. Vagrantfileにconfig.vm.boot_timeout=60とかにしてみる
  3. ssh -i C:/Users/ユーザー名/.vagrant.d/insecure_private_key vagrant@127.0.0.1 -p 2222 やってみるもダメ

vagarant upに必要な解決策をご教示ください.
よろしくお願い致します.

ikuwow👍を押しています

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

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

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

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

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

guest

回答3

0

自己解決

vagrantboxとvagrantをインストールし直してもだめだったが,windowsをクリーンインストールしvagrantを入れたら起動するようになりました.
一体何のせいだったのかは謎のままですっきりしませんが,どうしようもなくなった方はwindowsのクリーンインストールしてみるといいかもしれません.

投稿2016/01/24 18:34

yamada3

総合スコア14

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

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

0

他に考えられるのはVMのsshポート開けてなくて締めだされているとか。
guiでVMに入ってfirewalldやiptablesなどの設定を確認してみてはどうでしょうか?

投稿2015/12/16 14:45

退会済みユーザー

退会済みユーザー

総合スコア0

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

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

0

間違ってたらごめんなさいな、超決め打ち回答です。

sshコマンド自体は使える状態でしょうか?

以前CygwinからVagrantを使おうとして大ハマリした結果、
実はSSHが壊れていて、
結局CmderからSSHを引っ張ってきたら動いたというひどい経験があります。

投稿2015/12/05 17:27

miyabi-sun

総合スコア21158

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

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

yamada3

2015/12/06 09:15

miyabi-sun解答ありがとうございます. AWSや研究室にSSHはできるのでSSHは問題ないと思います.
guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

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

ただいまの回答率
85.48%

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

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

質問する

関連した質問