Migration of a cluster (Hosts + VMs) from one vCenter to another, vnic's 'Link State' shows as 'Down' on target VC UI.
search cancel

Migration of a cluster (Hosts + VMs) from one vCenter to another, vnic's 'Link State' shows as 'Down' on target VC UI.

book

Article ID: 311957

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Symptoms:
When migrating a cluster (Hosts + VMs) from one vCenter to another, the dvport state was not synced to target VC.
As a result vnic's 'Link State' shows as 'Down' on target VC UI.
This can be checked through: vCenter UI --> Networking --> Portgroup --> Ports --> Check the 'State' column.


Environment

VMware vCenter Server 7.0.2

Cause

The dvport state was not synced to target VC since no hostd side change happens.

Resolution

Currently there is no resolution.

Workaround:
Reload all VMs on migrated hosts and invoke RefreshDVPortState API towards all involved DVS.
The script to run the workaround is attached as "VM_reload_onVC.py".
  • To run the script: Upload it to target VC, modify script to change VC username/password and migrated hosts list:
          vc_user = '[email protected]'
   
     vc_passwd = '<PASSWORD>'   
         
     hosts = ["XXXXX"]

 
          Run it with command: python VM_reload_onVC.py"

Attachments

VM_reload_onVC get_app