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. 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.
출처 : Virten.net http://www.virten.net/2012/09/esxi-change-vmnic-vmhba-numbering/
'VMWare' 카테고리의 다른 글
VMware vSphere with Tanzu와 vSphere 7.0 U1에 관한 이야기 (0) | 2020.10.08 |
---|---|
vCenter 사용 포트 (0) | 2015.05.07 |
[VMware] vDS 분산스위치 네트웍 Teaming - IP Hash (0) | 2015.04.08 |
Domain Service on vSphere (0) | 2014.04.18 |
VMware vCenter의 VM 복제 및 템플릿 구성 (0) | 2014.01.24 |