Ubuntu 10.04 LXC container script

May 18th 2010

This script will create a LXC container running Ubuntu Server 10.04, you should change the variables at the top for your environment. You may want to modify some of the embedded scripts to change the use of puppet.

The script is semi-interactive. You will have to select the base console language as well as add a user and password with sudoer access throughout the script’s run…

Bonding and bridging for LXC

April 19th 2010

I’m using LXC for a project at work. Setting up the networking became a bit complex, so I did a bit of scripting to go around ubuntu server’s standard interfaces file. My requirements here are that I have two (or really n) physical interfaces that need to be bonded with LACP, and a bridge interface on top of the bond0 interface.

This config is probably useful for other virtualization set ups, but YMMV; this is really just for LXC on Ubuntu Server (Lucid). Click read on to see the scripts…

New little blog engine

February 7th 2010

Using toto now (http://github.com/cloudhead/toto). It’s pretty cool, and is almost designed to run on Heroku’s free service. I have comments disabled right now (thru disqus), but it does support them; for now, I’m keeping it super simple.

Apache per-vhost logging

February 7th 2010

I wrote this little article before; after solving a problem to get zero configuration apache vhosts with separate logs in apache. It’s a minimal configuration that is extremely fast due to apache’s bulit-in perl acceleration.

Fit this in with your apache config, then you can simply create directories under /web/hosts and they will automatically be your vhosts. No restarting apache, no extra config…