Skip to content

Instantly share code, notes, and snippets.

@bmannix
Last active August 29, 2015 13:58
Show Gist options
  • Save bmannix/10116829 to your computer and use it in GitHub Desktop.
Save bmannix/10116829 to your computer and use it in GitHub Desktop.
Vagrant overview for Gagan
Building your own baseboxes:
http://briceno.mx/2012/10/easy-guide-to-create-a-vagrant-box-from-virtualbox/
http://feed2.me/post/44067313534/building-your-own-base-box-for-vagrant
List of generic baseboxes:
http://www.vagrantbox.es/
Hey Gagan,
Here are some resources for building baseboxes.
A few comments:
Vagrant is best used when combining post-install scripts with generic baseboxes.
Meaning, if you can, use a generic centos or ubuntu basebox image and then configure it the way you want to post install.
Possible config could be downloading specific packages, checking out certain git/svn repos or running real any shell command.
Post-install config is refered to as provisioning.
There are many provisioners (ways to config the basebox), the simplest is Shell, but you might want to check out Ansible.
I've been playing with it recently and it's very easy to get started.
http://docs.vagrantup.com/v2/provisioning/index.html
However, if the systems you're trying to distribute is not easily built from a standard Linux distro then you'll need to build your own basebox.
If you're building your own basebox, understand that you'll need to build one for each "provider" you want to support
(vmware workstation, fusion, virtualbox)
http://docs.vagrantup.com/v2/providers/index.html.
The vmware providers require a license from HashiCorp.
If you had a need to create your own basebox and also needed to create one for each provider
(vmware, virtualbox, AWS) you should check out a tool called packer
http://www.packer.io/
Anyways I hope this helps!
If you have questions the freenode room #vagrant is a great place for help, but feel free to eamil me too.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment