Help Center> Bare Metal Server> Private Image Creation Guide> Linux> (Optional) Installing the IB driver
Updated on 2022-07-12 GMT+08:00

(Optional) Installing the IB driver

Scenario

CentOS 7.4 is used as an example.

  1. The IB driver can be installed only for CentOS 7.3, CentOS 7.4, CentOS 7.6 ARM, RedHat 7.3, RedHat 7.4, SUSE 12 SP3 and Oracle Linux 7.4.
  2. You are advised to install the 4.2 or later version.

Prerequisites

  • You have logged in to the VM.
  • The required IB driver installation package has been uploaded to the VM.

Procedure

  1. Download the OFED package as instructed in Software.

    Download the .tgz installation package based on the VM OS and verify the file integrity.

    Take CentOS 7.4 as an example.

  2. Upload the downloaded OFED installation package to the VM. For details, see Configuring the VM Environment.
  3. Run the tar -zxvf xxx command (xxx indicates the OFED installation package name) to decompress the package.
  4. After the decompression is complete, go to the MLNX_OFED_LINUX-4.2-1.2.0.0-RHEL7.4-X86_64 folder to install the package.

    ./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
  5. During the installation, if the dependency package is missing, run the following command to install it:

    yum install tcl tk

  6. Run the ./mlnxofedinstall installation script again.

    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
    ...
  7. After the installation is complete, run the /etc/init.d/openibd restart command to load the driver.
    [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 ]