customizer icon indicating copy to clipboard operation
customizer copied to clipboard

how to install graphics drivers

Open dlarue opened this issue 7 years ago • 4 comments

Does anyone know how to install Nvidia drivers? I'm looking more to get CUDA support working in a bootable ISO.

dlarue avatar Dec 31 '17 23:12 dlarue

it looks like when it builds the init ramdisk it wants to use modules for a kernel not part of the chroot. What's worst, I went and rebooted my host so that it was running the same kernel as in the chroot( linux-image-4.10.0-42-generic) and it still wants to build modules from 4.10.0-43-generic into the ramdisk.

I tried setting the KERNEL option in the customizer.conf to linux-image-4.10.0-42-generic but that had no effect.

dlarue avatar Jan 01 '18 02:01 dlarue

`vidia_304: Running module version sanity check.

  • Original module
    • No original module exists within this kernel
  • Installation
    • Installing to /lib/modules/4.10.0-42-generic/updates/dkms/

depmod...

DKMS: install completed. Setting up nvidia-current (304.135-0ubuntu1) ... Processing triggers for libc-bin (2.24-9ubuntu2.2) ... Processing triggers for initramfs-tools (0.125ubuntu9) ... update-initramfs: Generating /boot/initrd.img-4.10.0-43-generic WARNING: missing /lib/modules/4.10.0-43-generic Ensure all necessary drivers are built into the linux image! depmod: ERROR: could not open directory /lib/modules/4.10.0-43-generic: No such file or directory depmod: FATAL: could not search modules: No such file or directory cryptsetup: WARNING: could not determine root device from /etc/fstab depmod: WARNING: could not open /var/tmp/mkinitramfs_SSF0Qn/lib/modules/4.10.0-43-generic/modules.order: No such file or directory depmod: WARNING: could not open /var/tmp/mkinitramfs_SSF0Qn/lib/modules/4.10.0-43-generic/modules.builtin: No such file or directory `

dlarue avatar Jan 01 '18 02:01 dlarue

I got past the kernel issue by booting the host in the same updated kernel the chroot upgrades to - 4.10.0-42 and also had to rebuild the chroot filesystem since there were lingering 4.10.0-43 references.

Now my problem is that driver install sees the driver already installed in the host kernel and won't install into the chroot environment.

dlarue avatar Jan 01 '18 15:01 dlarue

Were you able to make any progress? I've gotten DKMS to build for ISOs before, but not for the nvidia stuff. I'll give it a shot with my 18.04 testing.

kamilion avatar Apr 26 '18 18:04 kamilion