1This document describes one way to created the rcu-test-image file
2that contains the filesystem used by the guest-OS kernel.  There are
3probably much better ways of doing this, and this filesystem could no
4doubt be smaller.  It is probably also possible to simply download
5an appropriate image from any number of places.
6
7That said, here are the commands:
8
9------------------------------------------------------------------------
10dd if=/dev/zero of=rcu-test-image bs=400M count=1
11mkfs.ext3 ./rcu-test-image
12sudo mount -o loop ./rcu-test-image /mnt
13
14# Replace "precise" below with your favorite Ubuntu release.
15# Empirical evidence says this image will work for 64-bit, but...
16# Note that debootstrap does take a few minutes to run.  Or longer.
17sudo debootstrap --verbose --arch i386 precise /mnt http://archive.ubuntu.com/ubuntu
18cat << '___EOF___' | sudo dd of=/mnt/etc/fstab
19# UNCONFIGURED FSTAB FOR BASE SYSTEM
20#
21/dev/vda        /               ext3    defaults        1 1
22dev             /dev            tmpfs   rw              0 0
23tmpfs           /dev/shm        tmpfs   defaults        0 0
24devpts          /dev/pts        devpts  gid=5,mode=620  0 0
25sysfs           /sys            sysfs   defaults        0 0
26proc            /proc           proc    defaults        0 0
27___EOF___
28sudo umount /mnt
29------------------------------------------------------------------------
30
31
32References:
33
34	http://sripathikodi.blogspot.com/2010/02/creating-kvm-bootable-fedora-system.html
35	https://help.ubuntu.com/community/KVM/CreateGuests
36	https://help.ubuntu.com/community/JeOSVMBuilder
37	http://wiki.libvirt.org/page/UbuntuKVMWalkthrough
38	http://www.moe.co.uk/2011/01/07/pci_add_option_rom-failed-to-find-romfile-pxe-rtl8139-bin/ -- "apt-get install kvm-pxe"
39	http://www.landley.net/writing/rootfs-howto.html
40	http://en.wikipedia.org/wiki/Initrd
41	http://en.wikipedia.org/wiki/Cpio
42	http://wiki.libvirt.org/page/UbuntuKVMWalkthrough
43