Skip to content

Instantly share code, notes, and snippets.

@HoKim98
Created October 13, 2022 07:40
Show Gist options
  • Save HoKim98/4569d929c3968a0025fb3be91fc56bd5 to your computer and use it in GitHub Desktop.
Save HoKim98/4569d929c3968a0025fb3be91fc56bd5 to your computer and use it in GitHub Desktop.
Install Mellanox MFT
apt-get update && apt-get install gcc make dkms apt-utils pciutils -y
wget https://www.mellanox.com/downloads/MFT/mft-4.21.0-99-x86_64-deb.tgz
tar xf ./mft-4.21.0-99-x86_64-deb.tgz
pushd mft-4.21.0-99-x86_64-deb
./install.sh
popd
rm mft-4.21.0-99-x86_64-deb*
wget https://www.mellanox.com/downloads/ofed/MLNX_EN-5.7-1.0.2.0/mlnx-en-5.7-1.0.2.0-ubuntu22.04-x86_64.tgz
tar xf mlnx-en-5.7-1.0.2.0-ubuntu22.04-x86_64.tgz
# In runtime...
# sudo docker run --rm
# -v /opt/modules/:/lib/modules/5.15.63-flatcar/
# -v /dev/:/dev/
# -v /sys/:/sys/
# --cap-add CAP_SYS_ADMIN
# --privileged --net host --ipc host -it --name ubuntu ubuntu:rolling
pushd mlnx-en-5.7-1.0.2.0-ubuntu22.04-x86_64
./install --add-kernel-support
popd
rm mlnx-en-5.7-1.0.2.0-ubuntu22.04-x86_64*
# Run your own commands...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment