HCX Migration fails with the error "Error while selecting best host for vm placement"
search cancel

HCX Migration fails with the error "Error while selecting best host for vm placement"

book

Article ID: 398460

calendar_today

Updated On:

Products

VMware HCX VMware Cloud on AWS

Issue/Introduction

  • HCX Migration fails with an error in HCX Manager UI > Services > Migration > Mobility Groups > Select the Group > Select the VM:
      "Error while selecting the best host for VM placement." 


  • The following logs are seen in the HCX Manager in the file /common/log/admin/app.log:
    <timestamp> UTC [ReplicationTransferService_SvcThread-44528, Ent: HybridityAdmin, , TxId: TxId: ########-####-####-####-##########] ERROR c.v.h.s.r.jobs.InstantiateVmJob- Error while selecting best host for vm placement
    java.lang.RuntimeException: No suitable host found
            at com.vmware.vchs.hybridity.migration.common.CompatibleHostSelector.chooseBestHostForVmPlacement(CompatibleHostSelector.java:1196)
    <timestamp> UTC [ReplicationTransferService_SvcThread-44528, Ent: HybridityAdmin, , TxId: TxId: ########-####-####-####-##########] INFO  c.v.h.s.r.jobs.InstantiateVmJob- Host selection lock released for migrationId:########-####-####-####-##########, migrationGroupId:########-####-####-####-##########
    2025-10-21 16:44:09.825 UTC [ReplicationTransferService_SvcThread-44528, Ent: HybridityAdmin, , TxId: TxId: ########-####-####-####-##########] ERROR c.v.h.s.r.jobs.InstantiateVmJob- Error Executing Job (########-####-####-####-##########)
    java.lang.RuntimeException: Error while selecting best host for vm placement

Cause

This switchover failure can occur when the hosts in the destination environment have resource constraints, such as high CPU, memory, or storage utilization.

Similar alerts as these will be present in the destination environment when viewing the ESXi hosts:

Resolution

To avoid this, please review the destination environment and ensure that there are sufficient resources available for use by the VM being migrated before the migration.