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

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

一、VMWare 官方网站下载网卡驱动

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

找到合适的驱动

点击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 界面方法
 
退出维护模式时,可在这个菜单里点击"退出维护模式"

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

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

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在线封装和离线封装驱动 Name net-e1000e (obsolete!) Description Driver for Intel GigaBit NICs (incl. I217/I218/82579LM/82574L and others) Please note that this driver is obsolete, because with ESXi 5.5 Update 3 VMware introduced a newer version of e1000e which supports the same set of devices plus Intel i219 adapters (PCI IDs 8086:156f, 8086:1570, 8086:15b7, 8086:15b8)! Please use this instead. For details read this blog post. Author George L. Roman, VMware forums user GLRoman Vendor (Vendor Code) GLRoman (GLR) Current Version 3.1.0.2-glr2 Supported Devices / PCI IDs 8086:1049, 8086:104a, 8086:104b, 8086:104c, 8086:104d, 8086:105e, 8086:105f, 8086:1060, 8086:107d, 8086:107e, 8086:107f, 8086:108b, 8086:108c, 8086:1096, 8086:1098, 8086:109a, 8086:10a4, 8086:10a5, 8086:10b9, 8086:10ba, 8086:10bb, 8086:10bc, 8086:10bd, 8086:10bf, 8086:10c0, 8086:10c2, 8086:10c3, 8086:10c4, 8086:10c5, 8086:10cb, 8086:10cc, 8086:10cd, 8086:10ce, 8086:10d3, 8086:10d5, 8086:10d9, 8086:10da, 8086:10de, 8086:10df, 8086:10e5, 8086:10ea, 8086:10eb, 8086:10ef, 8086:10f0, 8086:10f5, 8086:10f6, 8086:1501, 8086:1502, 8086:1503, 8086:150c, 8086:1525, 8086:153a, 8086:153b, 8086:1559, 8086:155a, 8086:15a0, 8086:15a1, 8086:15a2, 8086:15a3, 8086:294c Acceptance Level CommunitySupported Dependencies and Restrictions Replaces/Updates: VMware built-in net-e1000e driver Depends On: vmkapi_2_0_0_0, com.vmware.driverAPI-9.2.0.0 Package Properties Requires MaintMode Live Install Allowed Live Remove Allowed Stateless Ready Overlay Yes No No Yes No Additional links Related VMware Forum's post Package updated to include missing device IDs 1502 and 1503 following this hint from VMware forums user cmcallen

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值