I have a virtual appliance in Xen format (XVA) that I wish run to on another hypervisor (MS Hyper-V). What have I done so far:
I have converted the XVA to OVF using XenConvert, this resulted in a vhd file. I created a new VM and attached the vhd to it.
The VM fails to boot, I think this happens because it runs a xen dom0 kernel. This is the error:
I think I need to replace the xen kernel with a non xen kernel. Can I simply download a pre-compiled kernel (where?), boot with live cd, place it on disk and change grub.conf?
EDIT:
Trying Doug O'Neal's answer, I needed to install lvm2 (apt-get install lvm2) and mount VolGroup00. After that I installed the kernel with yum and copied it over to the boot partition. I edited grub.conf and tried to boot. System hangs after booting kernel. Any suggestions?
EDIT2:
changed grub to use tty0 as console (was xvc0), now getting a little further, will troubleshoot that first. EDIT3:
I have changed several references to XEN ad per @Nils answer. It is still needed to replace the kernel and I think this is currently my problem: When I run yum install kernel I am observing the following error:
error opening /sys/block: No such file or directory error opening /sys/block: No such file or directory WARNING: No module xenblk found for kernel 2.6.18-348.18.1.el5
I found that error in the CentOS bug tracker: http://bugs.centos.org/view.php?id=2083 as suggested in there I tried: mkinitrd -v --with=xenblk --omit-scsi-modules --omit-raid-modules /boot/initrd-2.6.18-348.18.1.el5.img 2.6.18-348.18.1.el5 but that fails with:
No module xenblk found for kernel 2.6.18-348.18.1.el5, aborting
quiet
from kernel command line to get more information.