Vagrantを使用したいのですが、vagrant upでエラーになってしまいます。


仮想開発環境を作成したいと思い、VagrantとVirtualBoxをインストールしました。

$ vagrant init precise32 http://files.vagrantup.com/precise32.box
$ vagrant up

仮想マシンを起動しようと上記コマンドを実行したのですが、vagrant up実行時に

$ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'precise32' could not be found. Attempting to find and install.
..
default: Box Provider: virtualbox
default: Box Version: >= 0
==> default: Adding box 'precise32' (v0) for provider: virtualbox
default: Downloading: http://files.vagrantup.com/precise32.box
default: Progress: 0% (Rate: 0curl:/s, Estimated time remaining: --:--:--)
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Failed connect to files.vagrantup.com:80; No error

というエラーになってしまいます。
このエラーを解消するにはどうしたらいいのでしょうか?

使用しているPCのOSはWindows7で、各バージョンは下記の通りです。
Vagrant 1.6.5
VirtualBox 4.3.18

もしわかりましたら教えて頂けますと幸いです。
よろしくお願いいたします。

回答の条件
  • 1人5回まで
  • 登録:
  • 終了:2014/11/07 19:35:04

回答1件)

id:yamagh No.1

回答回数1ベストアンサー獲得回数0

これでどうですか?

vagrant box add precise32 http://files.vagrantup.com/precise32.box
vagrant init precise32
vagrant up
id:sheepsace

1行目のコマンドを実行した時点で、下記のようなエラーになってしまいます…

$ vagrant box add precise32 http://files.vagrantup.com/precise32.box
==> box: Adding box 'precise32' (v0) for provider:
box: Downloading: http://files.vagrantup.com/precise32.box
box: Progress: 0% (Rate: 0curl:/s, Estimated time remaining: --:--:--)
An error occurred while downloading the remote file. The error
message, if any, is reproduced below. Please fix this error and try
again.

Failed connect to files.vagrantup.com:80; No error

2014/10/27 12:54:23
id:sheepsace

Windowsのコマンドプロンプトで、環境変数を設定してからだと動きました!
Git Bashからだと、環境変数を設定してもエラーになってしまったのですが…
とにかくありがとうございました!

2014/10/27 14:08:53

コメントはまだありません

この質問への反応(ブックマークコメント)

「あの人に答えてほしい」「この質問はあの人が答えられそう」というときに、回答リクエストを送ってみてましょう。

これ以上回答リクエストを送信することはできません。制限について

回答リクエストを送信したユーザーはいません