Vagrantの新規環境を生成しようとしていた時のエラーです。
vagrantでは環境Boxをパッケージにして別PCなどに使い回せるので一度環境構築すれば、あとは簡単に展開出来ます。と自分は理解しましたの...
boxをaddしたので、upしようとしました。
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Box 'base' could not be found. Attempting to find and install... default: Box Provider: virtualbox default: Box Version: >= 0 ==> default: Box file was not detected as metadata. Adding it directly... ==> default: Adding box 'base' (v0) for provider: virtualbox default: Downloading: base default: An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again. Couldn't open file /Users/username/temp/centosxx/base |
「base」って何だろう?
これの対応を記録しておきます。
エラー原因はVagrantfileにbox名を記載していなかった為
そのままです。エラー原因はVagrantfileにbox名を記載していなかった為でした。デフォルトでは「base」となっていましたので、以下のように修正して、再びvagrant upしたところうまく出来ました。
1 |
config.vm.box = "BOX名" |
その他のvagrantの記事
VirtualBoxとVagrantの仮想環境構築まとめました。
このページの手順で実績が取れた環境はこちらです。
win8.1 6...
Windows VirtualBox Vagrantの仮想環境で容量が足りなくなってきましたので増やしたいと思います。また、古いファイルは削...