Debian 5.04 better than CentOS…
Debian 5.04 better than CentOS 5.4 for latest Xen unstable (4.0.0rc6-pre) with Remus & Kernel (2.6.31.6) builds!
Install Debian 5.04 amd64 via DVD 1 & enable network interface & Network Repos!
Debian 5.04 amd64 ISO is: ftp://mirror.internode.on.net/debian-cd/5.0.4/amd64/iso-dvd/debian-504-amd64-DVD-1.iso
/etc/apt/sources.list setup after install & used throughout Xen Unstable install is:
##deb cdrom:[Debian GNU/Linux 5.0.4 _Lenny_ - Official amd64 DVD Binary-1 20100131-22:09]/ lenny contrib main
deb http://ftp.au.debian.org/debian/ lenny main
deb-src http://ftp.au.debian.org/debian/ lenny main
deb http://security.debian.org/ lenny/updates main contrib
deb-src http://security.debian.org/ lenny/updates main contrib
deb http://volatile.debian.org/debian-volatile lenny/volatile main contrib
deb-src http://volatile.debian.org/debian-volatile lenny/volatile main contrib
Pre-Req’s:
apt-get update
apt-get install’s done:
apt-get install build-essential
apt-get install zlib1g-dev python-dev libncurses5-dev libssl-dev xorg-dev
apt-get install mercurial gawk bcc bin86
apt-get install openssh-server
apt-get install git-core
apt-get install libsdl1.2-dev
apt-get install uuid-dev
apt-get install gettext
apt-get install iasl
apt-get install bridge-utils
apt-get install flex bison libpci-dev
Get to it!:
cd /usr/local/src
hg clone http://xenbits.xen.org/xen-unstable.hg
cd xen-unstable.hg
make world
When “make world” stops to configure kernel, CTRL-C the make menuconfig within the kernel’s build dirs!
Edit ./linux-2.6-pvops.git/arch/x86/configs/i386_defconfig AND ./linux-2.6-pvops.git/arch/x86/configs/x86_64_defconfig to enable whatever config entries you want.
Re-start the xen-unstable.hg/ make dist process & work through the prompts for the kernel config stage & all going well, it should configure & build the kernel & Xen!
make install
mkinitramfs -k -o ./initramfs-2.6.31.6 2.6.31.6
cp /initramfs-2.6.31.6 /boot/initrd.img-2.6.31.6
Set GRUB menu.lst to boot on this Xen install:
title Xen Unstable + kernel 2.6.31.6
root (hd0,0)
kernel /boot/xen-4.0.gz
module /boot/vmlinuz-2.6.31.6 root=/dev/sda1 ro quiet
module /boot/initrd.img-2.6.31.6
Boot on that!
First you’ll need to manually start xend for the 1st time!
/etc/init.d/xend start
Check networking, xm list output, etc..
Set xend to start at boot via:
updated-rc.d xend defaults
updated-rc.d xendomains defaults
Update xend-config.sxp to support Live Migration via Replication:
(xend-relocation-server yes)
(xend-relocation-port 8002)
(xend-relocation-ssl no)
(xend-relocation-address ”)
(xend-relocation-hosts-allow ”)
Load those xend-config.sxp changes with:
/etc/init.d/xend restart
See that your Xen is sitting on TCP port 8002 with:
lsof -i tcp:8002
Do all this on > 1 physical host/server to get other Hypervisors available to Replicate to!
By proy, November 1, 2010 @ 11:22 pm
Hi,
I did not understand the line you mentioned
When “make world” stops to configure kernel, CTRL-C the make menuconfig within the kernel’s build dirs!
By rich, November 2, 2010 @ 12:13 pm
I was just a kludge to stop the “make world” at the point where it’s configuring the kernel so you can set any custom kernel config or options.
An easier way may be to let the “make world” finish (letting it build its kernel with the default kernel .config file that it gets from the Kernel GIT Repo), then editting the .config file after the make world finishes & re-doing all the build with “make dist” after setting what you’d like in the kernel’s .config file.
The “make dist” will do a kernel “make menuconfig” anyway & you get to apply or set any kernel custom settings you may want.