CentOS 7.4 is used as an example.
Download the .tgz installation package based on the VM OS and verify the file integrity.
Take CentOS 7.4 as an example.
./mlnxofedinstall
[root@localhost MLNX_OFED_LINUX-4.2-1.2.0.0-rhel7.4-x86_64]# ./mlnxofedinstall Logs dir: /tmp/MLNX_OFED_LINUX.1479.logs General log file: /tmp/MLNX_OFED_LINUX.1479.logs/general.log Verifying KMP rpms compatibility with target kernel... Error: One or more required packages for installing MLNX_OFED_LINUX are missing. Please install the missing packages using your Linux distribution Package Management tool. Run: yum install tcl tk
If the following information is displayed after a while, the installation is successful:
Installation finished successfully. Preparing... ############################### [100%] Updating / installing... 1:mlnx-fw-updater-4.2-1.2.0.0 ############################### [100%] Added 'RUN_FW_UPDATER_ONBOOT=no to /etc/infiniband/openib.conf ...
[root@localhost MLNX_OFED_LINUX-4.2-1.2.0.0-rhel7.4-x86_64]# /etc/init.d/openibd restart Uploading HCA driver: [ OK ] Loading HCA driver and Access Layer: [ OK ]