Skip to content

Commit 1faaf67

Browse files
committed
Fix nvidia-gpu with kvm-driver (Production Branch: 510.60.02)
1 parent e9e3f81 commit 1faaf67

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

deploy/addons/gpu/nvidia-driver-installer.yaml.tmpl

+4-1
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,10 @@ spec:
6565
- name: ROOT_MOUNT_DIR
6666
value: /root
6767
- name: NVIDIA_DRIVER_VERSION
68-
value: "390.147"
68+
value: "510.60.02"
69+
# hack to not have to change https://github.com/GoogleCloudPlatform/container-engine-accelerators/blob/master/nvidia-driver-installer/minikube/entrypoint.sh
70+
command: ["/bin/sh"]
71+
args: ["-c", "sed -i 's|make modules_prepare|&;ln -s /root/lib/modules/${KERNEL_VERSION}/Module.symvers|' /entrypoint.sh;exec /entrypoint.sh"]
6972
volumeMounts:
7073
- name: nvidia-install-dir-host
7174
mountPath: /usr/local/nvidia

deploy/iso/minikube-iso/board/coreos/minikube/linux_defconfig

+1
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ CONFIG_JUMP_LABEL=y
7272
CONFIG_MODULES=y
7373
CONFIG_MODULE_UNLOAD=y
7474
CONFIG_MODULE_FORCE_UNLOAD=y
75+
CONFIG_MODVERSIONS=y
7576
CONFIG_PARTITION_ADVANCED=y
7677
CONFIG_OSF_PARTITION=y
7778
CONFIG_AMIGA_PARTITION=y

deploy/iso/minikube-iso/external.mk

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
include $(sort $(wildcard $(BR2_EXTERNAL_MINIKUBE_PATH)/linux/*.mk))
12
include $(sort $(wildcard $(BR2_EXTERNAL_MINIKUBE_PATH)/package/*/*.mk))
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
LINUX_EXTENSIONS += install-module-symvers
2+
3+
define LINUX_MODULE_SYMVERS_INSTALL_FILE
4+
mkdir -p $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)
5+
cp $(LINUX_DIR)/Module.symvers $(TARGET_DIR)/lib/modules/$(LINUX_VERSION_PROBED)/
6+
endef
7+
LINUX_TARGET_FINALIZE_HOOKS += LINUX_MODULE_SYMVERS_INSTALL_FILE

0 commit comments

Comments
 (0)