CentOS driver installer#91
Open
AtzeDeVries wants to merge 1 commit intoGoogleCloudPlatform:masterfrom
Open
Conversation
Contributor
|
Sorry. This can't be merged. We don't have infrastructure setup to test that this installer remains working. (#54 (comment)) |
clkao
suggested changes
Nov 14, 2018
| --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} \ |
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}' ```
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR has a CentOS 7 driver installer. Works the same as the Ubuntu installer. One difference is that the
umount /usr/binis not working as with Ubuntu. This is because in CentOS 7/binis a symbolic link to/usr/binand the scripts starts bash so/usr/bin/bashis in use and unable to umount. A 'fixed' it by doing a lazy umount of/usr/bin(umount -l /usr/bin)