MiniKnight

How-to Guide Install Mellanox Driver Proxmox VE 5.1

More involved

  1. MiniKnight

    MiniKnight Well-Known Member

    Joined:
    Mar 30, 2012
    Messages:
    2,836
    Likes Received:
    812
    MiniKnight submitted a new resource:

    Install Mellanox Driver Proxmox VE 5.1 - More involved

    Read more about this resource...
     
    #1
    jak, _alex, Marsh and 4 others like this.
  2. Patrick

    Patrick Administrator
    Staff Member

    Joined:
    Dec 21, 2010
    Messages:
    11,314
    Likes Received:
    4,264
    Nice writeup.
     
    #2
  3. K D

    K D Well-Known Member

    Joined:
    Dec 24, 2016
    Messages:
    1,394
    Likes Received:
    289
    Thank you.
     
    #3
  4. Patrick

    Patrick Administrator
    Staff Member

    Joined:
    Dec 21, 2010
    Messages:
    11,314
    Likes Received:
    4,264
    Hey @MiniKnight

    I just tried this and did have to do the .deb install. I also had an error:
    Code:
    Error: The current mlnx-en is intended for debian9.0
    
    So I fixed that and updated your guide with:
    Code:
    ./install --skip-distro-check 
     
    #4
  5. ideabox

    ideabox Member

    Joined:
    Dec 11, 2016
    Messages:
    68
    Likes Received:
    23
    Is Ubuntu not the underlying kernel??? I thought it was
     
    #5
  6. PigLover

    PigLover Moderator

    Joined:
    Jan 26, 2011
    Messages:
    2,722
    Likes Received:
    1,074
    The Proxmox kernel is a custom build of the upstream kernel, for Proxmox 5.1 currently based on 4.13-4. The Proxmox 5.1 user level libraries are Debian 9.0. The flag Patrick noted has to be set is because the kernel does not identify itself as Debian.
     
    #6
    ideabox likes this.
  7. _alex

    _alex Active Member

    Joined:
    Jan 28, 2016
    Messages:
    873
    Likes Received:
    94
    Nice.
    Is this a working dkms-install ?

    The last time i tried to install ofed it ran badly into some dependency mismatch. The result were either removed pve-packages or the installer stuck in a loop while checking deps. So i stayed with the in-tree tools and modules, what also works.
     
    #7
  8. ideabox

    ideabox Member

    Joined:
    Dec 11, 2016
    Messages:
    68
    Likes Received:
    23
    Getting an error trying this:

    # lsb_release is required to continue
    # Current operation system is not supported!

    Any ideas?
     
    #8
  9. cluefr

    cluefr New Member

    Joined:
    Feb 11, 2018
    Messages:
    4
    Likes Received:
    1
    apt-get install lsb-release

    my issue when all is fixed is a loop in proxmox package need, i just install all package and work fine even after kernel upgrade
     
    #9
  10. ZeroQool

    ZeroQool New Member

    Joined:
    Nov 17, 2018
    Messages:
    1
    Likes Received:
    0
    Code:
    root@proxmox:~/mlnx-en-4.2-1.0.1.0-debian9.0-x86_64# ./install --skip-distro-check
    Logs dir: /tmp/mlnx-en.17630.logs
    General log file: /tmp/mlnx-en.17630.logs/general.log
    
    Below is the list of mlnx-en packages that you have chosen
    (some may have been added by the installer due to package dependencies):
    
    ofed-scripts
    mlnx-en-utils
    mlnx-en-dkms
    mstflint
    
    This program will install the mlnx-en package on your machine.
    Note that all other Mellanox, OEM, OFED, RDMA or Distribution IB packages will be removed.
    Those packages are removed due to conflicts with mlnx-en, do not reinstall them.
    
    Do you want to continue?[y/N]:y
    
    Checking SW Requirements...
    Removing old packages...
    Uninstalling the previous version of mlnx-en
    
    
    Hang up after this line "Uninstalling the previous version of mlnx-en". I dont know what I can do?
     
    #10
  11. lowfat

    lowfat Member

    Joined:
    Nov 25, 2016
    Messages:
    71
    Likes Received:
    57
    Similar issue. Mine just hangs @ 'Removing old packages...'

    Code:
    
    root@pve:/zfsraid/media/temp/MLNX_OFED_LINUX-4.5-1.0.1.0-debian9.5-x86_64# ./mlnxofedinstall --skip-distro-check --add-kernel-support
    Note: This program will create MLNX_OFED_LINUX TGZ for debian9.6 under /tmp/MLNX_OFED_LINUX-4.5-1.0.1.0-4.15.18-9-pve directory.
    See log file /tmp/MLNX_OFED_LINUX-4.5-1.0.1.0-4.15.18-9-pve/mlnx_iso.2312_logs/mlnx_ofed_iso.2312.log
    
    WARNING: The current MLNX_OFED_LINUX is intended for debian9.5 !
    You may need to use the '--skip-distro-check' flag to install the resulting MLNX_OFED_LINUX on this system.
    
    Checking if all needed packages are installed...
    Building MLNX_OFED_LINUX DEBS . Please wait...
    Creating metadata-rpms for 4.15.18-9-pve ...
    WARNING: If you are going to configure this package as a repository, then please note
    WARNING: that it is not signed, therefore, you need to set 'trusted=yes' in the sources.list file.
    WARNING: Example: deb [trusted=yes] file:/<path to MLNX_OFED DEBS folder> ./
    Created /tmp/MLNX_OFED_LINUX-4.5-1.0.1.0-4.15.18-9-pve/MLNX_OFED_LINUX-4.5-1.0.1.0-debian9.6-ext.tgz
    Removing old packages...
    
     
    #11
  12. cluefr

    cluefr New Member

    Joined:
    Feb 11, 2018
    Messages:
    4
    Likes Received:
    1
    @lowfat @ZeroQool
    Here is a work around

    Run one time as you did and when it's hang on "Removing old packages" (code is looping, check dpkg.log for check if loop happen), stop the install script.

    vi the install script (mlnxofedinstall) and search for remove_old_packages function.
    Then edit it like this :

    Code:
    #
    # remove old packages
    #
    sub remove_old_packages
    {
    return;
    Run again and it's will work fine
     
    #12
    lowfat likes this.
Similar Threads: Install Mellanox
Forum Title Date
Guides Install IPMIView 2 on Debian/ Ubuntu May 4, 2017
Guides CEPH Install work instruction (Kraken release) Feb 15, 2017
Guides Installing OpenSSL 1.1.0 on Ubuntu Sep 17, 2016
Guides GIGABYTE EL-20 Debian 8.5 Minimal Server install guide Aug 31, 2016
Guides Install Script for ixgbe on Debian/ Ubuntu Feb 10, 2016

Share This Page