alunw.com

Creating a Vagrant Base Box

linux tech

I’m assuming you’re familiar with Vagrant – it makes provisioning a VM simple. Read more: http://docs.vagrantup.com/v2/why-vagrant/index.html

Now there are a number of available base boxes for building VMs – which can be found here: http://www.vagrantbox.es/

I’ve just been baking my own base box – building a minimal Centos 6 VM on VirtualBox…

  vagrant ALL=(ALL) NOPASSWD:ALL
  Defaults: vagrant !requiretty
  $ ls -la ~vagrant/.ssh/
  total 12
  drwx------. 2 vagrant vagrant 4096 Feb 15 13:48 .
  drwx------. 3 vagrant vagrant 4096 Feb 15 14:11 ..
  -rw-------. 1 vagrant vagrant 409 Feb 15 13:46 authorized_keys
  $ vagrant package --base "Centos 6 (64) minimal" --output centos-6-64-min.box

More info can be found here: http://docs.vagrantup.com/v2/boxes/base.html

And here for VirtualBox: http://docs.vagrantup.com/v2/virtualbox/boxes.html


This is an Eleventy project created from the eleventy-base-blog repo.