Build Vanilla kernelNow we will build th PV_Ops Kernel. The Vanilla kernel source will be downloaded from Jeremy's tree. Jeremy's git tree on kernel.org contains the pv_ops dom0 patches. If we use Jeremy's tree then we do not any extra patches to bind XEN with kernel source.
- cd /usr/src/
- git clone git://git.kernel.org/pub/scm/linux/kernel/git/jeremy/xen.git
- cd xen
- make menuconfig [see Note below]
- make-kpkg clean
- fakeroot make-kpkg --initrd --append-to-version=-custom kernel_image kernel_headers
- This will make the debian packages in the parent directory which you can install
Before making the config, copy the attached file in /usr/src/xen and run "make oldconfig"
Install these debian packages using
sudo dpkg -i <name>
Edit GrubNow edit /boot/grub/menu.lst as follows:
default=0
timeout=5
title debian
root (hd0,0)
kernel /boot/vmlinuz-<filename> ro root=/dev/xvda2 console=xvc0
initrd /boot/initrd.img-<filename>
Look for the proper <filename> in /boot/
Finally, reboot! If anything goes wrong just boot in rescue mode and amend properly.