vagrant up error [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]

vagrant up error [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]

Vagrantの新規環境を生成しようとしていた時のエラーです。

https://normalblog.net/system/vagrant_box/

boxをaddしたので、upしようとしました。

$ 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したところうまく出来ました。

config.vm.box = "BOX名"

その他のvagrantの記事

VirtualBoxとVagrantの仮想環境構築まとめ

VirtualBox Vagrantの容量の割当増加(拡張)と圧縮手順のまとめ[Windows]

Comments

No comments yet. Why don’t you start the discussion?

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です