DualCoder / vgpu_unlock

Unlock vGPU functionality for consumer grade GPUs.
MIT License
4.61k stars 430 forks source link

can't find nvidia file after successful install 460.32.04 linux kvm driver #40

Closed IgerAnes closed 3 years ago

IgerAnes commented 3 years ago

hello everyone, I follow the tutorial from vGPU wiki to set up the ubuntu 20.04 system. It works well, until to step 8 to modify four nvidia file. I can't find any file named nvidia inside /lib/systemd/system/, I am not sure why there's no file inside. I also remove nvidia driver and reinstall it again, everytime it said driver install sucessfully, but it still can't be found. anyone can help me.

host system: ubuntu 20.04 cpu: amd 3600xt gpu: 2060 super driver: nvidia-linux-x86_64-460.32.04-vgpu-kvm.run (from nvidia licensing software download)(use --dkms install) iommu: enable svm: enable grub_cmdline_linux_default: amd_iommu=on iommu=pt

IgerAnes commented 3 years ago

and after finish install nvidia driver, my lightdm can't work, and the message show as below [FAILED] Failed to strat Detect the available GPUs and deal with any system changes [FAILED] Failed to start Light Display Manager I use systemctl status gpu-manager.service to check my gpu status, and it show message as below, gpu-manager.service: Start request repeated too quickly gpu-manager.service: Failed with result 'start-limit-hit' anyone meet the same issue.

sigboe commented 3 years ago

Yes, the nvidia-linux-x86_64-460.32.04-vgpu-kvm.run does not have "DRM" or Direct Rendering Manager or whatever needed to run graphical programs including X or Wayland on the driver. The vgpu-kvm driver is meant for headless use. That is without a monitor attached.

Luckily for us, someone has managed to litterally merge 460.32.04-vgpu-kvm with the retail version of 460.32.03 (often called gforce driver in the community). Go to discord to learn how to install the merged driver.

IgerAnes commented 3 years ago

@sigboe thank you. I'll try it. :)

IgerAnes commented 3 years ago

umm.. I tried to use the merged-vgpu-driver to install. run ./nvidia-installer --dkms happily, the lightdm can work well, but I still can't find nvidia file at /lib/systemd/system/ @@. I used find *.service | grep nvidia to search nvidia-vgpud.service, no result appear. Screenshot from 2021-04-22 13-43-52 I also use nvidia-smi to test if I install driver correctly, it actually appear the result. Screenshot from 2021-04-22 13-44-40

IgerAnes commented 3 years ago

Thanks everyone on discord I found out that my ubuntu install nvidia driver to the wrong directory, after using sudo systemctl cat nvidia-vgpud. Screenshot from 2021-04-22 14-51-31 If you have same issue, hope will help someone. :)