please help me guys,
when i try to use nvidia-smi, it always return with no devices were found, eventho the log and other command clearly state that my gpu already connected :
for install : sudo sh cuda_12.2.1_535.86.10_linux.run
for version : nvidia-settings --version
nvidia-settings: version 535.86.10
The NVIDIA Settings tool.
This program is used to configure the NVIDIA Linux graphics driver.
For more detail, please see the nvidia-settings(1) man page.
for VGA : lspci -k | grep -EA3 ‘VGA|3D|Display’
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
Subsystem: VMware SVGA II Adapter
Kernel driver in use: vmwgfx
Kernel modules: vmwgfx
00:10.0 SCSI storage controller: Broadcom / LSI 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
0b:00.0 3D controller: NVIDIA Corporation GP102GL [Tesla P40] (rev a1)
Subsystem: NVIDIA Corporation GP102GL [Tesla P40]
Kernel driver in use: nvidia
Kernel modules: nvidiafb, nouveau, nvidia_drm, nvidia
i need this urgently for my school project this week, please help me
nvidia-bug-report.log (666.7 KB)
Please read the log file you created, especially the part about different driver installation methods, blacklisting nouveau, using the correct compiler and checking the README for further troubleshooting.
It is probably related to the fact that you are running on a VM and try to initialize X for the NVIDIA GPU while VMWare already provides a virtual GPU through vmwgfx
.
Thanks!
-> An alternate method of installing the NVIDIA driver was detected. (This is usually a package provided by your distributor.) A driver installed via that method may integrate better with your system than a driver installed by nvidia-installer.
Please review the message provided by the maintainer of this alternate installation method and decide how to proceed:
The NVIDIA driver provided by Ubuntu can be installed by launching the "Software & Updates" application, and by selecting the NVIDIA driver from the "Additional Drivers" tab.
-> For some distributions, Nouveau can be disabled by adding a file in the modprobe configuration directory. Would you like nvidia-installer to attempt to create this modprobe file for you? (Answer: Yes)
-> One or more modprobe configuration files to disable Nouveau have been written. For some distributions, this may be sufficient to disable Nouveau; other distributions may require modification of the initial ramdisk. Please reboot your system and attempt NVIDIA driver installation again. Note if you later wish to re-enable Nouveau, you will need to delete these files: /usr/lib/modprobe.d/nvidia-installer-disable-nouveau.conf, /etc/modprobe.d/nvidia-installer-disable-nouveau.conf
warning: the compiler differs from the one used to build the kernel
The kernel was built by: gcc (Ubuntu 11.3.0-1ubuntu1~22.04.1) 11.3.0
You are using: cc (Ubuntu 11.4.0-1ubuntu1~22.04) 11.4.0
Aug 28 08:29:08 lin-ubuntu205 /usr/libexec/gdm-x-session[1201]: (EE) NVIDIA(GPU-0): check your system's kernel log for additional error
Aug 28 08:29:08 lin-ubuntu205 /usr/libexec/gdm-x-session[1201]: (EE) NVIDIA(GPU-0): messages and refer to Chapter 8: Common Problems in the
Aug 28 08:29:08 lin-ubuntu205 /usr/libexec/gdm-x-session[1201]: (EE) NVIDIA(GPU-0): README for additional information.
Aug 28 08:29:08 lin-ubuntu205 /usr/libexec/gdm-x-session[1201]: (EE) NVIDIA(GPU-0): Failed to initialize the NVIDIA graphics device!
understood, i try to block the vmwgfx kernel with
sudo nano /etc/modprobe.d/blacklist.conf
blacklist vmwgfx
i also try to install it like the way log suggest
but somehow when i run nvidia-settings --version
nvidia-settings: version 510.47.03
The NVIDIA Settings tool.
This program is used to configure the NVIDIA Linux graphics driver.
For more detail, please see the nvidia-settings(1) man page.
it state 510 instead of 535
nvidia-bug-report-v2.log (1.2 MB)
note : i also try to run driver without disabling vmwgfx but it still doesnt give any good result.
Please help