How to add a downloaded .box file to Vagrant?

How do I add a downloaded .box file to Vagrant's list of available boxes? The .box file is located on an external drive.

I tried running vagrant box add my-box d:/path/to/box, but Vagrant interprets the path as a URL.


Solution:

vagrant box add my-box file:///d:/path/to/file.box

Has to be in a URL format.


You can point to the folder where vagrant and copy the box file to same location. Then after you may run as follows

vagrant box add my-box name-of-the-box.box
vagrant init my-box
vagrant up

Just to check status

vagrant status