ESXI设置DNS并在线安装Realtek网卡驱动

由于实在受不了Intel 82574L网卡配合e1000e驱动的断流问题,准备miniPCIe一分二,分一个出来插一个瑞昱的网卡,不过ESXI支持的网卡都是服务器的,默认不支持消费级的瑞昱网卡驱动。网上大部分是在制作ESXI的iso的时候导入驱动,其实针对已安装的ESXI,也可以额外安装驱动。

The time and date of this login have been sent to the system logs.

WARNING:
   All commands run on the ESXi shell are logged and may be included in
   support bundles. Do not provide passwords directly on the command line.
   Most tools can prompt for secrets or accept them from standard input.

VMware offers supported, powerful system administration tools.  Please
see www.vmware.com/go/sysadmintools for details.

The ESXi Shell can be disabled by an administrative user. See the
vSphere Security documentation for more information.
[root@localhost:~] esxcli software acceptance set --level=CommunitySupported
[root@localhost:~] esxcli network firewall ruleset set -e true -r httpClient
[root@localhost:~] esxcli network firewall ruleset set -e true -r dns
[root@localhost:~] esxcli software vib install -d https://vibsdepot.v-front.de -n net55-r8168
 [MetadataDownloadError]
 Could not download from depot at https://vibsdepot.v-front.de/index.xml, skipping (('https://vibsdepot.v-front.de/index.xml', '', '<urlopen error [Errno -2] Name or service not known>'))
        url = https://vibsdepot.v-front.de/index.xml
 Please refer to the log file for more details.

发现是域名解析失败,此时ping一个公网ip,发现是可以ping通的,而ping百度失败,说明确实是DNS问题,于是设置DNS

[root@localhost:~] nc -z vibsdepot.v-front.de 80
nc: getaddrinfo: Name or service not known
[root@localhost:~] ping www.baidu.com
getaddrinfo() for "www.baidu.com" failed (-2: Name or service not known)
[root@localhost:~] esxcli network ip dns server list
   DNSServers:
[root@localhost:~] esxcli network ip dns server add --server=114.114.114.114
[root@localhost:~] esxcli network ip dns server list
   DNSServers: 114.114.114.114

继续尝试

[root@localhost:~] esxcli software vib install -d https://vibsdepot.v-front.de -n net55-r8168
Installation Result
   Message: Host is not changed.
   Reboot Required: false
   VIBs Installed:
   VIBs Removed:
   VIBs Skipped: Realtek_bootbank_net55-r8168_8.045a-napi

竟然安装失败,被跳过了,怀疑当时装的这个ESXI镜像是倒入过这个驱动的,于是查看已安装软件

