isard-vdi / isard

Isard VDI. Open Source KVM Virtual Desktops based on KVM Linux and dockers. Please use https://gitlab.com/isard/isardvdi
http://www.isardvdi.com
GNU Affero General Public License v3.0
188 stars 57 forks source link

Inquiries about NVIDIA vGPU support #427

Closed dndud2532 closed 1 year ago

dndud2532 commented 1 year ago

Hi, Thanks to your help, the test is going well.

If you have any questions, please contact us.

Currently, my server has NVIDIA A100 vGPU enabled, but within the IsardVDI portal, only A40 and P4 are checked in GPU Profile.

Is it possible to use other than the above two cards?

If it is available, how do I activate it?

image

image

213

alarraz commented 1 year ago

Hi,

can you copy/paste this script in your server and share the output?

https://gitlab.com/-/snippets/2400795

Alberto Larraz IsardVDI

dndud2532 commented 1 year ago

Hello, I wrote and executed the content of the script you sent me as follows.

image

I get the following output, is there anything else I need to check?

image

alarraz commented 1 year ago

Hello,

it seems that the script has not been executed. Have you executed previously in the hos this command?t

/usr/lib/nvidia/sriov-manage -e 00000000:c3:00.0

Then enter in the engine container and verify that script exists and execute inside:

docker exec -it isard-engine /bin/ash

inside the container:

/isard # ls -l info_nvidia.py
-rw-r--r--    1 root     root           192 Sep  1 16:11 info_nvidia.py

/isard # cat info_nvidia.py 
from engine.models.hyp import hyp
from pprint import pprint
h = self = hyp("isard-hypervisor",port=2022)
h.get_hyp_info(nvidia_enabled=True)
h.get_nvidia_capabilities()
pprint(h.info_nvidia)

/isard # python3 info_nvidia.py 
dndud2532 commented 1 year ago

Hello, I ran the cmd you suggested as below, but the screen is the same as before. Am I missing something while running it?

image