[CentOS-virt] Migrating from KVM to XEN - kernel panic

Mon Nov 9 19:09:42 UTC 2009
Christopher G. Stach II <cgs at ldsys.net>

----- "Christopher Hunt" <dharmachris at gmail.com> wrote:

> This brings me back to suspecting the problem is in the different file
> structures. I'm still trying to wrap my head around the other replies
> in this thread.

mkinitrd in dom0 with xenblk and xennet and use that new initrd for the guests. After you get the guests up and running, install kernel-xen in each one and switch to using pygrub. The following should handle the first part, but no warranties implied. :)

mkinitrd --with=xenblk --with=xennet --preload=xenblk --preload=xennet /boot/initrd-2.6.18-164.6.1.el5xen-domU.img 2.6.18-164.6.1.el5xen

for i in /etc/xen/guest[0-9]*; do
  cp ${i} ${i}.bak
  sed -i '/^ramdisk/cramdisk = "/boot/initrd-2.6.18-164.6.1.el5xen-domU.img"' ${i}
done

-- 
Christopher G. Stach II