Error: "Failed to configure vswitch to DVS vmknic migration on host" - SDDC Manager cluster deployment or expansion fails during the network migration phase.
search cancel

Error: "Failed to configure vswitch to DVS vmknic migration on host" - SDDC Manager cluster deployment or expansion fails during the network migration phase.

book

Article ID: 432580

calendar_today

Updated On:

Products

VMware SDDC Manager / VCF Installer

Issue/Introduction

The cluster deployment process in VMware Cloud Foundation 9.1 may fail during the network migration phase when attempting to migrate the management VMkernel adapter (vmk0) from a vSphere Standard Switch (vSS) to a vSphere Distributed Switch (vDS). This article outlines the diagnostic steps and remediation required to resolve this configuration failure.

  • The SDDC Manager UI displays the error: Failed to configure Vswitch to DVS vmknic migration on Host.
  • The host may temporarily disconnect or report an automated network rollback to the standard switch.
  • While navigating to SDDC Manager > Cluster >Add hosts, it fails with below error :

 

  • The /var/log/vmware/vcf/domainmanager/domainmanager.log indicates:

    ERROR [vcf_dm,69####################] 
    [c.v.e.s.c.c.v.vsphere.VcManagerBase,dm-exec-18] 
    Unable to migrate vmknic vmk0 -- retrying 1 
    com.vmware.vim.binding.vmodl.fault.HostCommunication: 
    An error occurred while communicating with the remote host.

  • The host's vobd.log indicates: [vob.net.gateway.set.failed] Cannot connect to the specified gateway ####.

Environment

VMware Cloud Foundation 5.x

VMware Cloud Foundation 9.x 

 

Cause

  • The failure occurs because of a network isolation event during the migration of the management VMkernel adapter (vmk0) from a vSphere Standard Switch (vSS) to a vSphere Distributed Switch (vDS). 
  • A VLAN mismatch is identified between the management network on the vSphere Standard Switch (vSS) and the vSphere Distributed Switch (vDS). During the vmk0 migration, the host temporarily loses connectivity due to this mismatch, resulting in a HostCommunication error and failure of the migration task.
  • If the target physical switch ports do not have the Management VLAN tagged/allowed, the host loses connectivity to vCenter, triggering an automatic rollback.

Resolution

To resolve this issue, perform the following environmental validations:

  1. Verify that the Management VLAN ID on the source Standard Switch port group matches the VLAN ID defined in the target management vSphere Distributed Switch (vDS) portgroup.
  2. Coordinate with the network team to ensure the Management VLAN is explicitly tagged and allowed on the physical switch trunk ports connected to the host uplinks (vmnics) used by the vDS.
  3. Ensure MTU settings are consistent (e.g., 1500 or 9000) across the physical switch, vSS, and vDS.
  4. After these steps perform a manual migration test: In vCenter, navigate to Networking > Distributed Switch > Add and Manage Hosts and attempt to migrate vmk0 for one host to the target Distributed Port Group.
  5. Once connectivity is verified, select Retry in the SDDC Manager UI.

If the steps above do not resolve the issue, then it is recommended to Deploy new cluster and ensure that the management network VLAN configuration is correctly defined during cluster creation.

This approach ensures that:

  • The management network is automatically created and managed by SDDC Manager.
  • The correct VLAN configuration is applied from the beginning.
  • The vmk0 migration from vSS to vDS can complete without network interruption.

Additional Information

As part of deploying a new cluster, additional host cleanup may be needed. See ESXi host removal from VCF SDDC Manager fails due to database mismatch