Skip to content

Instantly share code, notes, and snippets.

@samiujan
Last active May 11, 2022 19:54
Show Gist options
  • Select an option

  • Save samiujan/b8d1576a8f20aaa4e1dab040e99846c8 to your computer and use it in GitHub Desktop.

Select an option

Save samiujan/b8d1576a8f20aaa4e1dab040e99846c8 to your computer and use it in GitHub Desktop.
Download a virtualbox image directly from vagrant
Problem:
I need to download a Virtualbox imaage using vagrant.
The image is very large (around 5 GB)
However, my internet connection is slow and flaky and I need to be able to resume in case of a break
Solution:
1. Install a download manager like https://www.freedownloadmanager.org/
2. Open "Vagrantfile" and locate the config.vm.box param - in my case, it's:
config.vm.box = "aalkilani/spark-kafka-cassandra-applying-lambda-architecture"
This is a path to a vagrant "box" spark-kafka-cassandra-applying-lambda-architecture created by the user "aalkilani"
3. Go to https://app.vagrantup.com/boxes/search and search for the value of config.vm.box
4. Look for the version you need to download (for myself, it was the latest i.e. 0.0.6)
5. Based on this info, following is the direct path to the download
https://atlas.hashicorp.com/aalkilani/boxes/spark-kafka-cassandra-applying-lambda-architecture/versions/0.0.6/providers/virtualbox.box
or generic format:
https://atlas.hashicorp.com/<user>/boxes/<box_name>/versions/<version_number>/providers/virtualbox.box
6. This time, pecify the file path on disk when you up vagrant
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment