http://stackoverflow.com/questions/28399324/download-vagrant-box-file-locally-from-atlas
But i dont know where to get the homestead box.
Get the versions from https://atlas.hashicorp.com/laravel/boxes/homestead
most current is 0.2.6, then change out the version part of this path to the download.
https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.2.6/providers/virtualbox.box
Then to add to vagrant,
vagrant box add laravel/homestead (path to downloaded file)
wabualela liked this reply
An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again. http://prntscr.com/9qnjxr
Hi guys,
Getting error while adding the box with the above steps, I have downloaded the file and trying to use following commad:
vagrant box add laravel/homestead Downloads/hc-download
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'laravel/homestead' (v0) for provider:
box: Unpacking necessary files from: file:///Users/yogesh/Downloads/hc-download
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: gzip decompression failed
bsdtar: Error exit delayed from previous errors.
Please help me to resolve.
It sounds like the .box file didnt download correctly.
Yo u can open it 7zip, it should contain one file named homestead. It might be a good idea to check and make sure it downloaded ok.
Yes I tested in 7zip, it gives data error, I think I need to download it again.
Thanks @TerrePorter
You can download homestead box by following this link:
// You can change the version if there is an updated one.
https://atlas.hashicorp.com/laravel/boxes/homestead/versions/0.5.0/providers/virtualbox.box
You'll get a file named hc-download
just rename it to something like virtualbox.box
or whatever you want after the download.
NOTE: Don't forget the .box
extension.
After that, you can now add homestead box to vagrant like this:
// You can change the DRIVE: to C or D or whatever Drive you store the box
// Same for the YOURUSERNAME and YOURBOX.BOX
vagrant box add laravel/homestead file:///DRIVE:/Users/YOURUSERNAME/Downloads/YOURBOX.BOX
After that, you create a file called metadata_url
NOTE: There is no extension for metadata_url
Then add this link and save the file
https://atlas.hashicorp.com/laravel/homestead
Copy metadata_url
file to:
.vagrant.d\boxes\laravel-VAGRANTSLASH-homestead
Then rename the folder named 0
to the version of the homestead box you just added in this case 0.5.0
DONE!
@Stpham You're welcome I just get that information to my friend.
https://gist.github.com/idecardo/deec25b8fa54976edb496d7ce7d320a7
The metadat_url was causing so much problem for me. The box was getting re downloaded after offline installation. Thanks to @yaeykay for mentioning that step. It saved me at the end of the day. I have covered my frustration with virtualbox and the manual installation Here : https://abbasharoon.me/laravel-homestead-windows-extremely-easy/ in hope to save others.
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community