Friday, February 11, 2011

ESXi/ESX 4.x Ghost nics on multiple windows VMs after changing hardware version & upgrading vmware tools

Issue:
When the customer tries to check the tcp/ip settings and when clicked on ok it gives an error "the ip address 10.247.35.45 you have entered for this adapter is already assigned to another adapter 'Intel(R) PRO/1000 MT Network Connection # 2' on this computer. If the same address is assigned to both the adapters and they both become active, only one of them will use this address. This may result in incorrect system configuration.
Do you want to fix the problem by entering a different IP address for this adapter in the list of IP addresses in the Advanced dialog box?"
and when clicked on No for the above error cu gets another error “Warning: Multiple default gateways are intended to provide redundancy to a
single network such as and Intranet or the Internet. They will not function
properly when the gateways are on two separate, disjoint networks (such as
one on your intranet and one on the Internet). Do you want to save this
configuration? “.
Solution:
Tried This
http://remotexpert.net/blog/2009/11/how-to-fix-error-the-ip-address-you-have-entered-for-this-network-adapter-is-already-assigned-to-another-adapter-name-of-adapter/
but no go.
.
Tried the devcon.exe tool from microsoft to remove the ghost nics but no go.
Unpack the 32 bit or 64 bit DevCon tool binary to a local folder.
Click Start > Run, type cmd, and press Enter.
Type CD:\path_to_binaries to navigate to the devcon.exe.
devcon listclass net
devcon remove @device\name reboot.
After the reboot the VM asked for one more reboot since it has detected and installed a new device and thus we rebooted.
After the reboot the VM had lost all the network configuration and customer assigned the ip information but when he tried click ok to save changes he again got the same error but we stilled clicked on ok to have multiple default gateways and rebooted and this time the networking icon was present for the first time after this issue has started.
set devmgr_show_nonpresent_devices=1 and checked the device manager>show hidden devices>network adapters but found no dimmed network adapters.
The most important thing to note here is there was no nic which was grayed out because in VMs which are converted from p2v this is the common issue.
checked HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\NetworkCards\
and there were 2 network card information 2 and 13.
Helped customer to delete the key named 2 and reboot but no go.
but no go.


SOLUTION WHICH WORKED: Remove the e1000 nics and add vmxnet3 nics.