Encrypted vMotion fails with "Out of memory" when QAT is enabled
search cancel

Encrypted vMotion fails with "Out of memory" when QAT is enabled

book

Article ID: 462311

calendar_today

Updated On:

Products

VMware vSphere ESXi VMware Cloud Foundation

Issue/Introduction

  • Encrypted vMotion migrations fail with an "Out of memory" error. This issue specifically occurs on hosts where Intel QuickAssist Technology (QAT) is enabled for cryptographic offload.
  • The vmkernel.log on both source and target hosts shows successful initialization of QAT virtual functions (VFs), followed by a sudden connection failure:
  • /var/log/vmkernel.log on the source ESXi host:
    YYYY-MM-DDTHH:MM:SS.MSZ -INFO vmkernel - MigrateDevOffload: 1486: ... Migration using 5 QAT VFs for crypto offload YYYY-MM-DDTHH:MM:SS.MSZ -INFO vmkernel - VMotionEncryption: 504: ... DAS Crypto AEAD session handle created successfully. Crypto workload will be offloaded. YYYY-MM-DDTHH:MM:SS.MSZ -WARNING vmkwarning - VMotionUtil: 901: ... failed to read stream keepalive: Connection closed by remote host, possibly due to timeout YYYY-MM-DDTHH:MM:SS.MSZ -INFO vmkernel - Migrate: 100: ... MigrateState: Failed

     

  • /var/log/vmkernel.log on the target ESXi host: 

    YYYY-MM-DDTHH:MM:SS.MSZ -INFO vmkernel - [esx@####] cpu60:3604925)NetDVS: 7323: restore checkpoints to shadows successful
    YYYY-MM-DDTHH:MM:SS.MSZ -WARNING vmkwarning - [esx@####] cpu0:2102717) Migrate: 10869: ################### D: Failed to allocate 16 MPNs: Out of memory
    YYYY-MM-DDTHH:MM:SS.MSZ -WARNING vmkwarning - [esx@####] cpu0:2102717) VMotionUtil: 6131: ################### D: failed to initialize stream socket: Out of memory
    YYYY-MM-DDTHH:MM:SS.MSZ -INFO vmkernel - [esx@####] cpu0:2102717)VMotionServer: 408: Error reading from pending connection: Out of memory
    YYYY-MM-DDTHH:MM:SS.MSZ -INFO vmkernel - [esx@####] cpu0:2102717)MigrateNet: vm 2102717: 3426: Accepted connection from <::####:##.###.##.##>:57698
    YYYY-MM-DDTHH:MM:SS.MSZ -INFO vmkernel - [esx@####] cpu0:2102717)MigrateNet: vm 2102717: 3514: dataSocket 0x431fd026b950 receive buffer size is 845586
    YYYY-MM-DDTHH:MM:SS.MSZ -INFO vmkernel - [esx@####] cpu0:2102717)VMotionServer: 311: Remote machine is ESX 6.5 or newer.
    YYYY-MM-DDTHH:MM:SS.MSZ -INFO vmkernel - [esx@####] cpu0:2102717)VMotion: 3626: ################### D: <::####:##.###.##.##>:57698 -> <::####:##.###.##.#>:8000 : netInfo=0x4678c0001db0 socket=0x431fd026b950 netstack=0x431fcfbf3d80(vmotion)
    YYYY-MM-DDTHH:MM:SS.MSZ -WARNING vmkwarning - [esx@####] cpu1:2102717) Migrate: 10869: ################### D: Failed to allocate 16 MPNs: Out of memory
    YYYY-MM-DDTHH:MM:SS.MSZ -WARNING vmkwarning - [esx@####] cpu1:2102717) VMotionUtil: 6131: ################### D: failed to initialize stream socket: Out of memory
    YYYY-MM-DDTHH:MM:SS.MSZ -INFO vmkernel - [esx@####] cpu1:2102717)VMotionServer: 408: Error reading from pending connection: Out of memory

Environment

VMware Cloud Foundation 9.1 
VMware ESXi 9.1.x

Cause

  • QAT-offloaded encrypted vMotion needs physically contiguous memory on the destination host. If DRAM is fragmented, the allocation fails and the destination reports 'Out of memory', even when the host shows free memory.

Resolution

This issue is scheduled to be addressed in a future release of 9.1.x

Workaround:

QAT offload can be disabled on its own with this host setting. Encryption stays on and uses the CPU path. No reboot or maintenance mode is needed. Set it on both the source and destination hosts.

This command will make changes to your system. 

esxcli system settings advanced set -o /Migrate/VMotionEncryptionOffload -i 0

Verify that the changes have taken effect.

esxcli system settings advanced list -o /Migrate/VMotionEncryptionOffload