stl88083365 / unraid-nvidia-vgpu-driver

127 stars 22 forks source link

Configuration example for Tesla P40 #34

Open llambkin opened 3 months ago

llambkin commented 3 months ago

Hey all,

I have installed the plugin and have the mdevctl types showing correctly. However I don't know how to configure the VM side through the XML. Could someone please help me out with how to set up the XML to assign the VGPU correctly? I'd also like some pointers on how to do the profile overrides to make the max resolution to 1080P.

My use case is to split the card into 2, one for Unraid to use for transcoding, AI etc. and the other for a windows 10 VM.

Please see attached screenshot of the current output from the plugin:

image
MrSmits commented 2 months ago

Hi! I can't help you with with the profile overrides, but for the config of the VM this thread helped me: https://forums.unraid.net/topic/129492-vgpu-nvidia-tesla-cards/?do=findComment&comment=1383515

Basically I added below XML in the config of my VM to get my mediated device added and it works like a charm in my Windows 11 guest!

<hostdev mode='subsystem' type='mdev' managed='yes' model='vfio-pci' display='off'>
      <source>
        <address uuid='2b6976dd-8620-49de-8d8d-ae9ba47a50d1'/>
      </source>
      <alias name='hostdev0'/>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x01' function='0x0'/>
    </hostdev>