VMware ESX Disable VAAI
To disable VAAI in ESXi/ESX, you must modify these advanced configuration settings:
- HardwareAcceleratedMove
- HardwareAcceleratedInit
- HardwareAcceleratedLocking
You can modify these settings using the vSphere Client, vSphere CLI, or a console connection to the ESXi/ESX host.
Disabling VAAI using the vSphere Client
To disable VAAI using the vSphere Client:
- Open the VMware vSphere Client.
- In the Inventory pane, select the ESXi/ESX host.
- Click the Configuration tab.
- Under Software, click Advanced Settings.
- Click DataMover.
- Change the
DataMover.HardwareAcceleratedMove
setting to0
. - Change the
DataMover.HardwareAcceleratedInit
setting to0
. - Click VMFS3.
- Change the
VMFS3.HardwareAcceleratedLocking
setting to0
. - Click OK to save your changes.
- Repeat this process for the all ESXi/ESX hosts connected to the storage.
Disabling VAAI using vSphere CLI or PowerCLI
To disable VAAI using the vSphere CLI:
Note: Ensure that the vSphere CLI (vCLI) is installed and is able to connect to the ESXi/ESX hosts. For more information, see thevSphere Command-Line Interface Installation and Scripting Guide.
- Run these
vicfg-advcfg
commands to change the three settings:vicfg-advcfg connection_options -s 0 /DataMover/HardwareAcceleratedMove
vicfg-advcfg connection_options -s 0 /DataMover/HardwareAcceleratedInit
vicfg-advcfg connection_options -s 0 /VMFS3/HardwareAcceleratedLockingNote: For more information and examples on using vCLI connection options, see the Common Options for vCLI Executionsection of the vSphere Command-Line Interface Installation and Scripting Guide.
- Repeat this process for all the ESXi/ESX hosts connected to the storage as no reboot is required. For a production environment, ensure that you plan accordingly.
To disable VAAI using the PowerCLI:
Run the command:
Set-VMHostAdvancedConfiguration -VMHost Hostname -Name OptionName -Value 0
Where OptionName
is one of:
- DataMover.HardwareAcceleratedMove
- DataMover.HardwareAcceleratedInit
- VMFS3.HardwareAcceleratedLocking
For example:
Set-VMHostAdvancedConfiguration -VMHost (Get-VMHost ($Hosts.SelectedItem)) -Name DataMover.HardwareAcceleratedMove -Value 0
Set-VMHostAdvancedConfiguration -VMHost (Get-VMHost ($Hosts.SelectedItem)) -Name DataMover.HardwareAcceleratedInit -Value 0
Set-VMHostAdvancedConfiguration -VMHost (Get-VMHost ($Hosts.SelectedItem)) -Name VMFS3.HardwareAcceleratedLocking -Value 0
Disabling VAAI using an ESXi/ESX console connection
To disable VAAI using an ESXi/ESX console connection:
- Open a console to the ESXi/ESX host. For more information, see:
- Unable to connect to an ESX host using Secure Shell (SSH) (1003807)
- Using Tech Support Mode in ESXi 4.1 and ESXi 5.x (1017910)
- Using ESXi Shell in ESXi 5.x (2004746)
- Disabling the VAAI Thin Provisioning UNMAP in ESXi 5.x (KB 2007427)
Note: ESXi 5.0 issues UNMAP commands for Space Reclamation in critical regions during several operations with the expectation that the operation would complete quickly. Due to varied response times from the storage devices, UNMAP command can result in poor performance of the system and should be disabled on the ESXi 5.0 host. For more information refer
- Log in as root.
- On ESXi/ESX 4.1 hosts, run these
esxcfg-advcfg
commands to change the three settings:# esxcfg-advcfg -s 0 /DataMover/HardwareAcceleratedMove
# esxcfg-advcfg -s 0 /DataMover/HardwareAcceleratedInit
# esxcfg-advcfg -s 0 /VMFS3/HardwareAcceleratedLocking
On ESXi 5.x hosts, run these
esxcli
commands to change the three settings:# esxcli system settings advanced set --int-value 0 --option /DataMover/HardwareAcceleratedMove
# esxcli system settings advanced set --int-value 0 --option /DataMover/HardwareAcceleratedInit
# esxcli system settings advanced set --int-value 0 --option /VMFS3/HardwareAcceleratedLocking
- Repeat this process for all the ESXi/ESX hosts connected to the storage.
Note: The changes will be active after running the above commands; a reboot of the host is not required.
- If you must disable VAAI for a specific storage type, use the
esxcli
command to delete the existing hardware acceleration claim rules as documented on pages 176-177 of the vSphere 5 Storage guide.
Verifying the current configuration values
To check the current value of the configuration settings:
HardwareAcceleratedMove
HardwareAcceleratedInit
HardwareAcceleratedLocking
Note: Replace OptionName
with one of the configuration setting names.
- Using the vSphere CLI:
vicfg-advcfg connection_options -get OptionName
- Using the PowerCLI:
Get-VMHostAdvancedConfiguration -VMHost Hostname -Name OptionName
- Using SSH/DCUI:
# esxcfg-advcfg --get OptionName
or
# esxcli system settings advanced list --option OptionName