export LANG=C LC_ALL=C LC_CTYPE=C
apt-get install gcc g++ cramfsprogs python python2.3-dev bridge-utils build-essential debconf-utils debhelper devscripts gs-common iproute kernel-package libncurses5-dev lvm2 module-assistant openafs-modules-source tetex-extra transfig usbutils zlib1g-dev hotplug
#
dpkg -i ../mercurial/mercurial_0.8*deb
hg clone http://xenbits.xensource.com/xen-3.0-testing.hg
# hg clone http://xenbits.xensource.com/staging/xen-3.0.5-testing.hg
# hg clone http://xenbits.xensource.com/staging/xen-3.1-testing.hg
# hg clone http://xenbits.xensource.com/xen-unstable.hg
cd debs
dpkg -i libselinux1-dev_1.28-4_i386.deb libselinux1_1.28-4_i386.deb libsepol1-dev_1.10-2_i386.deb libsepol1_1.10-2_i386.deb lsb-base_3.0-16_all.deb module-init-tools_3.2.2-2_i386.deb
cd /root/xen*
ln ../linux-2.6.12.tar.bz2 .
export LANG=C LC_ALL=C LC_CTYPE=C
export ARCH=xen
make prep-kernels
cp /pub/linux/distributions/local/tmp/xen/config.dom0 linux-2.6.12-xen0/.config
cp /pub/linux/distributions/local/tmp/xen/config.domU linux-2.6.12-xenU/.config
make dist
make install
module-assistant -k /root/xen-3.0-testing.hg/linux-2.6.12-xen0 --kvers-list 2.6.12.6-xen0 prepare
module-assistant -k /root/xen-3.0-testing.hg/linux-2.6.12-xen0 --kvers-list 2.6.12.6-xen0 build openafs-module
module-assistant -k /root/xen-3.0-testing.hg/linux-2.6.12-xenU --kvers-list 2.6.12.6-xenU prepare
module-assistant -k /root/xen-3.0-testing.hg/linux-2.6.12-xenU --kvers-list 2.6.12.6-xenU build openafs-modules
----------------
pvcreate /dev/sda6
vgcreate all /dev/sda6
----------------
lvcreate -L 8g -n clientroot all
lvcreate -L 1g -n clientswap all
lvcreate -L 20g -n clientweb all
mkswap /dev/all/clientswap
for i in clientroot clientweb;do
 mkfs.ext2 /dev/all/$i
 tune2fs -j -c 0 -i 185d /dev/all/$i
done
mount /dev/all/clientroot /mnt
cd /mnt
tar xjfp /ftp/beta/cluster/nstd/client.tb2
echo vi etc/network/interfaces etc/hosts etc/hostname
cd /
echo vi /mnt/etc/fstab
-----------------
umount /mnt
xm create -c /etc/xen/auto/client.conf