VM connects to two Port Groups after migration to VDS

Last week while working at a customer, we migrated their VM’s from a Standard Switch to a Distributed Switch using the “Migrate Virtual Machine Networking” wizard.

After the migration, some VM’s appeared to be connected to two Port Groups, even though they only had one Network adapter configured:

Even when looking at the hosts switch configuration, the VM’s did show up twice, once connected to the Standard Switch, and once to the Distributed Switch.

After some investigation I found a knowledge base article that told me how to fix this:

Multiple network entries in vCenter Server after migrating virtual machines from a virtual switch to a virtual distributed switch

Symptoms

  • After migrating virtual machines from a virtual switch to a virtual Distributed Switch (vDS), you see both old and new network entries for the virtual machine in vCenter Server.
  • In vCenter Server, the VM settings have entries for both the old standard port group and the newer distributed port group.
  • The virtual machine properties and the .vmx configuration file reference only the vDS configuration.

Cause

This issue occurs because the vCenter Server database has an incorrect reference to the old virtual switch network configuration.
If the virtual machine has snapshots associated with the old network, when you reconfigure the virtual machine to use a new network configuration, both old and new networks are associated with the virtual machine.

Resolution

This issue does not affect functionality and can be safely ignored.

To work around this issue and to remove the reference to the virtual switch network entry, delete the virtual machine snapshots.

In a way, this behavior kind of seems to make sense.

Say you migrate a VM that has a snapshot from a Standard Switch to a Distributed Switch, and you would revert to the snapshot, your VM would reconnect to the Standard Switch …

So the double connection kind of warns you there are other networks configured in previous snapshots.

 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

This site uses Akismet to reduce spam. Learn how your comment data is processed.