Download Vagrant Box faster

The easiest way to download a Vagrant box faster is to fetch it manually first and then add it to Vagrant yourself.

Before doing vagrant up, follow these steps.

Add the box manually

The official download is often slow. Download the box directly from the URL Vagrant Cloud is already using. For example:

wget "https://vagrantcloud.com/ubuntu/boxes/bionic64/versions/20200701.0.0/providers/virtualbox.box"

Use this command to add the downloaded box:

vagrant box add ubuntu/bionic64 bionic-server-cloudimg-amd64-vagrant.box

Change the name ubuntu/bionic64 and the file name according to the box you downloaded.

Discussion

Comments

Comments are powered by Disqus and load only when requested.