Unable to install nvidia-drivers on a GCE with base OS as flatcar-linux

Hello,

Trying to install Nvidia drivers on a GCE, it has GPU Nvidia Tesla T4, the base OS is flatcar-linux 5.10.96-flatcar. Tried to follow the steps mentioned here flatcar · master · nvidia / container-images / driver · GitLab
But unable to get any output with nvidia-smi
docker run --runtime=nvidia nvidia/cuda:11.7.1-base-ubuntu22.04 nvidia-smi

docker: Error response from daemon: failed to create shim: OCI runtime create failed: container_linux.go:380: starting container process caused: process_linux.go:545: container init caused: Running hook #1:: error running hook: exit status 1, stdout: , stderr: nvidia-container-cli.real: container error: cgroup subsystem devices not found: unknown.
ERRO[0000] error waiting for container: context canceled

docker run --name nvidia --gpus all 7a6929004bb6
docker: Error response from daemon: could not select device driver “” with capabilities: [[gpu]].
ERRO[0000] error waiting for container: context canceled

I also tried to use the images provided by nvidia
nvcr.io/nvidia/driver:460.32.03-5.10.25-flatcar
when using docker run with this it gives the below error:
========== NVIDIA Software Installer ==========
Starting installation of NVIDIA driver version 460.32.03 for Linux kernel version 5.10.25-flatcar
Stopping NVIDIA persistence daemon…
Unloading NVIDIA driver kernel modules…
Unmounting NVIDIA driver rootfs…
Checking NVIDIA driver packages…
Installing the Flatcar development environment on the filesystem /usr/src/nvidia-460.32.03/kernel…
parse error: Invalid numeric literal at line 1, column 10
Stopping NVIDIA persistence daemon…
Unloading NVIDIA driver kernel modules…
Unmounting NVIDIA driver rootfs…

Has anyone worked on installing nvidia drivers on Flatcar OS

Not sure what this has to do with Gitlab? This forum is for people using Gitlab and problems associated with Gitlab.

I suggest asking the people who maintain the nvidia repo or ask on a Flatcar Linux forum.