vMotion failure: Virtual machine not ready due to mirror netstack mismatch
search cancel

vMotion failure: Virtual machine not ready due to mirror netstack mismatch

book

Article ID: 432477

calendar_today

Updated On:

Products

VMware vCenter Server VMware vSphere ESXi

Issue/Introduction

  • Virtual machine migrations via vMotion or cross-vCenter cold migration fail during compatibility checks or execution when port mirroring is active.

  • This failure occurs most frequently in environments utilizing vSphere Distributed Switches (vDS) where specific virtual machines are configured as source or sniffer pairs.

  • When a Distributed Port (dvPort) is associated with a mirror TCP/IP stack (netstack) on the source ESXi host, the migration process requires a corresponding configuration on the target host. Failure to align these networking parameters prevents the migration task from initializing.

Environment

ESX: 8.0u3
vCenter: 8.0u3

Cause

The migration fails because of a networking configuration discrepancy between the source and destination ESXi hosts. Port mirroring sessions and their associated TCP/IP stacks reside at the switch and host levels.

When a VM is moved, particularly between different vCenters. The destination host must have an identical mirror netstack instance and a dedicated virtual adapter (vmknic) already active. Without this matching infrastructure, the vCenter Server cannot hand off the VM's networking requirements to the new host.

Resolution

To resolve this issue, create the mirror stack configuration across all participating hosts in the cluster.

  1. Identify Source Configuration:

  2. Review host networking settings in the vSphere UI or via the ESXi command-line interface (CLI).
    esxcli network ip netstack list

  3. Check the MTU on the VMkernel adapter

  4. Document the mirror netstack instance name and the specific VMkernel adapter (vmknic) assigned to mirror traffic.
  5. Configure Destination Host:

    • Navigate to the Destination Host > Configure > Networking > TCP/IP configuration.

    • Ensure the mirror stack is present and active.

    • Create or verify a VMkernel adapter on the destination host that is specifically assigned to the mirror TCP/IP stack.

  6. Validate Consistency:

    • Ensure that the MTU settings and VLAN IDs for the mirror virtual adapters match across both hosts.

  7. Retry Migration:

    • Once the destination host has an active mirror netstack instance and virtual adapter, re-run the vMotion wizard.

Additional Information


If traffic mirroring is no longer required for the virtual machine, an alternative workaround is to disable the port mirroring property on the VM's dvPort before attempting the migration.

Additional Doc -  What is Port Mirroring Interoperability