Skip to content

Instantly share code, notes, and snippets.

@clasense4
Created March 15, 2020 23:36
Show Gist options
  • Save clasense4/e0e9433b82c1f73e48bac9df62c4cbe5 to your computer and use it in GitHub Desktop.
Save clasense4/e0e9433b82c1f73e48bac9df62c4cbe5 to your computer and use it in GitHub Desktop.
Vagrant box import

Vagrant up is too slow

So I do this instead

wget https://vagrantcloud.com/bento/boxes/ubuntu-18.04/versions/202002.14.0/providers/virtualbox.box
file virtualbox.box
# virtualbox.box: gzip compressed data
mv virtualbox.box virtualbox.gz
gunzip virtualbox.gz
file virtualbox
# virtualbox: POSIX tar archive (GNU)
vagrant box add --name bento/ubuntu-18.04 --box-version v202002.14.0 virtualbox
vagrant box list
# bento/ubuntu-18.04 (virtualbox, 0)

If wget is too slow, you can use something like uGet, change the maximum coonection to 16, and rename the output (a UUID) to virtualbox.box.

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