VMware ESXi 5上安装网卡驱动实战解析

ESXI5服务器上新增了一块Intel 82580千兆网卡,重启服务器后在网络适配器里居然没自动发现这块网卡,查了一下VMware 的官方网站,说是需要另外安装驱动。

一、VMWare 官方网站下载网卡驱动
VMware ESXi 5上安装网卡驱动实战解析_第1张图片

进入VMWARE官方网站,输入要查找的驱动名称,点击SEARCH查找.

VMware ESXi 5上安装网卡驱动实战解析_第2张图片

找到合适的驱动

VMware ESXi 5上安装网卡驱动实战解析_第3张图片

点击MANUALLY  DOWNLOAD进行下载即可.

二、通过SCP上传驱动到VMware ESXi服务器的/vmfs/volumes一个目录下
使用ssh登陆到VMware ESXi服务器后,用unzip命令解压驱动包,解压后会得到一个后缀为.vib 的驱动文件:

# unzip internh82580eb.zip
Archive:  internh82580eb.zip
  inflating: index.xml
  inflating: vendor-index.xml
  inflating: metadata.zip
  inflating: vib20/net-igb/Intel_bootbank_net-igb_3.2.10-1OEM.500.0.0.472560.vib

为确保服务器稳定, 注意要进入ESXI维护模式来做如下安装网卡驱动的操作
进入维护模式的两种方法:
1 界面方法
VMware ESXi 5上安装网卡驱动实战解析_第4张图片 
退出维护模式时,可在这个菜单里点击"退出维护模式"

2 命令方式
进入维护模式
# vim-cmd hostsvc/maintenance_mode_enter
退出维护模式
# vim-cmd hostsvc/maintenance_mode_exit
 

然后使用esxcli命令行安装 vib 驱动并检查是否安装成功:

# cd  /vmfs/volumes/datastore1
/vmfs/volumes/5061ce54-5696f0d2-084e-000c29c4a7c6 # ls
internh82580eb.zip                             net-igb-3.2.10-1OEM.500.0.0.472560.x86_64.vib
win2008                                             linux5
/vmfs/volumes/5061ce54-5696f0d2-084e-000c29c4a7c6 # esxcli software vib install -v /vmfs/volumes/5061ce54-
5696f0d2-084e-000c29c4a7c6/net-igb-3.2.10-1OEM.500.0.0.472560.x86_64.vib
Installation Result
   Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
   Reboot Required: true
   VIBs Installed: Intel_bootbank_net-igb_3.2.10-1OEM.500.0.0.472560
   VIBs Removed: VMware_bootbank_net-igb_2.1.11.1-3vmw.500.0.0.469512

# esxcli software vib list
Name                  Version                             Vendor  Acceptance Level  Install Date
--------------------  ----------------------------------  ------  ----------------  ------------
net-igb               3.2.10-1OEM.500.0.0.472560          Intel   VMwareCertified   2012-09-25 
ata-pata-amd          0.3.10-3vmw.500.0.0.469512          VMware  VMwareCertified   2012-09-25 
ata-pata-atiixp       0.4.6-3vmw.500.0.0.469512           VMware  VMwareCertified   2012-09-25 
ata-pata-cmd64x       0.2.5-3vmw.500.0.0.469512           VMware  VMwareCertified   2012-09-25 
ata-pata-hpt3x2n      0.3.4-3vmw.500.0.0.469512           VMware  VMwareCertified   2012-09-25 
ata-pata-pdc2027x     1.0-3vmw.500.0.0.469512             VMware  VMwareCertified   2012-09-25 
ata-pata-serverworks  0.4.3-3vmw.500.0.0.469512           VMware  VMwareCertified   2012-09-25 
ata-pata-sil680       0.4.8-3vmw.500.0.0.469512           VMware  VMwareCertified   2012-09-25 
ata-pata-via          0.3.3-2vmw.500.0.0.469512           VMware  VMwareCertified   2012-09-25 
block-cciss           3.6.14-10vmw.500.0.0.469512         VMware  VMwareCertified   2012-09-25 
...........


# reboot


安装成功后重启 VMware ESXi,然后用LSPCI命令查看一下网卡驱动是否能被正确识别出来:

# lspci | grep 'Network controller'
000:004:00.0 Network controller: Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T [vmnic0]
000:004:00.1 Network controller: Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T [vmnic1]
000:024:00.0 Network controller: Intel Corporation 82580 Gigabit Network Connection [vmnic2]
000:024:00.1 Network controller: Intel Corporation 82580 Gigabit Network Connection [vmnic3]
000:024:00.0 Network controller: Intel Corporation 82580 Gigabit Network Connection [vmnic4]
000:024:00.1 Network controller: Intel Corporation 82580 Gigabit Network Connection [vmnic5]
使用vSphere Client客户端登入VMware ESXi以后,进入Configuration 页面的Network Adapters应该会看到新安装的vmnic4, vmnic5  2个网卡接口了.


或者直接在 ESXi 上用命令行界面:

# esxcfg-nics -l
Name    PCI           Driver      Link Speed     Duplex MAC Address       MTU    Description                  
vmnic0  0000:04:00.00 bnx2        Up   1000Mbps   Full   34:40:b5:b0:ba:2c 1500   Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T
vmnic1  0000:04:00.01 bnx2        Up   1000Mbps   Full   34:40:b5:b0:ba:2e 1500   Broadcom Corporation Broadcom NetXtreme II BCM5709 1000Base-T
vmnic2  0000:18:00.00 igb         Up   1000Mbps   Full   00:1b:21:d1:78:de 1500   Intel Corporation 82580 Gigabit Network Connection
vmnic3  0000:18:00.01 igb         Up   1000Mbps   Full   00:1b:21:d1:78:df 1500   Intel Corporation 82580 Gigabit Network Connection
vmnic4  0000:18:00.00 igb         Up   1000Mbps   Full   00:1b:21:d4:83:dj 1500   Intel Corporation 82580 Gigabit Network Connection
vmnic5  0000:18:00.01 igb         Up   1000Mbps   Full   00:1b:21:d5:83:dk 1500   Intel Corporation 82580 Gigabit Network Connection

 从这里我们看到新增网卡接口已正常显示出来了.

本文出自 “滴水穿石孙杰” 博客,谢绝转载!

你可能感兴趣的:(vmware,esxi,5,网卡驱动)