Knowledge Base

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

Adjusting the virtual SCSI adapter type in a VMDK file

Symptoms

After converting a physical or virtual machine using VMware Converter, you experience these symptoms:

  • You are unable to boot the virtual machine
  • Windows boots to a blue screen error
  • You see one or more of these errors:
    • STOP 0x7B INACCESSIBLE_BOOT_DEVICE
    • STOP 0x0000007B INACCESSIBLE_BOOT_DEVICE
    • Mount: error No such device or address mounting /dev/root on /sysroot as ext3
      Setuproot: moving /dev failed: No such file or directory
      Setuproot: error mounting /proc: No such file or directory
      Setuproot: error mounting /sys: No such file or directory
      Switchroot: mount failed: No such file or directory
      Kernel panic – not syncing: Attempted to kill init!
    • A disk read error occurred

Purpose

This article provides steps to modify the virtual disk adapter type to match the guest operating system.

Cause

This issue may occur if the SCSI controller is misidentified or if you have not chose the appropriate driver while creating the virtual machine. 

Resolution

To correct the adapter type after the conversion or creation of a virtual machine, you can use the GUI or the command line.

GUI

To correct the adapter type after the conversion or creation of a virtual machine using the GUI, see   Changing the virtual SCSI controller of a virtual machine (1002149)
.

Command line 

To correct the adapter type after the conversion or creation of a virtual machine using the command line:

  1. Power off the virtual machine that is using the virtual hard disk file (VMDK).
  2. If the virtual machine is located on an ESX/ESXi host, use the service console to access the file. For more information on accessing the service console, see:
  3. Locate the smallest VMDK file (about 340 bytes), which will typically be in a folder labeled /vmfs/volumes/<volume id>/<virtual machine name> on an ESX/ESXi host. If not accessing a host, locate the file on your local drive.
  4. Once the virtual machine is located, open the .vmdk file using a text editor or vi (nameofvm).vmdk command. 

    The file appears similar to:

    # Disk DescriptorFile
    version=1
    CID=<cid>
    parentCID=ffffffff
    createType="<create_type>"
     
    # Extent description
    RW <num_sectors> <TYPE> "<filename>"
     
    # The Disk Data Base
    #DDB
     
    ddb.virtualHWVersion = "<version>"
    ddb.geometry.cylinders = "<cylinders>"
    ddb.geometry.heads = "<heads>"
    ddb.geometry.sectors = "<sectors>"
    ddb.adapterType = "<adapter_type>"

  5. Locate the line ddb.adapterType.
  6. Specify one of these parameters: lsilogic or buslogic

    The following table shows the adapter type for the guest operating system:

    Guest Operating System
    Adapter Type
    Windows 2003, 2008, Vista
    lsilogic
    Windows NT, 2000, XP
    buslogic
    Linux
    lsilogic

  7. Save the changes to the .vmdk file.
  8. Power on the virtual machine. If you are prompted to change the adapter type assigned to the virtual machine, allow the changes.

For information on changing the SCSI controller using the GUI option, see Change the virtual SCSI controller of a virtual machine (1002149).

Additional Information

Tags

boot-vm cannot-boot-vm virtual-disks

Update History

04/27/2011 - Clarified how access the VMDK on an ESX/ESXi host. Added additional explanation of why this occurs. 01/04/2012 - Added link to GUI instructions

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


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)
Actions