ESXi stores a virtual machine's disk files within a VMFS datastore that resides on a SAN storage device. When virtual machine guest operating systems send SCSI commands to their virtual disks, the SCSI virtualization layer translates these commands to VMFS file operations.

When a virtual machine interacts with its virtual disk stored on a SAN, the following process takes place:

  1. When the guest operating system in a virtual machine reads or writes to SCSI disk, it sends SCSI commands to the virtual disk.

  2. Device drivers in the virtual machine’s operating system communicate with the virtual SCSI controllers.

  3. The virtual SCSI controller forwards the commands to the VMkernel.

  4. The VMkernel performs the following tasks.

    1. Locates an appropriate virtual disk file in the VMFS volume.

    2. Maps the requests for the blocks on the virtual disk to blocks on the appropriate physical device.

    3. Sends the modified I/O request from the device driver in the VMkernel to the iSCSI initiator (hardware or software).

  5. If the iSCSI initiator is a hardware iSCSI adapter, both independent or dependent, the adapter performs the following tasks.

    1. Encapsulates I/O requests into iSCSI Protocol Data Units (PDUs).

    2. Encapsulates iSCSI PDUs into TCP/IP packets.

    3. Sends IP packets over Ethernet to the iSCSI storage system.

  6. If the iSCSI initiator is a software iSCSI adapter, the following takes place.

    1. The iSCSI initiator encapsulates I/O requests into iSCSI PDUs.

    2. The initiator sends iSCSI PDUs through TCP/IP connections.

    3. The VMkernel TCP/IP stack relays TCP/IP packets to a physical NIC.

    4. The physical NIC sends IP packets over Ethernet to the iSCSI storage system.

  7. Ethernet switches and routers on the network carry the request to the appropriate storage device.