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:

  1. Open the VMware vSphere Client.
  2. In the Inventory pane, select the ESXi/ESX host.
  3. Click the Configuration tab.
  4. Under Software, click Advanced Settings.
  5. Click DataMover.
  6. Change the DataMover.HardwareAcceleratedMove setting to 0.
  7. Change the DataMover.HardwareAcceleratedInit setting to 0.
  8. Click VMFS3.
  9. Change the VMFS3.HardwareAcceleratedLocking setting to 0.
  10. Click OK to save your changes.
  11. 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.

  1. 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/HardwareAcceleratedLocking

    Note: 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.
     

  2. 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:
 

  1. Open a console to the ESXi/ESX host. For more information, see: 
     

  2. Log in as root.
     
  3. 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
     

  4. 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.
     

  5. 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

Read more

How to migrate Raspberry Pi 5 OS from micro SD to NVME m.2 SSD

首先我買了Raspberry Pi CM5後來買了Raspberry Pi CM5 I/O board來當個人電腦使用,系統是安裝在256GB SD卡上運行的很好。用久了在開啟較肥的程式像Web Browser或LiberOffice會有慢半拍的反應,而有了升級NVME m.2 SSD念頭。 因為Raspberry Pi 5支援的最快PCIe gen3 x 4就不去考慮快的Gen4 or Gen5 m.2 SSD。找了ADATA出的 LEGEND 710入門級的產品,會利用HMB(Host Memory Buffer)來加速I/O速度,因為是Raspberry Pi OS kernel會認不得而無法正常使用 事先在SD卡的/boot/firmware/cmdline.txt 加入 kernel command line參數如下,然後重開機m.

By Phillips Hsieh

How to document Home Lab and Network

運維機房和跨域的網路,會遇到各式需求與問題,用對工具才能分析問題,個人覺得最重要的是使用能處理問題的工具。 推薦目前想學和正在使用的平台與軟體,協助將公司/家用機房文件化 佈告欄任務管理 Focalboard 白板可管理任務指派 網路架構文件編寫 netbox 精細管理網路設備與連接線路 IP 資源管理 phpipam 專注網路IP分配 邏輯塊文件編寫 draw.io 視覺化概念圖 機房設備管理 ITDB 管理設備生命週期與使用者

By Phillips Hsieh

如何在Raspberry Pi4上安裝Proxmox for ARM64

第一步 準備好Raspberry Pi 4 / CM4 4GB RAM,這裡要留意CM4如果是買有內建eMMC storage會限制不能使用SD卡開機而限制本地空間容量,如果沒有NAS外接空間或使用USB開機的話,建議買CM4 Lite插上大容量SD卡 第二步 去Armbian官網下載最小化Debian bookworm image https://www.armbian.com/rpi4b/ Armbian 25.2.2 Bookworm Minimal / IOT 然後寫入SD/USB開機碟,寫入方法參考官方文件 https://github.com/raspberrypi/usbboot/blob/master/Readme.md Note: 官方提供的預先設定系統方法,可以在Armbian初次啟動自動化完成系統設定。連結在此 https://docs.armbian.com/User-Guide_Autoconfig/

By Phillips Hsieh