Rebuilding Etch 2.6.18-6 kernels with up to date Xen Support The point is to build Debian 2.6.18 packages as they have security support and driver updates. Required packages: mercurial build-essential fakeroot kernel-package libncurses-dev First make sure you have a src line for security in /etc/apt-sources e.g. deb-src http://security.debian.org/ etch/updates main contrib non-free apt-get update then: apt-get source linux-2.6 cd linux-2.6-2.6.18.dfsg.1 fakeroot debian/rules debian/build debian/stamps extract a patched source tree with this will give us a 2.6 tree but without the debian xen patches. fakeroot make -f debian/rules.gen setup-amd64-none-amd64 or fakeroot make -f debian/rules.gen setup-i386-none-686 for 32b kernels. Now we need a Xen patch to apply to our Debian tree. In a seperate directory run: # hg clone -r3.1.3-rc1-devel http://xenbits.xensource.com/xen-3.1-testing.hg or for the most recent/tip: hg clone http://xenbits.xensource.com/xen-3.1-testing.hg cd xen-3.1-testing.hg make linux-2.6-xen.patch cd path/to/linux-2.6-2.6.18.dfsg.1/debian/build/build-amd64-none-amd64 or cd path/to/linux-2.6-2.6.18.dfsg.1/debian/build/build-i386-none-686 run patch -p1 --dry-run < path/to/xen-3.1-testing.hg/linux-2.6-xen.patch This succeeds here with 2 rejects due to a patch already being in the Debian tree if you use the 3.1.3-rc1-devel tag, however with cs:15620 this no longer occurs as the Xen sparse linux tree is now based on 2.6.18.8 Once you are happy run again without the --dry-run Check to make sure there are not any extra rejects than just in net/core/skbuff.c apply any additional patches for instance: http://bugs.debian.org/cgi-bin/bugreport.cgi?msg=54;filename=patch;att=1;bug=464945 for http://bugs.debian.org/464945 make menuconfig or otherwise provide a .config file. Then build the kernel make-kpkg --rootcmd fakeroot clean make-kpkg --rootcmd fakeroot kernel_image --revision=whatever You should now have a kernel deb in ../ Next part building unpackaged xen-3.1 tools and hypervisor. then make -C tools make -C xen # check output sudo make -C xen install sudo make -C tools install oh and after installing Xen tools you'll want to : update-rc.d xend defaults 20 # we start after xend and close before update-rc.d xendomains defaults 21 19 For now i am using just building and installing from the Xen source. I have modified xen-3.1-testing.hg/Makefile to remove the rm lines for /boot/*xen* and /lib/modules/*xen* [Useful References] Debian Linux Kernel Handbook - (http://kernel-handbook.alioth.debian.org/ch-common-tasks.html) Touched: $Id: howto-xen-debian-kernel-update.txt,v 1.8 2008/02/10 13:46:51 murble Exp murble $ Copyright 2007, 2008 William Boughton.