Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

3/25/2021 ESXi: Change vmnic / vmhba numbering | virten.

net

ESXi: Change vmnic / vmhba numbering


by Florian Grehl / September 1, 2012 / 3 Comments

If you change your hardware configuration without reinstalling your hypervisor you might run into
an issue with the nic or hba port numbering. The ESXi host writes the PCI bus to vmnic mapping to a
special configuration file. If you change the pci slot from your dual port nic for example you end up
with 2 new vmnics.

The configuration file is located at /etc/vmware/esx.conf

Change vmnic numberingPlease note that this method is not supported by VMware!

1. Open up the console (SSH or Tech Support Mode)


2. Backup your configuration

cp /etc/vmware/esx.conf /etc/vmware/esx.conf.old

3. Open esx.conf with an editor

vi /etc/vmware/esx.conf

4. Search for "vmnic" (press /vmnic<ENTER>)

5. Identify your physical nics. This could be done by many ways. You can use CDP if supported by
your physical switch. Or just plug in a cable and see which port comes up. The number between the
colons is the PCI Bus ID. Refer to your hardware vendors documentation to find out which Bus
belongs to your PCI Slot. In most cases its just ascending to the PCI Slot written to the chasis.

6 Ch th i l b l (M th
https://www.virten.net/2012/09/esxi-change-vmnic-vmhba-numbering/
t th l b l f " l " d t th 1/9
3/25/2021 ESXi: Change vmnic / vmhba numbering | virten.net
6. Change the vmnic label. (Move the cursor to the label, press r for "replace" and enter the new
number)

7. Search again for "vmnic" (press /vmnic<ENTER>) until you find something like this

8. This is the MAC address configuration which has to be consistent to the vmnic numbering made
above. The easiest way is to just delete these lines, as they are getting recreated after a reboot.
Move the cursor to the line an press dd for each line you want to delete.

9. Press <ESC> :wq <ENTER> to save the configuration.

10. Reboot your ESXi Host.

Verify the configuration using the vSphere Client:

Changing the vmhba numbering is the same. Just search the esx.conf for vmhba. There is just one
entry per port.

https://www.virten.net/2012/09/esxi-change-vmnic-vmhba-numbering/ 2/9
3/25/2021 ESXi: Change vmnic / vmhba numbering | virten.net

Share:

 Twitter  Facebook  Reddit  WhatsApp  LinkedIn

Related posts:

1. How to change vCenter Server language

2. VMware released a Security Patch for ESXi 5

3. HP N40L Shared Storage with vSphere Storage Appliance (VSA)

4. Datastore cluster permissions lost

5. ESX(i) Build List

Tags: 4.0 5.0 ESXi Howto VMware vSphere

3 thoughts on “ESXi: Change vmnic / vmhba numbering”

ROSS A
May 29, 2013 at 12:08 pm

Great stuff, thanks.

I'd moved a NIC as one of my nodes wasn't configured the same as the other three when shipped
from Dell (nic was in a different slot for some reason - didn;t notice until after I had installed ESXi
unfortunately) - once moved and I rebooted the server the vmnic numbering had incremented as it
was detected as a new card. This allowed me to make it the same as the others again.

Many thanks

Reply

Pingback: ESXI home lab, one the way to the VCP. | ed1torial.org

https://www.virten.net/2012/09/esxi-change-vmnic-vmhba-numbering/ 3/9
3/25/2021 ESXi: Change vmnic / vmhba numbering | virten.net
GAURAV BAGHLA
October 31, 2013 at 5:49 pm

This method is not supported by Vmware use this article

http://kb.vmware.com/kb/2019871

Reply

Leave a Reply
Your email address will not be published.

Comment

Name

Email

Website

Notify me of follow-up comments by email.

Notify me of new posts by email.

https://www.virten.net/2012/09/esxi-change-vmnic-vmhba-numbering/ 4/9
3/25/2021 ESXi: Change vmnic / vmhba numbering | virten.net

POST COMMENT

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

Subscribe to Blog via Email


Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Email Address

SUBSCRIBE

Sponsors

https://www.virten.net/2012/09/esxi-change-vmnic-vmhba-numbering/ 5/9
3/25/2021 ESXi: Change vmnic / vmhba numbering | virten.net

https://www.virten.net/2012/09/esxi-change-vmnic-vmhba-numbering/ 6/9
3/25/2021 ESXi: Change vmnic / vmhba numbering | virten.net

https://www.virten.net/2012/09/esxi-change-vmnic-vmhba-numbering/ 7/9
3/25/2021 ESXi: Change vmnic / vmhba numbering | virten.net

-34% -34%

-34% -15%

-49% -49%

-43% -16%

https://www.virten.net/2012/09/esxi-change-vmnic-vmhba-numbering/ 8/9
3/25/2021 ESXi: Change vmnic / vmhba numbering | virten.net

110 TL 17,05 TL

68,85 TL 69,90 TL

Copyright © 2021 virten.net | www.v13g.de | Impressum / Privacy Policy | Powered by WordPress

https://www.virten.net/2012/09/esxi-change-vmnic-vmhba-numbering/ 9/9

You might also like