Wed, 30 Jan 2008

lguest lca2008 Tutorial Preparation Fastpath

You need to have lguest working for the lguest tutorial. We had a preparation BoF, and here's what we ended up with (thanks everyone!)
  1. Get a 2.6.23 kernel
  2. Make sure CONFIG_EXT2=y so you can read the root image.
  3. Build your kernel with CONFIG_LGUEST=m (here are pre-built kernel trees for Debian unstable and Ubuntu 7.10 (Gutsy).)
  4. Install the kernel on your machine.
  5. cd into Documentation/lguest/ and type "make" to build the "lguest" launcher binary (you will need the zlib headers and static libraries).
  6. Grab a simple root image I use the Xen-test tiny image.
  7. Reboot into your 2.6.23 image.
  8. sudo modprobe lg
  9. Run the lguest launcher like so:
    sudo /usr/src/linux-2.6.23/Documentation/lguest/lguest --block=initrd-1.1-i386.img 128 /boot/vmlinuz- root=/dev/lgba
  10. If you see the "sh" prompt, you're ready for the tutorial!

There's also a Qemu image with instructions but you need to build outside and install updates into the image.

[/tech] permanent link