Powering on the Linux virtual machine fails and displays GRUB _ in the screen
search cancel

Powering on the Linux virtual machine fails and displays GRUB _ in the screen

book

Article ID: 302585

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
  • Cannot power on the Linux virtual machine
  • Powering on the Linux virtual machine fails
  • The boot process fails and the only visible information on the screen is:

    GRUB _


Environment

VMware ESXi 4.1.x Installable
VMware ESX 4.0.x
VMware ESXi 4.0.x Installable
VMware ESX Server 3.5.x
VMware ESXi 3.5.x Embedded
VMware ESXi 3.5.x Installable
VMware ESX 4.1.x
VMware ESXi 4.0.x Embedded
VMware ESXi 4.1.x Embedded

Resolution

This issue occurs when the MBR of the bootable disk is damaged or altered.
To resolve this issue:
  1. Boot the virtual machine using a Linux rescue CD or Linux live CD environment. Most rescue environments automatically mount the original filesystem under /mnt/sysimage.

    Note: Some Examples of Live Linux CDs are:
    • Gentoo Live CD
    • Redhat rescue CD/DVD
    • Knoppix Live CD
    • PClinuxOS Live CD
    • Ubuntu Live CD

  2. In the bash/rescue prompt, run this command to change root to the mounted installation:

    chroot /mnt/sysimage

  3. Navigate to /boot/grub.
  4. Review the contents and ensure the grub.conf, menu.lst, stage1, stage2 files are available at this location.
  5. Run this command to identify the disk and partition that is flagged as bootable:

    fdisk -l

    Typically, this would be /dev/sda1.

  6. Run this command to reconfigure grub:

    grub-install --recheck /dev/sda

    This reinitializes grub in the MBR of disk /dev/sda.

  7. After reconfiguring grub, unmount the rescue Linux CD and restart the virtual machine. The Linux operating system should now boot successfully to the grub menu to initiate the operating system boot up.


Additional Information

This issue may also occur if you have not selected the reconfigure option when a Linux operating system is converted from physical to virtual.