Posted on | October 18, 2007 | 4 Comments
I’ve been promising several people for the past couple of months that I would make a Feisty Xen guest template when I got “around to it”.
Well, I got around to it and the template is available for download. You’ll find the md5′s in the directory listing.
The template was bootstrapped (32 bit) using debootstrap, I then made the following modifications:
- hwclock and console stuff disabled in init.d
- Installed SSH and friends
- Removed sound/usb stuff
- Installed libc6-xen (init never complained, so I did not rebuild it)
- Fixed a few things so the boot screen isn’t so mangled over the Xen serial redirect
- Setup a generic fstab (sda1 is / , sdb1 is swap)
- Configured aptitude to pull from Feisty main, universe and multiverse including the feisty-updates and feisty-security repositories.
- Several other very minor things that I can’t remember off the top of my head.
To use the template, you need only a working installation of Xen.
Get going by doing by un-archiving the template, creating a small swap virtual block device (file or LV backed, whatever), create a configuration file that looks something like this:
name = 'feisty'
memory = 128
kernel = '/boot/vmlinuz-2.6.18-xen'
root = '/dev/sda1 ro'
disk = ['phy:/guests/feisty/rootfs,sda1,w',
vif = ['bridge=br0, mac=00:00:6d:8e:4c:31, vifname=feisty.0']
You’ll want to change the disk  array to indicate your setup, and the type of block device you created (a loop device would of course be file:/). A swap image is included to get you started, as well as a sample Xen configuration file.
Typically, I use LVM for virtual block devices. File backed VBDs are rather slow
Copy over the modules of whatever kernel you are using (most will be 2.6.18) to the /lib/modules/ directory of the VPS template, boot via xm create feisty.cfg then xm console your way in.
By default, eth0 wakes up wanting DHCP. Change that if you like in /etc/network/interfaces. The default root password is simply password and you can find a list of packages installed in /root (installed.packages iirc)
It might be a good idea to do an apt-get update and apt-get upgrade, depending on when you read this and snag the template. Any problems using these should be reported to email@example.com.
This image has been cleaned up and sent to jailtime.org as a contribution. Comments are welcome, however please post any serious issues with this image on the jailtime wiki.
I am through with Ubuntu. These images are no longer supported, nor will I be contributing more in the future. However, I will be making more for Debian as it evolves.