Search code examples
macosubuntuvagrantadditionbsdtar

Why does `vagrant box add` yield a `bsdtar` error importing a `.box` in Ubuntu?


I installed vagrant and virtual box in Ubuntu 12.04.2 LTS. (Vagrant version 1.2.1). I have the vagrant box downloaded and executed the vagrant box add command. I am getting the following error:

*vagrant box add base64 package.box

Downloading or copying the box...
Extracting box...te: 147M/s, Estimated time remaining: 0:00:01)
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):
x ./box-disk1.vmdk: Write failed
x ./box.ovf: Write failed
x ./Vagrantfile: Write failed
bsdtar: Error exit delayed from previous errors.*

I repeated the same with other versions of vagrant(like version 1.2.2, 1.0.1, 1.3.0), but the same error. I am sure that the vagrant box I am adding is not corrupt, as I have used the same in mac machine and it worked fine...


Solution

  • It seems like the .box file isn't corrupted but your vagrant needs write permissions. I think you should check the installation of vagrant.