Wednesday, February 16, 2011

ESX: Remove hidden devices after converted VMs

I had to move a VM from an older stand-alone ESX to a customers new ESX 4.1 cluster, and I decided to use Vmware Converter through the new Virtual Center. The conversion process was insanely slow, but its nothing new, Vmware Converter tend to be on the very slow side, and moving them manually with Veeam SCP or something similar would be preferred.

Anyways, when the clone was done the server was booted on new host, and it discovered new hardware. I let it run, then upgraded Vmwaretools, and rebooted. Problem then was the same as often, you get the hidden NIC taking the default IP, and you get DHCP on the new one. To sort this problem you need to do the following.

Start -> Run -> Cmd -> Enter
Type in "set devmgr_show_nonpresent_devices=1" and press Enter
In the SAME Cmd window, type "DEVMGMT.MSC" and press Enter
Then go to View, select Show hidden devices and then go find your missing NIC under Network Adapters

The key here is to run the DEVMGMT.MSC in the same Cmd window as the first command, or it wont work. You can no do Start -> Run -> command cause it wont work. So do it all in the same window before closing it.

After you remove the adapter you can change IP settings for your real adapter and its ready to run. I reboot just in case though, but thats up to you.