Just to complement @thecodethinker answer.
When I applied the suggested command:
vagrant box list
and
vagrant box repackage <name> <provider> <version>
The following happened:
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Box 'laravel/homestead' could not be found. Attempting to find and install...
default: Box Provider: virtualbox
default: Box Version: >= 0.4.0
==> default: Loading metadata for box 'laravel/homestead'
default: URL: https://atlas.hashicorp.com/laravel/homestead
==> default: Adding box 'laravel/homestead' (v0.5.0) for provider: virtualbox
default: Downloading: https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.5.0/providers/virtualbox.box
As you can see, it did not recognise the package.box and is trying to download from the internet. If you look closely above you can see that is looking for box version >= 0.4.0.
This is the result of vagrant box list:
laravel/homestead (virtualbox, 0)
Because the box was added manually. The box metadata was not available and by default it will set the version to 0.
To fix the problem, create a metadata.json:
{
"name": "laravel/homestead",
"versions": [{
"version": "0.4.0",
"providers": [{
"name": "virtualbox",
"url": "file://package.box"
}]
}]
}
Because now we have a proper metadata, you can do:
vagrant box add metadata.json
box addonce you can just usevagrant init <box name>to create a new instance with that same base box. Why aren't you doing that? - benbot