LoginSignup
6
6

More than 5 years have passed since last update.

Windows で Vagrant の box の解凍に失敗する

Last updated at Posted at 2014-10-10

こんな感じのメッセージが出てきて失敗する。
検証環境は Vagrant 1.6.5。

The box failed to unpackage properly. Please verify that the box
file you're trying to add is not corrupted and try again. The
output from attempting to unpackage (if any):

bsdtar.EXE が対応していない形式が多すぎるので、bsdtar で box を作り直したら成功するようにはなった。
コマンドプロンプトで metadata.json があるフォルダに移動して、以下のコマンドで作成。

C:\Temp\sample> PATH=C:\HashiCorp\Vagrant\embedded\bin;%PATH%
C:\Temp\sample> C:\HashiCorp\Vagrant\embedded\gnuwin32\bin\bsdtar.exe -cvzf ..\sample.box .

後は、出来上がった sample.box を vagrant add するといけるはず。

6
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
6
6