Packer is a tool for creating identical machine images for multiple platforms from a single source configuration. You can win a lot of time by testing your application on multiple environments (AWS, OpenStack, VirtualBox, Vmware…).
Let’s say you’ve got a LAMP environment to deploy in production on OpenStack. However, you can’t perform your development/integration on it as you don’t have access yet. You can’t loose time and wait for it to test.
The 1.5 version of Vagrant has been released and that’s awesome ! They finally did a Cloud where all Vagrant boxes could (https://vagrantcloud.com/) be inventoried and easily deployed through command line !
You can find my boxes here. If you want to add one, it’s really simple:
vagrant box add deimosfr/debian-wheezy And the second awesome feature is…the sharing! You can for example have access to a distant and nated Vagrant instance through SSH!
I recently discovered a Vagrant plugin that manage the VirtualBox Guest Additions automatically. I mean, when you launch a virtual machine, it automatically checks if the Guest Additions are installed. If it’s not the case or if they are not up to date, installation of the latest version is made automatically !
Here is how to install it.
If you follow me, you should be aware that I use Vagrant every day. I wanted to get a Wheezy version with fr keyboard, up to date, correct locales and configured source.list file. I’ve also added Puppet and Chef on it.
So I’ve learned on how to build a box and it’s really easy by following the documentations on the website. Here is my Debian Wheezy box based on VirtualBox provider available on DropBox or Mega.
I’m currently playing with Ceph and wanted to generate multiple machines (6) on my laptop to perform several tests. I needed :
1 public network 1 private network Debian wheezy OS Automatically install Ceph Add disk for specific machines (OSD) It wasn’t easy to make it work quickly as the documentation doesn’t give a lot of examples. But what a powerful solution when it works !
If you want to try multiple VM managment, please follow the link.
Vagrant is a fast solution build on top of VirtualBox. I already talked about it in a previous post.
The thing is, you could do really more with Vagrant by adding Puppet manifests or Chef recipes in your Vagrant configuration file. For those who don’t often use one of those 2 softwares, it quickly could transform into a nightmare when they want to deploy softwares in addition of the OS.
A few months ago, I wanted to install as fast as possible new VMs headless. In addition, I wanted to give the possibility for my ex colleagues to be able to easily create remote VMs on my desktop as most of them got slow machines. KVM did the job perfectly. I also needed to quickly deploy Debian, so I made a pressed file.
Here at eNovance, I can be selfish :-p as everybody got a fast machine (Thanks eNovance).