Which physical NIC is my VM using? June 23, 2011Posted by General Zod in Tech, VMware.
Recently, I was having an issue in which some of my VMs would intermittently become unreachable across the network. Looking in vSphere, there were no problems reported with the physical NICs nor with the virtual networking. Everything was configured OK, so what was the problem?
Then, I noticed that all of the effected VMs were being hosted by my HOST3 server. I started a continuous ping to one of the VMs, and then VMotion’ed the VM from HOST3 to HOST4. As soon as the VM finished transferring to HOST4, the pings picked up and it was accessible once more. So I’m inclined to believe that this is an issue with one of the physical NICs that’s reporting itself in a false-positive state.
Now all of the VMs in my cluster are running off of the same vNetwork Distributed Switch, and each Host has 2 physical network connections dedicated to this vSwitch… which are on different physical cards. So which physical NIC in HOST3 could be at fault? How exactly do you figure out which NIC your VM is communicating across?
Well… finding this out is easier than you’d think.
- Open up your favorite emulator, and SSH into your Host.
- Then, run the ESXTOP command, and then press “n” to switch it to the Networking Usage display.
Then, pull up your VI client and select the Host in question. Go to the Configuration tab, and select Network Adapters. The displayed “vmnic” list is grouped together by the physical card that each port is on. As you can see by the image, vmnic1 is the 2nd port on the integrated NC375i network adapter.
Guess it’s time to call HP.