Author Topic: [DEBIAN] Compile your own DomU kernel  (Read 2793 times)

Whitenoise

  • Administrator
  • Full Member
  • *****
  • Posts: 149
    • View Profile
[DEBIAN] Compile your own DomU kernel
« on: January 18, 2010, 12:16:56 pm »
Build Vanilla kernel

Now 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 Grub

Now 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.
« Last Edit: January 19, 2010, 12:13:45 pm by Whitenoise »