Skip to content

Instantly share code, notes, and snippets.

@ryanuber
Created February 15, 2014 03:31
Show Gist options
  • Star 18 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save ryanuber/9014174 to your computer and use it in GitHub Desktop.
Save ryanuber/9014174 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.

@laminko
Copy link

laminko commented Mar 27, 2015

+1

@talnetd
Copy link

talnetd commented Feb 26, 2016

+1

@maksim77
Copy link

Thx!

@carlosdelfino
Copy link

Here in Brazil, we have serious problems with the performance of Internet access providers International. For example the provider that I contract, although I guarantee that I deliver a Link of 10Mb / s (bit) I can not make downloads in general to more than 500KB / s (Byte).

Regarding the use of Vagrant, and other services, I can not get rates higher than 50KB / s, but I have found a way to improve this a bit, and I am already getting rates of 100KB / s (sometimes).

In addition to its tip I solved my problem in part, since very low download rates cause the servers of AmazonWS, to reset the connection by time of use. And with that I have to keep restarting the download.

Well using the Brazilian way, to survive our market ethics, I started using "aria2c" to download the "box" packages, and I ask the software to follow the download and make multiple connections to the server, so I can circumvent the Provider's firwall rule in part and double the velvety.

Then I use the colleague's hint to add the "box" and use it normally.

I still dream of being able to find a trick to increase to at least 500KB / s, but I still have not been able to do two distinct downloads and preferentially on different machines, but then I need to track the file during manual download.

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