仮想開発環境を作成したいと思い、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
もしわかりましたら教えて頂けますと幸いです。
よろしくお願いいたします。
これでどうですか?
vagrant box add precise32 http://files.vagrantup.com/precise32.box vagrant init precise32 vagrant up
1行目のコマンドを実行した時点で、下記のようなエラーになってしまいます…
2014/10/27 12:54:23$ 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
Windowsのコマンドプロンプトで、環境変数を設定してからだと動きました!
2014/10/27 14:08:53Git Bashからだと、環境変数を設定してもエラーになってしまったのですが…
とにかくありがとうございました!