tisdag 11 maj 2010

building xen3.4.2 in a lucid root file system



# create the pristine root file system

LUCID=$HOME/lucid
mkdir -p $LUCID

wget http://se.archive.ubuntu.com/ubuntu/pool/main/d/debootstrap/debootstrap_1.0.20ubuntu1_all.deb
sudo dpkg -i debootstrap_1.0.20ubuntu1_all.deb
sudo debootstrap --variant=buildd --arch i386 lucid $LUCID http://se.archive.ubuntu.com/ubuntu


# go into it
sudo chroot $LUCID

export LC_ALL=C

echo > /etc/apt/sources.list deb http://se.archive.ubuntu.com/ubuntu lucid main restricted universe
apt-get update
apt-get install -y wget nano mercurial git-core gawk openssh-client libz-dev \
gettext libssl-dev libx11-dev bin86 bcc libncurses5-dev python-dev texinfo \
bridge-utils uuid-dev iasl

mkdir /root/xen
cd /root/xen

XENVER=3.4.2
XENVER=4.0.0
wget http://bits.xensource.com/oss-xen/release/$XENVER/xen-$XENVER.tar.gz
tar xfz xen-$XENVER.tar.gz
cd xen-$XENVER
make -j8 world

# now everything is in dist, install like this
cd dist
sudo sh install.sh
mkinitramfs -v -o /boot/initrd.img-2.6.18.8-xen 2.6.18.8-xen

# make a grub entry and reboot
# WARNING! make sure that the kernel can boot your file system 
# (LVM requires the dm module, etc.)

Inga kommentarer:

Skicka en kommentar