[root@localhost:~] esxcli software vib list
Name                           Version                               Vendor    Acceptance Level    Install Date
-----------------------------  ------------------------------------  --------  ------------------  ------------
net-atlantic                   v2.2.3.0-esxi1.6                      Aquantia  CommunitySupported  2021-02-01
intel-nvme-vmd                 1.7.0.1000-1OEM.670.0.0.8169922       INT       VMwareCertified     2021-02-01
net-igb                        5.3.2-99                              Intel     CommunitySupported  2021-02-01
net55-r8168                    8.045a-napi                           Realtek   CommunitySupported  2021-02-01
esxcli-shell                   1.1.0-15                              VFrontDe  CommunitySupported  2021-02-01
fw-ntpd                        1.2.0-1                               VFrontDe  CommunitySupported  2021-02-01
net-forcedeth-1                1.0.0-1                               VFrontDe  CommunitySupported  2021-02-01
sata-xahci                     1.42-1                                VFrontDe  CommunitySupported  2021-02-01
ata-libata-92                  3.00.9.2-16vmw.670.0.0.8169922        VMW       VMwareCertified     2021-02-01
ata-pata-amd                   0.3.10-3vmw.670.0.0.8169922           VMW       VMwareCertified     2021-02-01
ata-pata-atiixp                0.4.6-4vmw.670.0.0.8169922            VMW       VMwareCertified     2021-02-01
ata-pata-cmd64x                0.2.5-3vmw.670.0.0.8169922            VMW       VMwareCertified     2021-02-01
ata-pata-hpt3x2n               0.3.4-3vmw.670.0.0.8169922            VMW       VMwareCertified     2021-02-01
ata-pata-pdc2027x              1.0-3vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
ata-pata-serverworks           0.4.3-3vmw.670.0.0.8169922            VMW       VMwareCertified     2021-02-01
ata-pata-sil680                0.4.8-3vmw.670.0.0.8169922            VMW       VMwareCertified     2021-02-01
ata-pata-via                   0.3.3-2vmw.670.0.0.8169922            VMW       VMwareCertified     2021-02-01
block-cciss                    3.6.14-10vmw.670.0.0.8169922          VMW       VMwareCertified     2021-02-01
bnxtnet                        20.6.101.7-24vmw.670.3.73.14320388    VMW       VMwareCertified     2021-02-01
bnxtroce                       20.6.101.0-20vmw.670.1.28.10302608    VMW       VMwareCertified     2021-02-01
brcmfcoe                       11.4.1078.25-14vmw.670.3.73.14320388  VMW       VMwareCertified     2021-02-01
char-random                    1.0-3vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
ehci-ehci-hcd                  1.0-4vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
elxiscsi                       11.4.1174.0-2vmw.670.0.0.8169922      VMW       VMwareCertified     2021-02-01
elxnet                         11.4.1097.0-5vmw.670.3.73.14320388    VMW       VMwareCertified     2021-02-01
hid-hid                        1.0-3vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
i40en                          1.8.1.9-2vmw.670.3.73.14320388        VMW       VMwareCertified     2021-02-01
igbn                           0.1.1.0-5vmw.670.3.73.14320388        VMW       VMwareCertified     2021-02-01
ima-qla4xxx                    2.02.18-1vmw.670.0.0.8169922          VMW       VMwareCertified     2021-02-01
ipmi-ipmi-devintf              39.1-5vmw.670.1.28.10302608           VMW       VMwareCertified     2021-02-01
ipmi-ipmi-msghandler           39.1-5vmw.670.1.28.10302608           VMW       VMwareCertified     2021-02-01
ipmi-ipmi-si-drv               39.1-5vmw.670.1.28.10302608           VMW       VMwareCertified     2021-02-01
iser                           1.0.0.0-1vmw.670.1.28.10302608        VMW       VMwareCertified     2021-02-01
ixgben                         1.7.1.16-1vmw.670.3.73.14320388       VMW       VMwareCertified     2021-02-01
lpfc                           11.4.33.25-14vmw.670.3.73.14320388    VMW       VMwareCertified     2021-02-01
lpnic                          11.4.59.0-1vmw.670.0.0.8169922        VMW       VMwareCertified     2021-02-01
lsi-mr3                        7.708.07.00-3vmw.670.3.73.14320388    VMW       VMwareCertified     2021-02-01
lsi-msgpt2                     20.00.06.00-2vmw.670.3.73.14320388    VMW       VMwareCertified     2021-02-01
lsi-msgpt35                    09.00.00.00-5vmw.670.3.73.14320388    VMW       VMwareCertified     2021-02-01
lsi-msgpt3                     17.00.02.00-1vmw.670.3.73.14320388    VMW       VMwareCertified     2021-02-01
misc-cnic-register             1.78.75.v60.7-1vmw.670.0.0.8169922    VMW       VMwareCertified     2021-02-01
misc-drivers                   6.7.0-2.48.13006603                   VMW       VMwareCertified     2021-02-01
mtip32xx-native                3.9.8-1vmw.670.1.28.10302608          VMW       VMwareCertified     2021-02-01
ne1000                         0.8.4-2vmw.670.2.48.13006603          VMW       VMwareCertified     2021-02-01
nenic                          1.0.29.0-1vmw.670.3.73.14320388       VMW       VMwareCertified     2021-02-01
net-bnx2                       2.2.4f.v60.10-2vmw.670.0.0.8169922    VMW       VMwareCertified     2021-02-01
net-bnx2x                      1.78.80.v60.12-2vmw.670.0.0.8169922   VMW       VMwareCertified     2021-02-01
net-cdc-ether                  1.0-3vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
net-cnic                       1.78.76.v60.13-2vmw.670.0.0.8169922   VMW       VMwareCertified     2021-02-01
net-e1000                      8.0.3.1-5vmw.670.0.0.8169922          VMW       VMwareCertified     2021-02-01
net-e1000e                     3.2.2.1-2vmw.670.0.0.8169922          VMW       VMwareCertified     2021-02-01
net-enic                       2.1.2.38-2vmw.670.0.0.8169922         VMW       VMwareCertified     2021-02-01
net-fcoe                       1.0.29.9.3-7vmw.670.0.0.8169922       VMW       VMwareCertified     2021-02-01
net-forcedeth                  0.61-2vmw.670.0.0.8169922             VMW       VMwareCertified     2021-02-01
net-ixgbe                      3.7.13.7.14iov-20vmw.670.0.0.8169922  VMW       VMwareCertified     2021-02-01
net-libfcoe-92                 1.0.24.9.4-8vmw.670.0.0.8169922       VMW       VMwareCertified     2021-02-01
net-mlx4-core                  1.9.7.0-1vmw.670.0.0.8169922          VMW       VMwareCertified     2021-02-01
net-mlx4-en                    1.9.7.0-1vmw.670.0.0.8169922          VMW       VMwareCertified     2021-02-01
net-nx-nic                     5.0.621-5vmw.670.0.0.8169922          VMW       VMwareCertified     2021-02-01
net-tg3                        3.131d.v60.4-2vmw.670.0.0.8169922     VMW       VMwareCertified     2021-02-01
net-usbnet                     1.0-3vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
net-vmxnet3                    1.1.3.0-3vmw.670.3.89.15160138        VMW       VMwareCertified     2021-02-01
nfnic                          4.0.0.29-0vmw.670.3.73.14320388       VMW       VMwareCertified     2021-02-01
nhpsa                          2.0.22-3vmw.670.1.28.10302608         VMW       VMwareCertified     2021-02-01
nmlx4-core                     3.17.13.1-1vmw.670.2.48.13006603      VMW       VMwareCertified     2021-02-01
nmlx4-en                       3.17.13.1-1vmw.670.2.48.13006603      VMW       VMwareCertified     2021-02-01
nmlx4-rdma                     3.17.13.1-1vmw.670.2.48.13006603      VMW       VMwareCertified     2021-02-01
nmlx5-core                     4.17.13.1-1vmw.670.3.73.14320388      VMW       VMwareCertified     2021-02-01
nmlx5-rdma                     4.17.13.1-1vmw.670.2.48.13006603      VMW       VMwareCertified     2021-02-01
ntg3                           4.1.3.2-1vmw.670.1.28.10302608        VMW       VMwareCertified     2021-02-01
nvme                           1.2.1.34-1vmw.670.0.0.8169922         VMW       VMwareCertified     2021-02-01
nvmxnet3-ens                   2.0.0.21-1vmw.670.0.0.8169922         VMW       VMwareCertified     2021-02-01
nvmxnet3                       2.0.0.29-1vmw.670.1.28.10302608       VMW       VMwareCertified     2021-02-01
ohci-usb-ohci                  1.0-3vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
pvscsi                         0.1-2vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
qcnic                          1.0.2.0.4-1vmw.670.0.0.8169922        VMW       VMwareCertified     2021-02-01
qedentv                        2.0.6.4-10vmw.670.1.28.10302608       VMW       VMwareCertified     2021-02-01
qfle3                          1.0.50.11-9vmw.670.0.0.8169922        VMW       VMwareCertified     2021-02-01
qfle3f                         1.0.25.0.2-14vmw.670.0.0.8169922      VMW       VMwareCertified     2021-02-01
qfle3i                         1.0.2.3.9-3vmw.670.0.0.8169922        VMW       VMwareCertified     2021-02-01
qflge                          1.1.0.11-1vmw.670.0.0.8169922         VMW       VMwareCertified     2021-02-01
sata-ahci                      3.0-26vmw.670.0.0.8169922             VMW       VMwareCertified     2021-02-01
sata-ata-piix                  2.12-10vmw.670.0.0.8169922            VMW       VMwareCertified     2021-02-01
sata-sata-nv                   3.5-4vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
sata-sata-promise              2.12-3vmw.670.0.0.8169922             VMW       VMwareCertified     2021-02-01
sata-sata-sil24                1.1-1vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
sata-sata-sil                  2.3-4vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
sata-sata-svw                  2.3-3vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
scsi-aacraid                   1.1.5.1-9vmw.670.0.0.8169922          VMW       VMwareCertified     2021-02-01
scsi-adp94xx                   1.0.8.12-6vmw.670.0.0.8169922         VMW       VMwareCertified     2021-02-01
scsi-aic79xx                   3.1-6vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
scsi-bnx2fc                    1.78.78.v60.8-1vmw.670.0.0.8169922    VMW       VMwareCertified     2021-02-01
scsi-bnx2i                     2.78.76.v60.8-1vmw.670.0.0.8169922    VMW       VMwareCertified     2021-02-01
scsi-fnic                      1.5.0.45-3vmw.670.0.0.8169922         VMW       VMwareCertified     2021-02-01
scsi-hpsa                      6.0.0.84-3vmw.670.0.0.8169922         VMW       VMwareCertified     2021-02-01
scsi-ips                       7.12.05-4vmw.670.0.0.8169922          VMW       VMwareCertified     2021-02-01
scsi-iscsi-linux-92            1.0.0.2-3vmw.670.0.0.8169922          VMW       VMwareCertified     2021-02-01
scsi-libfc-92                  1.0.40.9.3-5vmw.670.0.0.8169922       VMW       VMwareCertified     2021-02-01
scsi-megaraid-mbox             2.20.5.1-6vmw.670.0.0.8169922         VMW       VMwareCertified     2021-02-01
scsi-megaraid-sas              6.603.55.00-2vmw.670.0.0.8169922      VMW       VMwareCertified     2021-02-01
scsi-megaraid2                 2.00.4-9vmw.670.0.0.8169922           VMW       VMwareCertified     2021-02-01
scsi-mpt2sas                   19.00.00.00-2vmw.670.0.0.8169922      VMW       VMwareCertified     2021-02-01
scsi-mptsas                    4.23.01.00-10vmw.670.0.0.8169922      VMW       VMwareCertified     2021-02-01
scsi-mptspi                    4.23.01.00-10vmw.670.0.0.8169922      VMW       VMwareCertified     2021-02-01
scsi-qla4xxx                   5.01.03.2-7vmw.670.0.0.8169922        VMW       VMwareCertified     2021-02-01
sfvmk                          1.0.0.1003-6vmw.670.3.73.14320388     VMW       VMwareCertified     2021-02-01
shim-iscsi-linux-9-2-1-0       6.7.0-0.0.8169922                     VMW       VMwareCertified     2021-02-01
shim-iscsi-linux-9-2-2-0       6.7.0-0.0.8169922                     VMW       VMwareCertified     2021-02-01
shim-libata-9-2-1-0            6.7.0-0.0.8169922                     VMW       VMwareCertified     2021-02-01
shim-libata-9-2-2-0            6.7.0-0.0.8169922                     VMW       VMwareCertified     2021-02-01
shim-libfc-9-2-1-0             6.7.0-0.0.8169922                     VMW       VMwareCertified     2021-02-01
shim-libfc-9-2-2-0             6.7.0-0.0.8169922                     VMW       VMwareCertified     2021-02-01
shim-libfcoe-9-2-1-0           6.7.0-0.0.8169922                     VMW       VMwareCertified     2021-02-01
shim-libfcoe-9-2-2-0           6.7.0-0.0.8169922                     VMW       VMwareCertified     2021-02-01
shim-vmklinux-9-2-1-0          6.7.0-0.0.8169922                     VMW       VMwareCertified     2021-02-01
shim-vmklinux-9-2-2-0          6.7.0-0.0.8169922                     VMW       VMwareCertified     2021-02-01
shim-vmklinux-9-2-3-0          6.7.0-0.0.8169922                     VMW       VMwareCertified     2021-02-01
smartpqi                       1.0.1.553-28vmw.670.3.73.14320388     VMW       VMwareCertified     2021-02-01
uhci-usb-uhci                  1.0-3vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
usb-storage-usb-storage        1.0-3vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
usbcore-usb                    1.0-3vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
vmkata                         0.1-1vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
vmkfcoe                        1.0.0.1-1vmw.670.1.28.10302608        VMW       VMwareCertified     2021-02-01
vmkplexer-vmkplexer            6.7.0-0.0.8169922                     VMW       VMwareCertified     2021-02-01
vmkusb-nic-fling               2.1-4vmw.670.2.48.33242987            VMW       VMwareAccepted      2021-02-01
vmkusb                         0.1-1vmw.670.3.89.15160138            VMW       VMwareCertified     2021-02-01
vmw-ahci                       1.2.8-1vmw.670.3.73.14320388          VMW       VMwareCertified     2021-02-01
xhci-xhci                      1.0-3vmw.670.0.0.8169922              VMW       VMwareCertified     2021-02-01
cpu-microcode                  6.7.0-3.77.15018017                   VMware    VMwareCertified     2021-02-01
elx-esx-libelxima.so           11.4.1184.2-3.89.15160138             VMware    VMwareCertified     2021-02-01
esx-base                       6.7.0-3.89.15160138                   VMware    VMwareCertified     2021-02-01
esx-dvfilter-generic-fastpath  6.7.0-0.0.8169922                     VMware    VMwareCertified     2021-02-01
esx-ui                         1.33.4-14093553                       VMware    VMwareCertified     2021-02-01
esx-update                     6.7.0-3.89.15160138                   VMware    VMwareCertified     2021-02-01
esx-xserver                    6.7.0-3.73.14320388                   VMware    VMwareCertified     2021-02-01
lsu-hp-hpsa-plugin             2.0.0-16vmw.670.1.28.10302608         VMware    VMwareCertified     2021-02-01
lsu-intel-vmd-plugin           1.0.0-2vmw.670.1.28.10302608          VMware    VMwareCertified     2021-02-01
lsu-lsi-drivers-plugin         1.0.0-1vmw.670.2.48.13006603          VMware    VMwareCertified     2021-02-01
lsu-lsi-lsi-mr3-plugin         1.0.0-13vmw.670.1.28.10302608         VMware    VMwareCertified     2021-02-01
lsu-lsi-lsi-msgpt3-plugin      1.0.0-9vmw.670.2.48.13006603          VMware    VMwareCertified     2021-02-01
lsu-lsi-megaraid-sas-plugin    1.0.0-9vmw.670.0.0.8169922            VMware    VMwareCertified     2021-02-01
lsu-lsi-mpt2sas-plugin         2.0.0-7vmw.670.0.0.8169922            VMware    VMwareCertified     2021-02-01
lsu-smartpqi-plugin            1.0.0-3vmw.670.1.28.10302608          VMware    VMwareCertified     2021-02-01
native-misc-drivers            6.7.0-3.89.15160138                   VMware    VMwareCertified     2021-02-01
qlnativefc                     3.1.8.0-5vmw.670.3.73.14320388        VMware    VMwareCertified     2021-02-01
rste                           2.0.2.0088-7vmw.670.0.0.8169922       VMware    VMwareCertified     2021-02-01
vmware-esx-esxcli-nvme-plugin  1.2.0.32-0.0.8169922                  VMware    VMwareCertified     2021-02-01
vsan                           6.7.0-3.89.14840357                   VMware    VMwareCertified     2021-02-01
vsanhealth                     6.7.0-3.89.14840358                   VMware    VMwareCertified     2021-02-01
tools-light                    11.0.1.14773994-15160134              VMware    VMwareCertified     2021-02-01

果然是已安装过,所以被跳过了。如果未安装该驱动,此时的结果应该是

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: Realtek_bootbank_net55-r8168_8.045a-napi
   VIBs Removed:

还有一种方法是使用vib文件离线安装驱动,而不是在线安装:http://t.zoukankan.com/airoot-p-13452335.html

参考文献:

https://www.cnblogs.com/milton/p/5182103.html

https://vibsdepot.v-front.de/wiki/index.php/Welcome

http://t.zoukankan.com/airoot-p-13452335.html

Share

You may also like...

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注