Requirement: migrate an ubuntu instance on xenserver5.6 to ESXi 4.1.0.
First, deploy a vmware vcenter converter standalone. The specific steps are omitted. An error occurs at 99%: The target virtual machine cannot be reconfigured.
Check the log and find the following sentence:
(Converter. fault. CloneFault ){
DynamicType = <unset>,
FaultCause = (vmodl. MethodFault) null,
Description = "GrubInstaller: InstallGrub:/usr/lib/vmware-converter/installGrub. sh failed with return code: 127, and message:
Vmware-updateGrub.sh: 38: grub: not found
Error running GRUB
Error running vmware-updateGrub.sh through chroot into/mnt/p2v-src-root
", Msg = "",}
We guess it should be grub. ubuntu and centos have different boot kernel methods.
Confirmed: finding a new centos is a smooth task. It indicates that the convert fails due to a ubuntu boot program problem.
However, after convert is completed, centos cannot be started,
Booting 'centos (2.6.18-92.1.10.el5.xs5.0.0.39xen )'
Root (hd0, 0)
Filesystem type is ext2fs, partition type 0x83
Kernel/vmlinuz-2.6.18-92.1.10.el5.xs5.0.0.39xen ro root =/dev/VolGroup00/LogVol00 console = xvc0
Error 13: Invalid or unsupported executable format
Press any key to contine...
Think about it, because when xenserver installs centos, the Linux kernel 2.6.18-92.1.10.el5.xs5.0.0.39xen is modified, and the normal kernel is 2.6.18-164. el5. The X. xen kernel modified by xenserver cannot run on the vmkernel (vmkernel supports linux Class original kernel)
Afterwards: Check whether the kernel can be modified to start the virtual machine under the converted xenserver.
This article is from the "star happiness" blog