Inconsistent Windows virtual machine performance when disks are located on SAN datastores
search cancel

Inconsistent Windows virtual machine performance when disks are located on SAN datastores

book

Article ID: 326321

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Windows virtual machines may experience intermittent issues when stored on datastores presented from non-local storage. This issue may be encountered on virtual machines that use SAN, NFS or iSCSI storage.
 
These issues may include:
  • Bluescreen errors
  • Event ID: 9 messages in the Event Viewer
  • This error reported in guest operating system:

    The device, \Device\ScsiPort0, did not respond within the timeout period
     
  • Virtual machine becomes unresponsive, halts, or is inaccessible from the console


Environment

VMware ESX Server 3.0.x
VMware ESXi 3.5.x Installable
VMware vSphere ESXi 5.1
VMware vSphere ESXi 5.0
VMware vSphere ESXi 5.5
VMware ESX Server 2.5.x
VMware ESX Server 2.0.x
VMware ESXi 4.1.x Embedded
VMware ESXi 3.5.x Embedded
VMware ESX Server 3.5.x
VMware ESX 4.0.x
VMware ESX Server 2.1.x
VMware ESXi 4.0.x Installable
VMware ESX 4.1.x
VMware ESXi 4.0.x Embedded
VMware ESXi 4.1.x Installable
VMware ESX Server 1.5.x

Resolution

Windows guest operating systems that are using virtual disks on non-local datastores might experience unexpected blue screens.

This issue occurs when the responses from the storage array take longer than the guest operating system expects to wait. The default disk timeout period in Windows is too short to handle the longer delays that can occur in a SAN, NFS, or iSCSI environment, and a blue screen error is the result of exceeding this timeout.

To resolve this issue, increase the disk timeout to 60 seconds in the Windows virtual machines by editing the Windows registry.
 
Note: This solution is applicable only to versions before 3.0.2. VMware Tools installations after this automatically modifies this value.
 
To increase the disk timeout value:
  1. In the registry, go to HKEY_LOCAL_MACHINE/System/CurrentControlSet/Services/Disk.
  2. Right-click and select Edit/Add value.
  3. Set the value name to TimeOutValue.
  4. Set the data type to REG_DWORD.
  5. Set the data to 0x03chex (or60decimal).
  6. Reboot the virtual machine.

Note:

  • Contact your Storage vendor to confirm whether a specific TimeOutValue setting is identified for your particular environment.
  • Increasing this disk timeout setting does not affect the performance of the guest operating system or virtual machine under normal operating conditions, but you must verify how the applications you are running in the guest operating system handle disk access delays.
  • To accommodate transient events, VMware Tools increases the SCSI disk timeout to 60 seconds.

Additional Information

For translated versions of this article, see: