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

Sat Nov 7 22:24:49 UTC 2009
Pasi Kärkkäinen <pasik at iki.fi>

On Fri, Nov 06, 2009 at 11:49:41AM -0800, Christopher Hunt wrote:
>    First let me say that I'm not a sysadmin, but am simply wearing that hat
>    this week so please excuse my ignorance.  I need to temporarily move some
>    virtual servers from a CentOS-KVM platform to a CentOS-XEN platform while
>    I do some upgrades to the CentOS box.  I've created a local LV, and used
>    DD and SCP to transfer the block device from the VKM machine to the XEN
>    machine.  For quite a while I struggled with the "Error: (2, 'Invalid
>    kernel', 'xc_dom_parse_elf_kernel: ELF image has no shstrtab\n')" error
>    but thanks to Nick Couchman from
>    [1]http://lists.xensource.com/archives/html/xen-users/2008-03/msg00603.html,
>    I've passed that.  Now I'm stuck with a kernel panic situation.
>    Unfortunately the kernel panic error doesn't appear using "xm console" and
>    flashes so quickly through "virt-viewer" that I can't get any details.  
>

Stop the guest and edit /etc/xen/<guest> cfgfile.

Remove (or comment out) the vfb line, and then restart the guest.

Now you get the full console output to "xm console".

-- Pasi