Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Download Vagrant box from vagrantcloud.com

Tags:

vagrant

Is it possible to download a Vagrant box as a file from http://vagrantcloud.com ?

I've a PC with a very slow internet connection and I want add the box, downloaded from another pc, from the filesystem.

like image 561
Hpatoio Avatar asked Dec 12 '22 04:12

Hpatoio


2 Answers

Yes you can. Vagrant cloud is currently managed by Atlas. To download a file you have to add version and provider in the URL. For example for downloading precise64 First you need its URL which is https://atlas.hashicorp.com/ubuntu/boxes/trusty64

then you have to add version and provider afterwards, for our example the download URL would be.

https://atlas.hashicorp.com/ubuntu/boxes/trusty64/versions/14.04/providers/virtualbox.box

Then you have to add it locally from your vagrant file.

like image 175
Muhammad Raihan Muhaimin Avatar answered Jan 21 '23 09:01

Muhammad Raihan Muhaimin


Yes, you can download virtualbox.box from

https://app.vagrantup.com/laravel/boxes/homestead/versions/6.4.0/providers/virtualbox.box

You can change the version of homestead box. Current version: 6.4.0.

Check for the latest version here: https://app.vagrantup.com/laravel/boxes/homestead

After downloading the box, rename it to virtualbox.box or whatever name you like.

Don't forget to include the .box extension.

Add the downloaded homestead box to vagrant:

vagrant box add laravel/homestead /path/to/virtualbox.box

Change the path to where you stored your downloaded homestead box.

like image 34
Prateek Avatar answered Jan 21 '23 08:01

Prateek