install nvidia driver with cubic

Asked by ibrahim bondokji

i am trying to make ubuntu 18.04 version with preinstalled nvidia driver. the problem is when i run the driver installer from .run file it tells me that the kernel does not support module unloading.

when trying to install it through 'ubuntu-drivers autoinstall', the installation finishes, but when i try to check driver version with "nvidia-smi" it says:
'"NVIDIA-SMI has failed because it couldn't communicate with the NVIDIA driver. Make sure that the latest NVIDIA driver is installed and running.
"

anyone with experience how to add nvidia driver to cusom ubuntu distro?

all of this is within chroot environment

thanks

Question information

Language:
English Edit question
Status:
Solved
For:
Cubic Edit question
Assignee:
No assignee Edit question
Solved by:
ibrahim bondokji
Solved:
Last query:
Last reply:
Revision history for this message
Cubic PPA (cubic-wizard) said :
#1

This should be fine.
Services do not run in the virtual environment, so you are not getting a result.
If you have installed it correctly, the driver will be available once you boot-up the generated ISO on a system with the Nvidia card/chip.

In Cubic's virtual terminal environment, either of these commands are sufficient to install the Nvidia driver:

$ apt update && ubuntu-drivers --gpgpu nvidia autoinstall
..or...
$ apt update && apt install nvidia-utils-440

Revision history for this message
Cubic PPA (cubic-wizard) said :
#2

UPDATE: CORRECTING LAST COMMAND DUE TO CUT/PASTE ERROR...

This should be fine.
Services do not run in the virtual environment, so you are not getting a result.
If you have installed it correctly, the driver will be available once you boot-up the generated ISO on a system with the Nvidia card/chip.

In Cubic's virtual terminal environment, either of these commands are sufficient to install the Nvidia driver:

$ apt update && ubuntu-drivers --gpgpu nvidia autoinstall
..or...
$ apt update && sudo apt install xserver-xorg-video-nvidia-440

Revision history for this message
ibrahim bondokji (ibrahimbond) said :
#3

thanks for the response

it worked after i installed headers for the related kernel version then choosing the correct kernel version in a following step in cubic.

Revision history for this message
Experienced n00b (bkurn) said :
#4

I need help with the same problem with Ubuntu 22.04. I've tried the solution instructions with current and updated kernels and I always come up with the same outcome. Upon booting the ISO, Ubuntu reports that it is using a proprietary driver nvidia-driver-525 but when I run nvidia-smi I get the same error as the original post - couldn't communicate with the NVIDIA driver. Also, 'lshw - c video' reports that driver=nouveau.

Please help me understand what I'm doing wrong or missing. Thank you!

Brian