Hi,
I’ve got a VM which use to have two nics, one nic was on vm
network one vlan 20 and the other was on vm network two vlan 21, one of the
nics was disabled. I have now removed one of the nic’s but when I look at the
standard switch it is still showing the vm to be on both networks. If I look at
the summary of the vm it also appears
that it is in two networks. This is when viewed for VI client connected to
vcenter. If I connect to the host which the vm is running from then everything
is showing correctly, one nic in one network.
Any ideas how to correct this when viewed from vcenter?
If the VM has active snapshots, the deleted virtual network adapter will show up until you delete the snapshot. The reason for this is that ESXi has to remember the "old" configuration, in case you decide to revert to a snapshot which still had the second NIC in use.
André
May be close the session and re-login? maybe the database hasn't got updated.
Either
A) Restart the management agents on the ESXi host as per http://kb.vmware.com/kb/1003490
or
B) Remove the VM from Inventory and re-add it by browsing to the VMX file on the datastore
or
C) Reload the VM from the ESXi shell as explained here http://kb.vmware.com/kb/1026043
Any of the above should fix VM config inconsistencies between vCenter and hosts like you're seeing. A vMotion might work too, but I'm not entirely sure.
If the VM has active snapshots, the deleted virtual network adapter will show up until you delete the snapshot. The reason for this is that ESXi has to remember the "old" configuration, in case you decide to revert to a snapshot which still had the second NIC in use.
André
The VM had a snapshot, thanks for all the good advice much appreciated.
good answer.