vMotion fails for a specific host. Migration fails with error message "The Object or item referred to could not be found"
search cancel

vMotion fails for a specific host. Migration fails with error message "The Object or item referred to could not be found"

book

Article ID: 324522

calendar_today

Updated On:

Products

VMware vSphere ESXi VCF Operations/Automation (formerly VMware Aria Suite) VMware vCenter Server

Issue/Introduction

  • Virtual machine vMotion fails during host evacuation or manual migration originating from specific source ESXi hosts. The migration fails with error message "The Object or item referred to could not be found"
  • The /var/log/hostd.log file on the source ESXi host involved in the vMotion operation contains the following:

    error hostd[2101236] [Originator@6876 sub=Hostsvc.NsxSpecTracker] Object not found/hostspec disabled

    [LikewiseGetDomainJoinInfo:354] QueryInformation(): ERROR_FILE_NOT_FOUND (2/0):

    error hostd[2100948] [Originator@6876 sub=Hostsvc.NsxSpecTracker] Object not found/hostspec disabled

    info hostd[2101544] [Originator@6876 sub=Solo.Vmomi opID=2f##043-7f00 user=<user>] Result:

    --> (vim.fault.PlatformConfigFault) {

    --> faultCause = (vmodl.MethodFault) null,

    --> faultMessage = (vmodl.LocalizableMessage) [

    --> (vmodl.LocalizableMessage) {

    --> key = "com.vmware.esx.hostctl.default",

    --> arg = (vmodl.KeyAnyValue) [

    --> (vmodl.KeyAnyValue) {

    --> key = "reason",

    --> value = "Unable to delete DVPort "##" that is in use, use list: example-vm.eth#"

Environment

  • VMware vSphere ESXi 8.x / 9.x

  • VMware vCenter Server 8.x / 9.x

  • VMware Cloud Foundation (VCF)

Cause

This issue occurs when a virtual machine fails to register correctly on a dVport after a host is added to a Distributed Switch (vDS) or during an upgrade workflow. The VM continues to reference a stale port ID that does not exist on the destination host, leading to a metadata inconsistency between vCenter and the ESXi host.

Resolution

Follow any of the following workarounds: 

  • (Option 1): Migrate VM networking to the same port group
    1. Login to vSphere Client using administrator account.
    2. Select the respective dvSwitch, right click select "Add and Manage Hosts" and click "Manage Host Networking"
    3. Select the problematic Host 
    4. Skip to "Migrate VM networking". Check the box "Migrate virtual machine networking" to see the VMs on the host.
    5. Select "Configure per virtual machine". The list of VMs shows the current port group under one of the columns.
    6. Click on "Assign Port Group". It will display a list of Port Groups on the dvSwitch. Select a port group to assign the VM to. If possible, reassign the same port group it was already using. If not possible, assign a different port group. (Assigning a different port group could cause the VM to lose connectivity until you reassign it back.)
    7. Click "Next" then "Finish"
    8. Assigning the same port group will re-register and will update the network port ID of the VM. You should be able to Migrate the VM after this process. 
    9. During the network re-registration, the VM will lose the network for few seconds based on network traffic at that point of time. 
    10. You may validate by clicking the dVSwitch => Configure => Settings => Topology. The UI should show you "Port Group" and the VM connection should show you "Green " visible connection to uplinks.

OR 

OR

Additional Information

Impact/Risks:

No Impact to VMs connection, only migration fails with error message.

You might tend to see similar issue when initiating this task via "Aria Automation Orchestrator or Standalone Orchestrator" Workflow : relocateVM_Task , failing with error "The object or item referred to could not be found. vDS dvs port *** cannot be found".


The fix for the migrations is to remove the portID that they are passing in the API call as that is causing the error in the migrations.