Skip to content


Convert Redhat 3.1 VMWare Server VM to VMWare ESX Server 3i using VMWare Convertor – Error loading operating system

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”.

The Fix:
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
Run:
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 “<grub>” prompt.

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:
configfile /grub/grub.conf

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.

Bookmark and Share

Posted in IT Tips, Linux Tools.

Tagged with .


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.