Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
cdrage committed Nov 21, 2024
1 parent a2f7fe9 commit 545e6c3
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 4 deletions.
8 changes: 7 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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:
Expand Down
6 changes: 6 additions & 0 deletions bootc-nvidia-base-centos/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions bootc-nvidia-base-centos/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
4 changes: 2 additions & 2 deletions bootc-nvidia-base-fedora/Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion bootc-nvidia-base-fedora/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 545e6c3

Please sign in to comment.