error no kernel found
-
Hello,
I'm trying to migrate vm from an old linux xen server 4.4 to a new server and use the xen2xcp (https://github.com/xcp-ng/xen2xcp) script provided for that. I've also copied the vmlinuz and initrd into /boot/gest.
But when I start the vm, it refuses with the error :xcp-ngFailed: Internal error: xenopsd internal error: VM = 6813d025-efa3-e52a-6069-d6defaba14f7; domid = 2; Bootloader.Bad_error No kernel found in
So I guess the vm don't recognize the kernel and ram disk but why ? and how to fix it ?
-
Hello,
You can try to convert the offending VM to HVM mode to avoid having to use PV boot (which is not really supported anymore in XCP-ng 8.3).
-
@TeddyAstie thx a lot,
apart from installing grub on the disk, is there anything else to do ? -
No, as long as you have Grub installed and the right boot sector configured, that's it
-
-
Enable the "boot flag" option in the table
-
-
@raxa04
What's at the top of the Advanced tab for this VM? -
-
@raxa04
You should follow @TeddyAstie's recommendation. To do that, click on "Convert to HVM". -
welp,
I converted the vm to hvm, manage to install grub by copping the migrated disk into another disk with a partition table, then install grub2 by mount it then chroot into it.
When I boot in hvm I land into the bios with no bootable device,
When I convert the vm back to pv I get the errorINTERNAL_ERROR(xenopsd internal error: Domain.Domain_build_pre_failed("Calling 'shadow_allocation_set 51 MiB' failed: Xenctrl.Error(\"22: Invalid argument\")"))
so I'm back to square one
-