Knowledge Base

The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides
 
Search the VMware Knowledge Base (KB)   View by Article ID
 

ESX fails to boot when the disk containing the datastore with esxconsole.vmdk is detected as a snapshot (1012142)

Symptoms

You may encounter issues while booting an ESX 4.x machine if:
  • VMware ESX 4.x has been installed on the local disk or if it is booting from SAN
  • There was a recent change to the disk or LUN where ESX 4.x has been installed
  • There was a recent change to the controller connecting to the disk or LUN where ESX 4.x is installed
  • The ESX host is attempting to boot from a LUN that has been replicated to another SAN.
  • You see this issue in ESX hosts configured to boot from SAN and local disks
  • When the VMFS volume is modified and needs a resignature, the ESX host fails to boot
You may also see these symptoms:
  • The system does not boot and drops into Troubleshooting (busy box) mode.
  • The boot process fails.
  • You see the error:

    * vsd-mount .................................................... [Failed]

    You have entered the recovery shell. The situation you are in may be recoverable.
    If you are able to fix this situation the boot process will continue normally after you exit this terminal.
    /Bin/SH: cant access TTY job control turned off

Cause

VMware ESX 4.x uses a virtual disk to store the service console. The virtual disk is created during the installation phase on a VMFS volume residing on the boot disk or LUN. The VMFS volume containing the service console files (also referred to as the esxconsole.vmdk) may be detected as a snapshot LUN. As a result of the VMFS volume being detected as a snapshot LUN, the ESX host may be unable to access the service console files during boot.

For more information about snapshot LUNs, see VMFS Volume Can Be Erroneously Recognized as a Snapshot (6482648) and Snapshot LUN detection in ESX 3.x and ESX 4.x (1011385).

Note: This article assumes that the disk, LUN, and storage controller are functioning properly. If you are having issues with local storage such as boot LUN presentation issues or a failed storage RAID, these issues must be identified before implementing the resolution provided in this article. Depending on the type of issue, you may need to engage the appropriate storage vendors for assistance.

Resolution

If the ESX host has detected the VMFS volume containing the esxconsole.vmdk file as a snapshot LUN, the ESX host drops into Troubleshooting (busy box) mode during boot.

Note: Depending on the installation type (for example, interactive mode or scripted mode), the service console files may be named differently. To verify the name of the service console file (esxconsole.vmdk, default-cos.vmdk, etc), run this command on the ESX command line:

# grep -i cosvmdk /etc/vmware/esx.conf

This procedure uses esxconsole.vmdk. Replace with the name of your service console file as necessary.

To allow your ESX host to boot successfully:

  1. Provide the necessary credentials to access the busy box.
  2. Run this command to enable automatic resignaturing of datastores on the host:

    # esxcfg-advcfg -s 1 /LVM/EnableResignature

    You must get output similar to:

    Value of EnableResignature is 1 .

    Note: If the root is mounted as read-only, run the mount -o remount / command to remount the volumes so that they are in a writable state.

  3. Run this command to unload the VMFS drivers:

    # vmkload_mod -u vmfs3

  4. Run this command to load the VMFS drivers:

    # vmkload_mod vmfs3

  5. Run this command to detect new VMFS volumes and resignature the volume:

    # vmkfstools -V

  6. Disable resignaturing on the host again (change its value back to 0):

    # esxcfg-advcfg -s 0 /LVM/EnableResignature

  7. Run this command to identify the full path of the service console file:

    # find /vmfs/volumes/ -name esxconsole.vmdk

    The output appears similar to:

    /vmfs/volumes/4a14d968-88bf7161-700f-00145ef48f76/esxconsole-4a14d906-2f96-7956-7284-00145ef48f74/esxconsole.vmdk

    Notes:
    • The esxconsole.vmdk descriptor file is missing if no output is returned. To recreate the esxconsole.vmdk descriptor file, see Recreating a missing virtual machine disk (VMDK) descriptor file (1002511) and follow the steps to recreate the descriptor file, then continue with the steps above.
    • Make a note of this full path. After noting down the path information, you may skip step 7 and proceed with rebooting the ESX host.

  8. Restart the VMware ESX machine. You see a menu provided by the grub boot loader.
  9. Press e to edit the grub entries manually.
  10. Scroll down to the line that starts with kernel /vmlinuz (it is indented under the VMware ESX 4.0 heading).
  11. Press e (Edit key), go to the end of the line, and add a space followed by the option, all in one line, specifying the full path from step 7:

    /boot/cosvmdk=/vmfs/volumes/path/esxconsole.vmdk

  12. Press Enter to accept the changes.
  13. Press b to boot using the modified settings. The ESX host successfully boots.

    Note: The changes made to the boot options are not saved. They only apply to the current boot process. The changes need to be made to the boot configuration files as described in these steps:

    1. Log into the console as root.
    2. Edit the /etc/vmware/esx.conf file with a text editor and modify two lines, specifying the full path from step 7:

      /adv/Misc/CosCorefile = "/vmfs/volumes/path/core-dumps/cos-core"
      /boot/cosvmdk = "/vmfs/volumes/path/esxconsole.vmdk"


    3. Run this command to update the boot configuration files:

      # esxcfg-boot -b

Additional Information

For more information regarding the grub boot loader, see the Grub's User Interface section of the Grub documentation.

Note:The preceding link was correct as of December 11, 2012. If you find the link is broken, provide feedback and a VMware employee will update the link.

For more information about snapshot LUNs, see VMFS Volume Can Be Erroneously Recognized as a Snapshot (6482648) and Snapshot LUN detection in ESX 3.x and ESX 4.x (1011385).

For more information about troubleshooting the esxconsole.vmdk file, see ESX host boot stops at the error: VSD mount/Bin/SH:cant access TTY job control turned off (1012874).

Tags

esx-does-not-boot esx-host-boot-fails

See Also

This Article Replaces

1026344

Update History

03/01/2012 - Added additional symptoms 12/07/2012 - Updated Step 11 for edit key and step 7 for recreating descriptor file.

Request a Product Feature

To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.

Feedback

  • 58 Ratings

Did this article help you?
This article resolved my issue.
This article did not resolve my issue.
This article helped but additional information was required to resolve my issue.
What can we do to improve this information? (4000 or fewer characters)
  • 58 Ratings
Actions
KB: