Skip to content

Instantly share code, notes, and snippets.

@ijin82
Forked from firmanelhakim/download_vagrant_box.sh
Created November 8, 2021 03:20
Show Gist options
  • Save ijin82/a2126bd3c464907dbcdb1c4d4392c6a0 to your computer and use it in GitHub Desktop.
Save ijin82/a2126bd3c464907dbcdb1c4d4392c6a0 to your computer and use it in GitHub Desktop.
How to Download Vagrant Box Manually
/* this is the box (and the version) that we want to download from: https://app.vagrantup.com/debian/boxes/jessie64 */
wget https://app.vagrantup.com/debian/boxes/jessie64/versions/8.9.0/providers/virtualbox.box -O debian-jessie64-8.9.0.box
/* add the box to vagrant */
vagrant box add debian/jessie64 debian-jessie64-8.9.0.box
/* update box version */
cd ~/.vagrant.d/boxes/debian-VAGRANTSLASH-jessie64/
mv 0 8.9.0
/* create metadata_url file */
echo -n "https://app.vagrantup.com/debian/boxes/jessie64" > metadata_url
/* show vagrant boxes */
vagrant box list
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment