define( 'WPCACHEHOME', '/srv/www/www.ichilton.co.uk/html/blog/wp-content/plugins/wp-super-cache/' ); //Added by WP-Cache Manager virtualization | Ian Chilton

Archive

Posts Tagged ‘virtualization’

My PHPNE Talk on Vagrant

May 22nd, 2012 No comments

I’m not a public speaker. In fact, i’m normally found either sitting at the back behind a sound desk or running round fixing technical problems.

However, Anthony Sterling approached me the week before the May 2012 PHP North East meetup and asked if i’d do a talk on Vagrant.

In order to give something back to the group, and knowing it was a product I really like that i’d be able to come up with plenty of content, I agreed.

I titled the talk Virtualized Development Environments with Vagrant so I could go into the background and why you would want to use such a tool, as well as how to use it. I also gave a brief introduction to Intrastructure as Code and Configuration Management with Puppet and Chef.

The full contents were:

  • Introduction to:
    • Development Environments
    • Virtualization
  • Why virtualize your development environment?
  • Introduction to Vagrant
  • Using Vagrant
  • Vagrant Plugins
  • Automated Provisioning (Configuration Management)

Watching it back, my public speaking and presentation skills do need quite a bit of work. However, given that it was a first attempt at public speaking, which is not natural to me, hopefully it was a good attempt. The feedback was good, plenty of people had positive things to say, questions and further discussion in the pub afterwards so that nice. I now also have some points to improve on.

The talk was video’d and available on Vimeo:

And the slides available on Slideshare or SpeakerDeck:

Vagrant Install on Mac OS X

February 20th, 2011 No comments

Gareth Rushgrove recently wrote a good blog post about why you should be using virtualisation.

(incidently, it got coverage on Hacker News and David Singleton also blogged a follow up).

Anyway…

Vagrant is a tool for building and distributing virtualized development environments.

To quote the Vagrant website:

By providing automated creation and provisioning of virtual machines using Oracle’s VirtualBox, Vagrant provides the tools to create and configure lightweight, reproducible, and portable virtual environments.

The installation instructions are simple:

$ sudo gem update --system
$ gem install vagrant

However, there were a few small gotcha’s a came across which are worth sharing.

Firstly, you need to run the vagrant install under sudo (runs it with root privileges), otherwise it complains about permissions:

$ sudo gem install vagrant

Secondly, I got the following error:

$ sudo gem install vagrant
Password:
Building native extensions. This could take a while...
ERROR: Error installing vagrant:
ERROR: Failed to build gem native extension.

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/ruby.h

Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/json-1.5.1 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/json-1.5.1/ext/json/ext/generator/gem_make.out

It turns out this is easy to solve – all you need to do is dig out your OS X install CD, go into the optional extras and install Xcode.

It takes a while to run but once it’s complete, Vagrant installs fine.