How to upgrade the host NIC driver
Solution
-
The following procedure uses kernel version 3.10.0-957.27.2.el7.x86_64 as an example:
-
Log in to the host and check the current NIC driver version.
[root@localhost ~]# modinfo ixgbe |grep -v alias -
Download the updated NIC driver from the official source.
-
Back up the existing driver:
[root@localhost ~]# cp /lib/modules/3.10.0-957.27.2.el7.x86_64/kernel/drivers/net/ethernet/intel/ixgbe/ixgbe.ko.xz /root/ixgbe.ko.xz_lod -
Replace the existing driver:
[root@localhost ~]# cp /root/ixgbe.ko.xz /lib/modules/3.10.0-957.27.2.el7.x86_64/kernel/drivers/net/ethernet/intel/ixgbe/ixgbe.ko.xz -
Check dependencies:
[root@localhost ~]# depmod -a -
Back up the initramfs file:
[root@localhost ~]# mv /boot/initramfs-3.10.0-957.27.2.el7.x86_64.img /boot/initramfs-3.10.0-957.27.2.el7.x86_64.img_bak -
Rebuild the initramfs file:
[root@localhost ~]# cp /root/ixgbe.ko.xz /lib/modules/3.10.0-957.27.2.el7.x86_64/kernel/drivers/net/ethernet/intel/ixgbe/ixgbe.ko.xz -
Restart the host:
[root@localhost ~]# sync && sync && shutdown -r now