0
votes

I've downloaded the homestead box manually because of much slow downloading via terminal. But after adding the box, vagrant is not finding it and attempting to download again.

Vagrant find error

2
In what directory is it stored? Because slash is probably treated as special. My ubuntu/trusty32 is stored in a directory $VAGRANT_HOME/boxes/ubuntu-VAGRANTSLASH-trusty32. Try that pattern or choose slash-less name.virgo47
I'm in windows so the path is C:\Users\Zayn\.vagrant.d\boxes\laravel-VAGRANTSLASH-homesteadZayn Ali
And with this path it still doesn't find and wants to download?virgo47
does your folder contain a metadata_url file to point to the box url ? and within the vbox folder, do you have a metadata.json fileFrederic Henri
another possibility is to revert to folder v0 and specifically set config.vm.box_check_update = false in your VagrantfileFrederic Henri

2 Answers

1
votes

@FrédéricHenri Thanks. I found that the box was added directly instead of from a box catalog so vagrant try to check the updates and failed. So i simply just disable the check update.

config.vm.box_check_update = false

OR

For updates. I added metadata_url file in laravel-VAGRANTSLASH-homestead containing the url pointing to the box

https://vagrantcloud.com/laravel/homestead

0
votes

This happens when we add box from file, Vagrant marks as it is version 0 by default.

Solution I found When I got same error I renamed the folder 0 to the corresponding version in my case it was 0.4.2 inside this path~/.vagrant.d/boxes/laravel-VAGRANTSLASH-homestead. Then if you vagrant up from homestead project you may get error. So you can add catalog file metadata_url file. with url https://atlas.hashicorp.com/laravel/boxes/homestead in laravel-VAGRANTSLASH-homestead directory.