brokeDude2901 / dxgkrnl_ubuntu

Microsoft GPU-P (dxgkrnl) on Hyper-V Ubuntu VM
137 stars 25 forks source link

Failed to use command `nvidia-smi` #1

Closed johnny12150 closed 2 years ago

johnny12150 commented 2 years ago

I have followed the instruction to execute all commands without encountering any errors. However, I am not able to use nvida-smi. By the way, nvidia-smi works in my WSL2 with Ubuntu 20.04.

More info:

$ uname -r
5.15.0-41-generic
$ lspci
be44:00:00.0 3D controller: Microsoft Corporation Device 008e

Full error log:

Failed to initialize NVML: GPU access blocked by the operating system 
Failed to properly shut down NVML: GPU access blocked by the operating system 
johnny12150 commented 2 years ago

image

It seems that the GPU has been detected but nvidia-smi command can't be executed.

brokeDude2901 commented 2 years ago

hi you need to install dxgkrnl kernel from the release page and set it to boot as default option


wget https://github.com/brokeDude2901/dxgkrnl_ubuntu/releases/download/main/linux-headers-5.10.102.1-dxgrknl_5.10.102.1-dxgrknl-10.00.Custom_amd64.deb
wget https://github.com/brokeDude2901/dxgkrnl_ubuntu/releases/download/main/linux-image-5.10.102.1-dxgrknl_5.10.102.1-dxgrknl-10.00.Custom_amd64.deb
sudo dpkg -i *.deb```
johnny12150 commented 2 years ago

Thanks, I have solved the issue by selecting correct kernel under the grub menu.