Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

pshanoop's avatar

Version error after Homestead box direct install

I tried to add new homestead box 0.4.2 for my new project. But vagrant default download failed many time and I got fed up removing partial file from vagrant directory then starting download. So I downloaded the box using link in firefox.

Anyway now my problem is after adding homestead box by command 'vagrant box add laravel/homestead ./hc-download ', when I am vagrant up from my project the vagrant is not detecting my box installation finally I figured out It was a version issue. So I tried renaming the folder 0 to 0.4.2 in vagrant directory. But now I am getting error like this

"The box 'laravel/homestead' is not a versioned box. The box was added directly instead of from a box catalog. Vagrant can only check the versions of boxes that were added from a catalog such as from the public Vagrant Server. "

How to fix this without downloading the box again. I am from India vagrant servers is not giving more 124Kbps speed. It would be wonderful if some one hosts this box in any other servers.

Thank you and very sorry for long question.

0 likes
1 reply
pawaniitd's avatar

Hi,

In the laravel-VAGRANTSLASH-homestead directory where the version directories are stored, just create a new file named - metadata_url and inside the following line to the file

https://atlas.hashicorp.com/laravel/homestead

You will still have to rename the version folder from 0 to the version you downloaded.

1 like

Please or to participate in this conversation.