I have a RedHat Enterprise 4 virtual machine running in VMWare Player 3.0.1 (and other Versions) on Windows XP Professional 2002 SP3.
We run them in a lab for our students. These VMs tend to hang during boot when there is "GRUB _" on the screen. There is no prompt and no chance to enter anything.
I have backups of the VMs so this is not the problem. But getting back to a running version takes about one our (several GBs) which is very anoying for the students.
This is what I have tried so far:
1. Booted the VM with a life image of Linux (KNOPPIX)
Therefore inserted the following stuff into the vmx file before boot:
ide0:1.present = "TRUE"
ide0:1.fileName = "YOURHARDDRIVE:PATHTOLIFEIMAGE\KNOPPIX_V6.2.1DVD-2010-01-31-EN.iso"
ide0:1.deviceType = "cdrom-image"
2. Opened a root terminal (not the normal LXterminal)
3. Unmounted the yet mounted partion:
4. Created a new directory that fits my taste better and mounted the partition to it:
mount /dev/sda1 /rescue
5. Included system information:
mount -o bind /dev /rescue/dev
6. Same for proc:
mount -t proc /proc /rescue/proc
7. Switched to corrupted system:
chroot /rescue /bin/bash
8. Reinstalled grub:
Got error: "/dev/sda does not have any corresponding BIOS drive"
9. Tried to recheck:
grub-install --recheck /dev/sda
Got error: /dev/h
da1: Not found or not a block device
10. Tried to copy mounts:
cp /proc/mounts /etc/mtab
11. Did recheck of step 9 again
Got error: Could not find device for /boot: Not found or not a block device
But I can do ls on /boot. I have a grub folder inside with this menu-lst (hand-copied):
title Red Hat Enterprise Linux WS (2.6.9-89.ELsmp)
kernel /boot/vmlinuz-2.6..9-89.ELsmp ro root=LABEL=/ rhgb quiet
title Red Hat Enterprise Linux WS (2.6.9-89.EL)
kernel /boot/vmlinuz-2.6..9-89.EL ro root=LABEL=/ rhgb quiet
Any more ideas how I can get the VM back to run?