Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant VM download failure #36

Open
seanknox opened this issue Nov 13, 2013 · 5 comments
Open

Vagrant VM download failure #36

seanknox opened this issue Nov 13, 2013 · 5 comments

Comments

@seanknox
Copy link

Hi, I tried to download the Vagrant VM but received this error:

$ vagrant box add dstk http://where.jetpac.com.s3.amazonaws.com/dstk_0.51.box                                                   
Downloading or copying the box...
Extracting box...te: 2512k/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 to restore size failed
x include: Write to restore size failed
x include/_Vagrantfile: Write to restore size failed
x Vagrantfile: Write to restore size failed
bsdtar: Error exit delayed from previous errors.
@petewarden
Copy link
Owner

Sorry about that Sean! Let me dig out the location that the box should be downloaded to, and we can compare file sizes, etc, to see if the download got messed up. Are you on OS X?

@petewarden
Copy link
Owner

If you are on OS X, this command should open up the hidden Vagrant cache folder:

open ~/.vagrant.d/

Could you have a look at the size of the contents of the dstk folder using a command like this?

ls -la ~/.vagrant.d/boxes/dstk

The expected values are these:

drwxr-xr-x  6 petewarden  staff          204 Oct  2 23:31 .
drwxr-xr-x  8 petewarden  staff          272 Nov 13 14:54 ..
-rw-r--r--  1 petewarden  staff          505 Oct  2 23:31 Vagrantfile
-rw-------  1 petewarden  staff  21309656576 Oct  2 23:31 box-disk1.vmdk
-rw-------  1 petewarden  staff        14171 Oct  2 23:31 box.ovf
drwxr-xr-x  3 petewarden  staff          102 Oct  2 23:31 include

@seanknox
Copy link
Author

Hey Pete, I'm on OS X (Mavericks if it matters). Looks like something went awry during the download/unpacking phase(s), as my ~/.vagrant.d/boxes/ folder is empty. Perhaps Vagrant cleaned up after itself? I'm now manually downloading box-disk1.vmdk (using curl) and will try to bring the box up post download.

@seanknox
Copy link
Author

Figured out the issue. I ran out of disk space. When you run vagrant box add dstk [box image] Vagrant copies the box image to your .vagrant.d folder; this is true whether you download the image via HTTP or point vagrant to a local copy. So even though I have a local copy of DSTK image, Vagrant is still copying it over to .vagrant.d/tmp.

Not sure if there's a way to tell Vagrant to not copy the image file over again, and instead just use it. In the meantime, I'm going to throw the image on an external HD I have and give it another shot as then I'll actually have space on my computer.

BTW, Eric Theise pitched the DSTK at the Stamen Maptime event. :)

@teone
Copy link

teone commented Apr 9, 2015

You can also change the vagrant home with this env variable:

export VAGRANT_HOME=/your/path

as stated here

Thanks @seanknox your post put me in the right direction

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants