From 545e6c3f36bd50b44b446a1d3f9fc9e71afb74d1 Mon Sep 17 00:00:00 2001 From: Charlie Drage Date: Thu, 21 Nov 2024 14:35:40 -0500 Subject: [PATCH] Update --- README.md | 8 +++++++- bootc-nvidia-base-centos/Containerfile | 6 ++++++ bootc-nvidia-base-centos/README.md | 6 ++++++ bootc-nvidia-base-fedora/Containerfile | 4 ++-- bootc-nvidia-base-fedora/README.md | 2 +- 5 files changed, 22 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bd49c46..4161875 100755 --- a/README.md +++ b/README.md @@ -220,6 +220,12 @@ RUN echo -e ' OpenShift 4.17 release\n\ DISABLE SECURE BOOT! You have been warned! Disable boot is **KNOWN** to cause issues with the nvidia drivers. ENABLE 4G DECODING in the BIOS. This is needed for certain nvidia cards to work such as the Tesla P40. + CentOS vs Fedora NVIDIA base image... + * centos base image uses an older nvidia driver which may work better for you (as of right now, 550 and cuda: 12.4 + * fedora base image uses a newer one (as of right now, 565 and cuda: 12.7) + + If you find one works vs the other, please let me know. Right now, the Tesla P40 works only with fedora image, but the RTX 3060 works with both... very odd! + IMPORTANT NOTE: On boot, this will **not** have the nvidia drivers loaded it they are compiled. This is because akmods are suppose to be built on boot, but this doesn't work with bootc. Instead, the nvidia drivers will recompile + use akmod + modprobe on boot.. and may take a minute to load. @@ -249,7 +255,7 @@ RUN echo -e ' OpenShift 4.17 release\n\ DISABLE SECURE BOOT! You have been warned! Disable boot is **KNOWN** to cause issues with the nvidia drivers. ENABLE 4G DECODING in the BIOS. This is needed for certain nvidia cards to work such as the Tesla P40. - This Fedora 40 as the base image to (hopefully) be as stable as possible. Tried with Fedora 40 but found that the kernel was moving too fast + This Fedora 41 as the base image to (hopefully) be as stable as possible. Tried with Fedora 40 but found that the kernel was moving too fast for the nvidia drivers to keep up / work properly / update correctly. IMPORTANT NOTE: diff --git a/bootc-nvidia-base-centos/Containerfile b/bootc-nvidia-base-centos/Containerfile index ee80fb7..34b864c 100644 --- a/bootc-nvidia-base-centos/Containerfile +++ b/bootc-nvidia-base-centos/Containerfile @@ -7,6 +7,12 @@ # DISABLE SECURE BOOT! You have been warned! Disable boot is **KNOWN** to cause issues with the nvidia drivers. # ENABLE 4G DECODING in the BIOS. This is needed for certain nvidia cards to work such as the Tesla P40. # +# CentOS vs Fedora NVIDIA base image... +# * centos base image uses an older nvidia driver which may work better for you (as of right now, 550 and cuda: 12.4 +# * fedora base image uses a newer one (as of right now, 565 and cuda: 12.7) +# +# If you find one works vs the other, please let me know. Right now, the Tesla P40 works only with fedora image, but the RTX 3060 works with both... very odd! +# # IMPORTANT NOTE: # On boot, this will **not** have the nvidia drivers loaded it they are compiled. This is because akmods are suppose to be built on boot, but this doesn't work with bootc. # Instead, the nvidia drivers will recompile + use akmod + modprobe on boot.. and may take a minute to load. diff --git a/bootc-nvidia-base-centos/README.md b/bootc-nvidia-base-centos/README.md index 9cf77d2..4796e27 100644 --- a/bootc-nvidia-base-centos/README.md +++ b/bootc-nvidia-base-centos/README.md @@ -7,6 +7,12 @@ DISABLE SECURE BOOT! You have been warned! Disable boot is **KNOWN** to cause issues with the nvidia drivers. ENABLE 4G DECODING in the BIOS. This is needed for certain nvidia cards to work such as the Tesla P40. + CentOS vs Fedora NVIDIA base image... + * centos base image uses an older nvidia driver which may work better for you (as of right now, 550 and cuda: 12.4 + * fedora base image uses a newer one (as of right now, 565 and cuda: 12.7) + + If you find one works vs the other, please let me know. Right now, the Tesla P40 works only with fedora image, but the RTX 3060 works with both... very odd! + IMPORTANT NOTE: On boot, this will **not** have the nvidia drivers loaded it they are compiled. This is because akmods are suppose to be built on boot, but this doesn't work with bootc. Instead, the nvidia drivers will recompile + use akmod + modprobe on boot.. and may take a minute to load. diff --git a/bootc-nvidia-base-fedora/Containerfile b/bootc-nvidia-base-fedora/Containerfile index 3aa5933..fc46421 100644 --- a/bootc-nvidia-base-fedora/Containerfile +++ b/bootc-nvidia-base-fedora/Containerfile @@ -7,7 +7,7 @@ # DISABLE SECURE BOOT! You have been warned! Disable boot is **KNOWN** to cause issues with the nvidia drivers. # ENABLE 4G DECODING in the BIOS. This is needed for certain nvidia cards to work such as the Tesla P40. # -# This Fedora 40 as the base image to (hopefully) be as stable as possible. Tried with Fedora 40 but found that the kernel was moving too fast +# This Fedora 41 as the base image to (hopefully) be as stable as possible. Tried with Fedora 40 but found that the kernel was moving too fast # for the nvidia drivers to keep up / work properly / update correctly. # # IMPORTANT NOTE: @@ -29,7 +29,7 @@ # 1. In your OTHER Containerfile, change to `FROM git.k8s.land/cdrage/bootc-nvidia-base-centos` / this Containerfile. # 2. The nvidia drivers will recompile + use akmod + modprobe on boot. # 3. Use nvidia-smi command within the booted container image to see if it works. -FROM quay.io/fedora/fedora-bootc:40 +FROM quay.io/fedora/fedora-bootc:41 #! Install rpmfusion free and nonfree repo's for access to the nvidia drivers RUN dnf install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm diff --git a/bootc-nvidia-base-fedora/README.md b/bootc-nvidia-base-fedora/README.md index d81b5cb..bd34311 100644 --- a/bootc-nvidia-base-fedora/README.md +++ b/bootc-nvidia-base-fedora/README.md @@ -7,7 +7,7 @@ DISABLE SECURE BOOT! You have been warned! Disable boot is **KNOWN** to cause issues with the nvidia drivers. ENABLE 4G DECODING in the BIOS. This is needed for certain nvidia cards to work such as the Tesla P40. - This Fedora 40 as the base image to (hopefully) be as stable as possible. Tried with Fedora 40 but found that the kernel was moving too fast + This Fedora 41 as the base image to (hopefully) be as stable as possible. Tried with Fedora 40 but found that the kernel was moving too fast for the nvidia drivers to keep up / work properly / update correctly. IMPORTANT NOTE: