Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rhel9.2 driver install error #101

Open
lengrongfu opened this issue Aug 28, 2024 · 1 comment
Open

rhel9.2 driver install error #101

lengrongfu opened this issue Aug 28, 2024 · 1 comment

Comments

@lengrongfu
Copy link

use image: nvcr.io/nvidia/driver:535.183.06-rhel9.2

I encountered two problems when installing the driver offline on rhel9.2:

install elfutils-libelf-devel error is not found

Image

The elfutils-libelf package exists in the image , and the version does not match that in the offline yum repository.

Image

Modify it to step-by-step installation to succeed.

    echo "Installing elfutils..."
    if ! dnf install -q -y elfutils-libelf.$DRIVER_ARCH; then
        echo "FATAL: failed to install elfutils packages. RHEL entitlement may be improperly deployed."
        exit 1
    fi
    if ! dnf install -q -y elfutils-libelf-devel.$DRIVER_ARCH; then
        echo "FATAL: failed to install elfutils packages. RHEL entitlement may be improperly deployed."
        exit 1
    fi

install kernel-devel error is dependency package version issue.

Install kernel-devel-5.14.0-284.11.1.el9_2.x86_64 dependency version issue

Image

Image

I was able to install successfully by adding --allowerasing

echo "Installing Linux kernel headers..."
dnf -q -y --releasever=${DNF_RELEASEVER} install kernel-headers-${KERNEL_VERSION} kernel-devel-${KERNEL_VERSION} --allowerasing > /dev/null

I encountered a similar problem when installing the centos driver before. Can we optimize the nvidia-driver installation shell?

install success log,
Image

@lengrongfu
Copy link
Author

@tariq1890 We can submit a PR to enhancement install driver?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant