Cross vCenter migration(XVMotion)fails with error: Could not complete network copy for file /vmfs/volumes/datastore_uuid/VM_Folder_VM_name.vmdk
search cancel

Cross vCenter migration(XVMotion)fails with error: Could not complete network copy for file /vmfs/volumes/datastore_uuid/VM_Folder_VM_name.vmdk

book

Article ID: 428354

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • Cross vCenter Migration (XVMotion) fails during the network copy phase with an explicit memory or timeout error.
    Could not complete network copy for file /vmfs/volumes/DataStore_UUID/VM_Folder_VM_name.vmdk 
  • We can also observe timeout errors in logs: "timed out while waiting for disk 1's queue count to drop below the maximum limit of 32768 blocks. This could indicate either network or stora..."
  • /var/log/vmware/vmkwarning.log on the ESXi host reports below errors:

YYYY-MM-DDTHH:MM:SS.845Z Wa(180) vmkwarning: cpu72:4635412)WARNING: XVMotion: 3311: ########-5c22-10fa-####-############S: timed out while waiting for disk 1's queue count to drop below the maximum limit of 32768 blocks. This could indicate either network or stora$
YYYY-MM-DDTHH:MM:SS.845Z Wa(180) vmkwarning: cpu72:4635412)WARNING: Nfc: 100: ########-5c22-10fa-####-############ S: Failed to allocate the XvMotion blocks to back scatter gather array: Timeout
YYYY-MM-DDTHH:MM:SS.845Z In(182) vmkernel: cpu72:4635412)Migrate: 101: ########-5c22-10fa-####-############ S: MigrateState: Failed
YYYY-MM-DDTHH:MM:SS.845Z Wa(180) vmkwarning: cpu72:4635412)WARNING: Migrate: 257: ########-5c22-10fa-####-############ S: Failed: Out of memory (0xbad0014) @0x420005d13ec8

  • /var/log/vmware/vpxd/vpxd.log on the ESXi host reports below errors:

YYYY-MM-DDTHH:MM:SS.277+05:30 error vpxd[2024583] [Originator@6876 sub=Datastore opID=mk0se8i1-263961-auto-5npx-h5:70089938-34-01] [VpxdDatastore::UrlToDSPath] Received a non-url [/vmfs/volumes/DataStore_UUID
/VM_Name/VM_Name.vmdk], instead of a url
YYYY-MM-DDTHH:MM:SS..277+05:30 error vpxd[2024583] [Originator@6876 sub=VmProv opID=mk0se8i1-263961-auto-5npx-h5:70089938-34-01] Aborting task tracking since task vim.Task:haTask--nfc.NfcManager.copy-8548084 failed
YYYY-MM-DDTHH:MM:SS..277+05:30 error vpxd[2024583] [Originator@6876 sub=VmProv opID=mk0se8i1-263961-auto-5npx-h5:70089938-34-01] Get exception while executing action vpx.vmprov.CopyVmFiles:
--> (vim.fault.NetworkCopyFault) {
-->    faultMessage = (vmodl.LocalizableMessage) [
-->       (vmodl.LocalizableMessage) {
-->          key = "",
-->          arg = (vmodl.KeyAnyValue) [
-->             (vmodl.KeyAnyValue) {
-->                key = "DestFile",
-->                value = "/vmfs/volumes/DataStore_UUID/VM_Name/VM_Name.vmdk"
-->             },
-->             (vmodl.KeyAnyValue) {
-->                key = "NfcErrorCode",
-->                value = 5
-->             },
-->             (vmodl.KeyAnyValue) {
-->                key = "NfcErrorCodeString",
-->                value = "NFC_NO_MEMORY"
-->             },
-->             (vmodl.KeyAnyValue) {
-->                key = "NfcErrorString",
-->                value = "No more memory is available"
-->             }
-->          ],
-->          message = ""
-->       }
-->    ],
-->    file = "/vmfs/volumes/DataStore_UUID/VM_Name/VM_Name.vmdk",
-->    msg = "Could not complete network copy for file /vmfs/volumes/DataStore_UUID/VM_Name/VM_Name.vmdk"

Environment

  • VMware ESXi 7.x / 8.x / 9.x
  • VMware vCenter Server 7.x / 8.x / 9.x
  • VMware Cloud Foundation 

Cause

An MTU (Maximum Transmission Unit) mismatch exists along the data path between the source and destination ESXi hosts. This is often caused by:

  • Physical switches or routers dropping jumbo frames (MTU 9000) that are expected by the ESXi host.
  • Recent network routing changes that introduced a segment with a lower MTU (e.g., 1500).
  • High-concurrency clone operations (common in OpenStack environments) exhausting the host's NFC memory heap.

Resolution

Ensure the MTU is configured consistently (uniformly 1500 or uniformly 9000) end-to-end across all physical and virtual network components.

  1.  Validate the Network Path

  • Run the following command from the source ESXi host to verify if the configured MTU can traverse the path without fragmentation:
  • Review this command before running it.
      • vmkping -I vmk# <destination_vmk_IP> -d -s 8972
  1. Standardize MTU Settings

    • If the test fails, revert all components (VMkernel adapters, vSwitches, and physical ports) to a standard MTU of 1500.
    • Ensure TCP Port 902 and 8000 are allowed bi-directionally between ESXi hosts.
  2. Clear Stale Sessions

    • If the network is corrected but errors persist, restart the management agents on the destination ESXi host to clear exhausted memory buffers:
    • This command will make changes to your system. Review it carefully before running.
      • /etc/init.d/hostd restart

NOTE: If ICMP ping is disabled within the infrastructure, configure the MTU to 1500 on both the source and destination ESXi Hosts.

Additional Information

Troubleshooting MTU Shrinkage on Standard Networks

If the environment is not using Jumbo Frames and vMotion continues to fail, you should verify the network path for MTU shrinkage. Execute the following command from the source ESXi host to test connectivity to the destination vMotion vmkernel interface, utilizing a standard payload and the "Don't Fragment" flag:

vmkping -I vmkX <destination_vmk_IP> -d -s 1472 (Note: Replace vmkX with the appropriate vMotion vmkernel adapter number).

If the ping utilizing the standard 1472-byte payload fails, incrementally reduce the payload size (e.g., to 1468) and test again. This will help identify the exact amount of MTU shrinkage occurring between the source and destination vmkernels.

Example Scenario & Impact on vMotion

  • Understanding the Network Overhead: A standard network MTU is 1500 bytes. An ICMP ping utilizes 28 bytes for headers (20 bytes for the IP header and 8 bytes for the ICMP header), leaving a maximum allowable payload of exactly 1472 bytes. If a 1472-byte payload fails but a 1468-byte payload succeeds, there are 4 bytes of unaccounted overhead on the network path. This reduces the effective path MTU to 1496 bytes instead of the required 1500 bytes.

  • Why vMotion Fails: vMotion requires strict end-to-end MTU consistency and explicitly sets the "Don't Fragment" bit on its packets. When these packets encounter a 1496-byte bottleneck, they are dropped by the network, causing the migration to fail. In Cross vCenter routing environments, this 4-byte reduction is typically introduced by an intermediate network device—such as 802.1Q VLAN tagging, VPN/IPsec tunneling overhead, or strict firewall inspections—that is not configured to accommodate the additional header size.

 

This issue can also be causes by limited (or throttled) bandwidth between locations.

XVMotion runs very slow and eventually fails

Cross vCenter Migration and Clone requirements in VMware vSphere 6.x and later