I just attempted to convert a Redhat 3.1 VMWare Server 1.04 VMImage using VMWare Convertor 3.03 to VMWare ESX Server 3i v 3.5. The VMWare Convertor conversion completed successfully and loaded the VM to the ESX Server however when I booted the VM on the ESX Server I got “Error loading operating system”.
Boot the VM on the ESX Server with a Knoppix CD.
Find the boot partition of the RH3.1 Image and mount it. To do this do a
fdisk -l and look for the partition with the bootable flag set:
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
Mount the boot partition:
mount /dev/sda1 /media/sda1
grub-install --root-directory=/media/sda1 /dev/sda
Remove the Knoppix CD and boot the VM as normal.
Now when you reboot the VM you will get a “
Not what I was expecting at all! This is because Knoppix uses the standard style grub which looks for it’s OS boot settings in menu.lst (I think). Redhat looks for it’s grub config in /boot/grub/grub.conf the Knoppix grub can’t find it’s settings file.
The fix for this is to tell grub where the configfile is. At the “
<grub>” prompt enter:
It will now load in your familiar Redhat GRUB OS selection screen and you can boot your RH3.1 OS.
When you get back into RH and gain root just run
grub-install /dev/sda to re-install the proper Redhat style grub code.
Disclaimer: I accept no responsibility for any damage do from reading this script. It’s certainly dangerous and could toast your VM if you do it wrong.