[PVE-User] vGPU scheduling

Eneko Lacunza elacunza at binovo.es
Wed May 24 15:54:06 CEST 2023


Hi,

El 24/5/23 a las 15:47, Dominik Csapak escribió:
>
>>
>> We're looking to move a PoC in a customer to full-scale production.
>>
>> Proxmox/Ceph cluster will be for VDI, and some VMs will use vGPU.
>>
>> I'd like to know if vGPU status is being exposed right now (as of 
>> 7.4) for each node through API, as it is done for RAM/CPU, and if 
>> not, about any plans to implement that so that a scheduler (in our 
>> case that should be UDS Enterprise VDI manager) can choose a node 
>> with free vGPUs to deploy VDIs.
>
> what exactly do you mean with vGPU status?
>
> there currently is no api to see which pci devices are in use of a vm
> (though that could be done per node, not really for mediated devices 
> though)
>
> there is the /nodes/NODENAME/hardware/pci api call which shows what 
> devices exist
> and if they have mdev (mediated device) capability (e.g. NVIDIA GRID 
> vGPU)
>
> for those cards there also exists the api call
>
> /nodes/NODENAME/hardware/pci/PCIID/mdev
>
> which gives a list of mdev types and how many are available of them
>
>
> does that help?
>
> if you have more specific requirements (or i misunderstood you), please
> open a bug/feature request on https://bugzilla.proxmox.com

Yes, this is very helpfull, I didn't see this mdev entry in my review of 
the API. An aggregation of mdev entries in a node could be used for 
scheduling VMs that need vGPU/mdev.

Thank you very much!

Eneko Lacunza
Zuzendari teknikoa | Director técnico
Binovo IT Human Project

Tel. +34 943 569 206 | https://www.binovo.es
Astigarragako Bidea, 2 - 2º izda. Oficina 10-11, 20180 Oiartzun

https://www.youtube.com/user/CANALBINOVO
https://www.linkedin.com/company/37269706/




More information about the pve-user mailing list