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:
Code:
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:
Code:
mkdir /rescue
mount /dev/sda1 /rescue
5. Included system information:
Code:
mount -o bind /dev /rescue/dev
6. Same for proc:
Code:
mount -t proc /proc /rescue/proc
7. Switched to corrupted system:
Code:
chroot /rescue /bin/bash
8. Reinstalled grub:
Code:
grub-install /dev/sda
Got error: "/dev/sda does not have any corresponding BIOS drive"
9. Tried to recheck:
Code:
grub-install --recheck /dev/sda
Got error: /dev/
hda1: Not found or not a block device
10. Tried to copy mounts:
Code:
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):
Code:
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux WS (2.6.9-89.ELsmp)
root (hd0,0)
kernel /boot/vmlinuz-2.6..9-89.ELsmp ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-89.ELsmp.img
title Red Hat Enterprise Linux WS (2.6.9-89.EL)
root (hd0,0)
kernel /boot/vmlinuz-2.6..9-89.EL ro root=LABEL=/ rhgb quiet
initrd /boot/initrd-2.6.9-89.EL.img
Any more ideas how I can get the VM back to run?