Using pygrub to boot a domU kernel

Using pygrub, each domU can boot with its own kernel instead of using the dom0 kernel, which lifes easier for updates and multi distribution xen installs. You need to have first a working domU.

On the domU

aptitude install linux-image-2.6-xen-amd64 grub

mkdir /boot/grub
echo "(hd0) /dev/sda" > /boot/grub/device.map
mknod /dev/sda b 202 0


/!\ Edit conflict - other version:



/!\ Edit conflict - your version:



/!\ End of edit conflict


update-grub


/!\ Edit conflict - other version:


After editing this file, you need to re-run update-grub to propagate the changes.

sed -i -e 's/^# groot=(hd0)/# groot=(hd0,1)/' /boot/grub/menu.lst
update-grub


/!\ Edit conflict - your version:


After editing this file, you need to re-run update-grub to propagate the changes.

sed -i -e 's/^# groot=(hd0)/# groot=(hd0,1)/' \
/boot/grub/menu.lst

update-grub


/!\ End of edit conflict


On the dom0

bootloader      = '/usr/lib/xen-3.2-1/bin/pygrub'