I am doing some testing to convert some KVM machines ( Debian 9 ) and I receive the following error when the final stages are reached.
FAILED: An error occurred during the conversion: 'GrubInstaller::InstallGrub: /usr/lib/vmware-converter/installGrub.sh failed with return code: 127, and message: FATAL: kernel too old Error running vmware-updateGrub.sh through chroot into /mnt/p2v-src-root Command:
chroot "/mnt/p2v-src-root" /vmware-updateGrub.sh
It is surprising that the error related to 'kernel too old' as it is a latest kernel on Debian 9.
I am running the latest VMware Convert 6.2.0 on Windows.
Destination machine - vSphere 6.7 U1
I note from research that older versions of VMware Converter uses GRUB1 and GRUB2 is needed however this seems only applicable to older version of VMware Converter.
The source machine is NOT using LVM and has one partition located in /
Any advice would be appreciated.
Debian 9 is not supported by Converter, so it is expected to fail.
A few notes on the article mentioned:
- it describes a way to do manual reconfig, which is basically correct.
- it omits to mention that you should also call mkinitramfs after grub2-install. You should ensure that the new inirtd image supports disk and network controllers suitable for VMware virtual hardware.
- it recommends altering fstab by replacing with the new volume UUID. This is also fine, though Converter uses block device mounts.
- it blames grub version. In that case Converter recognizes the correct grub version but fails to install grub due to the source machine having kernel 4.19 (Converter helper has a kernel that is too old for that).
In addition you may also use these posts as reference for manual reconfig:
Re: Conversion fails with the error:FAILED: An error occurred during the conversion:'root is not fou...
Thank you for the advice and guides. Still working through it and now you have provided more details which were excluded in the guide it may finally work. Ill let you know once I try your tips.