Skip to content

Instantly share code, notes, and snippets.

@hultberg
Forked from ryanuber/gist:9014174
Created April 12, 2016 07:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hultberg/7dc43332a0d3a1d681de4ab86000ea4b to your computer and use it in GitHub Desktop.
Save hultberg/7dc43332a0d3a1d681de4ab86000ea4b to your computer and use it in GitHub Desktop.
Vagrant re-import box from files on local system

If you find that vagrant box list somehow does not contain a box you previously had, you can sometimes add the box back if you still have the sources for it in ~/.vagrant.d/boxes.

$ cd ~/.vagrant.d/boxes/precise64/0/virtualbox/
$ tar czf ~/precise64.box .
$ vagrant box add precise64 ~/precise64.box 
Downloading box from URL: file:/Users/ryanuber/precise64.box
Extracting box...te: 417M/s, Estimated time remaining: --:--:--)
Successfully added box 'precise64' with provider 'virtualbox'!

Probably better that you just re-download it if you can do that, but I'm on gogo inflight as I am typing this, so just re-downloading is not an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment