Tag: ESXi

Preboot DMA vulnerability – CVE-2023-5410

DMA is direct memory access, used by lot of peripherals to transfer to and fro data without CPU involvement. Recent servers and consumer products increased the security of DMA. Recent OS enables secure DMA transfer. A potential security vulnerability has been reported in the system BIOS , which might allow memory tampering when the BIOS is in POST. Recent BIOS provide an option to disable Preboot DMA in their setup to allow older peripherals which has older firmware to service and not secure DMA capable. CVE ID is CVE-2023-5410.

Applying the firmware patches and enabling the preboot DMA security is much relevant in server and consumer products for the below reasons.

  1. This can be part of a NIST compliance in future products. Certain customer segments may not buy a product if it is not NIST compliant to the latest NIST version. e.g:- Government and finance organizations.
  2. Operating systems like Windows and Linux may add dependency on preboot DMA security as a prerequisite for enabling DMA security. Right now no valid way to relate between the Preboot and OS DMA security. Future it can be a requirement in operating systems installation and use.

Source: NVD – CVE-2023-5410

Source: HP PC BIOS Pre-boot DMA Protection Security Update

Configuration Examples and Troubleshooting for VMDirectPath

VMDirectPath allows guest operating systems to directly access an I/O device, bypassing the virtualization layer. This direct path, or passthrough can improve performance for VMware ESX™ systems that utilize
high‐speed I/O devices, such as 10 Gigabit Ethernet. The below documentation allows to configure and troubleshoot the VMDirectPath.

Source: Configuration Examples and Troubleshooting for VMDirectPath

How to check the disk performance using dd

dd command should be available in ESXi as well as all Linux versions. If you face any issues with your application and wants to know the disk performance is deteriorated, you can quickly use the dd command to check the write/read performance of the disk. The disk used can be even a datastore or a network device also. You can cross check with another system or disk where you don’t see any performance issues to compare the results to know if there is any issues with the disk.

Below is the example to run in a VMWare ESXi volume.

/vmfs/volumes/54a55c07-9face633-0999-002590fc98c8 # time dd if=/dev/zero of=test bs=1M count=1024

1024+0 records in 1024+0 records out

real 2m 7.62s user 0m 4.69s sys 0m 0.00s

= ( 1024/127 = 8 MB/s !!! )

In the above example you are trying to write a 1GB file and you are using time command to find out the speed at which the write happened.

Source: Horrible disk performance under ESXi | [H]ard|Forum

ESXTOP & Queues – VMware Technology Network VMTN

This page provides you a quick summary on what is AQLEN and DQLEN in ESXi.

AQLEN is the adaptor queue length. This should be derived from storage adaptor queue depth, which is the maximum commands which can be in the queue waiting for process.

DQLEN is the device queue length. This should be derived from storage device(usually drives) queue depth, which is the maximum commands which can be in the queue waiting for process.

 

Source: ESXTOP & Queues – VMware Technology Network VMTN