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

CentOS driver installer #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

AtzeDeVries
Copy link

@AtzeDeVries AtzeDeVries commented Aug 11, 2018

This PR has a CentOS 7 driver installer. Works the same as the Ubuntu installer. One difference is that the umount /usr/bin is not working as with Ubuntu. This is because in CentOS 7 /bin is a symbolic link to /usr/bin and the scripts starts bash so /usr/bin/bash is in use and unable to umount. A 'fixed' it by doing a lazy umount of /usr/bin (umount -l /usr/bin)

@rohitagarwal003
Copy link
Contributor

Sorry. This can't be merged. We don't have infrastructure setup to test that this installer remains working. (#54 (comment))

--opengl-prefix="${NVIDIA_INSTALL_DIR_CONTAINER}" \
--no-install-compat32-libs \
--log-file-name="${NVIDIA_INSTALL_DIR_CONTAINER}/nvidia-installer.log" \
--kernel-source-path=/usr/src/kernels/${KERNEL_VERSION} \
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be /root/usr/src

clkao added a commit to InfuseAI/container-engine-accelerators that referenced this pull request Jan 22, 2019
This allows reusing the entrypoint by overriding how the kernel is downloaded and where to look for it.

As an alternative to GoogleCloudPlatform#91, you can use this for centos by setting the following extra env in the daemonset:

```
          - name: KERNEL_SOURCE_DOWNLOAD_COMMAND
            value: 'yum install -y kernel-devel-${KERNEL_VERSION}'
          - name: NVIDIA_INSTALLER_EXTRA_ARGS
            value: '--kernel-source-path=/usr/src/kernels/${KERNEL_VERSION}'

```

It is also possible to use this for airgapped install provided the kernel-devel package and .run file are available on the host:

```
          - name: NVIDIA_DRIVER_DOWNLOAD_URL
            value: file:///root/usr/src/NVIDIA-Linux-x86_64-384.130.run
          - name: KERNEL_SOURCE_DOWNLOAD_COMMAND
            value: 'echo'
          - name: NVIDIA_INSTALLER_EXTRA_ARGS
            value: '--kernel-source-path=/root/usr/src/kernels/${KERNEL_VERSION}'
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants