Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Plugin] Linuxserver.io - Unraid Nvidia

Featured Replies

replying to my issue... I get the plugin to see the card if I remove the vfio-pci.ids= (my id's of the nvidia gpu, nvidia sound, nvidia usb, nvidia serial)  This breaks my ability to connect to a VM.  Tried doing the pcie_acs_override=downstream but still no go... guess next try is to add multithread I guess and see if that does anything.  

 

added the multithread option, still a no go. 

 

So does anyone with these newer cards (1660ti and above) have the ability to use the card with the nvidia plugin and kvm?  KVM doesn't seem to lime my iommu group due to those dang usb/serial controllers on the nvidia card.... hence I had to stub them to allow me to launch the vm.

 

Really hope I can do both; otherwise may just have to return the card for another model (1060 or the likes)

 

 

Side note, does anyone else have a 1660ti??  Do they all have this stupid nvidia USB/Serial on them?  It seems to be what screwing with me.

Edited by dnoyeb

  • Replies 2.5k
  • Views 662k
  • Created
  • Last Reply
1 hour ago, dnoyeb said:

replying to my issue... I get the plugin to see the card if I remove the vfio-pci.ids= (my id's of the nvidia gpu, nvidia sound, nvidia usb, nvidia serial)  This breaks my ability to connect to a VM.  Tried doing the pcie_acs_override=downstream but still no go... guess next try is to add multithread I guess and see if that does anything.  

 

added the multithread option, still a no go. 

 

So does anyone with these newer cards (1660ti and above) have the ability to use the card with the nvidia plugin and kvm?  KVM doesn't seem to lime my iommu group due to those dang usb/serial controllers on the nvidia card.... hence I had to stub them to allow me to launch the vm.

 

Really hope I can do both; otherwise may just have to return the card for another model (1060 or the likes)

 

 

Side note, does anyone else have a 1660ti??  Do they all have this stupid nvidia USB/Serial on them?  It seems to be what screwing with me.

I had this issue also. The workaround (although it's not really a "workaround" as much as it is just doing it a little differently) is to, instead of stubbing the NVIDIA USB and serial controllers, add them as two hostdev blocks to the VM XML for the two devices. This will have the same result with the two devices appearing in the GUI so you can check them to pass to the VM, but they will be returned to the host when the VM shuts down. This way, all four NVIDIA devices in the IOMMU group go to the VM together and are released together. Spaceinvader One has a good video with copy/paste XML on doing this with an NVMe drive, but the same principle applies here as well. 

6 hours ago, dnoyeb said:

Question... Installed a new 1660ti for playing games in a VM (I know will cause issues if I launch while transcodes going).  However, to get the VM's to boot I had to use vfio-pci.ids= in my syslinux config as the card apparently has a USB / serial controller built in and the VM's wouldn't launch since the placement group had the nvidia gpu, the nvidia sound, the nvidia usb and the nvidia serial. 

 

Awyways, I used vfio-pci.ids= to resolve; but it seems that perhaps based on my syslog; it's keeping the kernel from this plugin from attaching properly to the card:

 


Sep  3 18:54:59 unRAID kernel: nvidia: loading out-of-tree module taints kernel.
Sep  3 18:54:59 unRAID kernel: nvidia: module license 'NVIDIA' taints kernel.
Sep  3 18:54:59 unRAID kernel: Disabling lock debugging due to kernel taint
Sep  3 18:54:59 unRAID kernel: sd 10:0:2:0: [sdn] Attached SCSI disk
Sep  3 18:54:59 unRAID kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 247
Sep  3 18:54:59 unRAID kernel: NVRM: The NVIDIA probe routine was not called for 1 device(s).
Sep  3 18:54:59 unRAID kernel: NVRM: This can occur when a driver such as: 
Sep  3 18:54:59 unRAID kernel: NVRM: nouveau, rivafb, nvidiafb or rivatv 
Sep  3 18:54:59 unRAID kernel: NVRM: was loaded and obtained ownership of the NVIDIA device(s).
Sep  3 18:54:59 unRAID kernel: NVRM: Try unloading the conflicting kernel module (and/or
Sep  3 18:54:59 unRAID kernel: NVRM: reconfigure your kernel without the conflicting
Sep  3 18:54:59 unRAID kernel: NVRM: driver(s)), then try loading the NVIDIA kernel module
Sep  3 18:54:59 unRAID kernel: NVRM: again.
Sep  3 18:54:59 unRAID kernel: NVRM: No NVIDIA devices probed.
Sep  3 18:54:59 unRAID kernel: nvidia-nvlink: Unregistered the Nvlink Core, major device number 247
Sep  3 18:54:59 unRAID kernel: nvidia-nvlink: Nvlink Core is being initialized, major device number 247
Sep  3 18:54:59 unRAID kernel: NVRM: The NVIDIA probe routine was not called for 1 device(s).
Sep  3 18:54:59 unRAID kernel: NVRM: This can occur when a driver such as: 
Sep  3 18:54:59 unRAID kernel: NVRM: nouveau, rivafb, nvidiafb or rivatv 
Sep  3 18:54:59 unRAID kernel: NVRM: was loaded and obtained ownership of the NVIDIA device(s).
Sep  3 18:54:59 unRAID kernel: NVRM: Try unloading the conflicting kernel module (and/or
Sep  3 18:54:59 unRAID kernel: NVRM: reconfigure your kernel without the conflicting
Sep  3 18:54:59 unRAID kernel: NVRM: driver(s)), then try loading the NVIDIA kernel module
Sep  3 18:54:59 unRAID kernel: NVRM: again.
Sep  3 18:54:59 unRAID kernel: NVRM: No NVIDIA devices probed.
Sep  3 18:54:59 unRAID kernel: nvidia-nvlink: Unregistered the Nvlink Core, major device number 247

 

Anyone had this issue and work around it?

 

As far as I know, there is no way around that.

Ok, big thanks to JasonM!  Got the VM side working while using the Nvidia build without pinning anything.  

 

Few things were needed, first:

Step 1 (initial instructions JasonM shared and probably would have been enough if I was already running OVMF):

Quote

After the very last hostdev tag, a few lines from the bottom. add two more that will look like this:

 

<hostdev mode='subsystem' type='pci' managed='yes'>
      <source>
        <address domain='0x0000' bus='0x00' slot='0x00' function='0x0'/>
      </source>
</hostdev>

 

Domain stays as is. Bus, slot, and function, you will need to change. Next to the GPU drop down in the VM settings, in parentheses beside the card name will be a number in the format (00:00.0). The first two digits are bus, next two slot, last is function. On my card, functions 0 and 1 are the GPU and the sound controller; functions 2 and 3 are the USB and serial controllers. Yours may be different. You can also verify these numbers in Tools > System Devices. After you've added the two missing functions to the XML, save changes, then flip back to GUI mode and the devices should be listed, just like they were when you were stubbing the card.

 

However this didn't seem to get it working, ended up that my Windows10 VM was running on SeaBios.  I used the directions from alturismo to prepare my SeaBios backed version of Windows 10 install for OVMF:

Step 2 (prepare vidsk for OVMF): 

Quote

i used powershell in admin mode

 

mbr2gpt /validate /allowFullOS  <-- if ok then

mbr2gpt /convert /disk:0 /allowFullOS

 

now your win10 VM disk is prepared for EFI boot,.shut the VM down.

 

create a new win10 VM with your same settings (exept use OVMF instead seabios), pointing to your existing and edited vdisk1.img (or whatever name it has).

 

Step 3: Edit the newly created VM template, pin the CPU's, manually add the vdisk, checking boxes for the keyboard / mouse I was attaching and saving without starting.

Step 4: edit VM again, this time go into XML mode, add hostdev code you built from Step one up above and paste under the last entry for hostdev

Step 5: save and edit one last time in GUI mode.  Add the Nvidia GPU and sound.  Save

step 6: verify you don't have any transcodes going on, boot up the sucker and go play some Doom. 

 

just figured i'd share in case anyone came across my issue and wondered how it got solved.

 

Thanks for the shout out. Helping each other is what this community is all about.

 

Also, I see above that you're passing your keyboard and mouse from the host to the VM. Since you're handing off the USB controller from your GPU, you can connect a USB hub to that USB-C port on the back of the GPU, and then plug the input devices into that. This way, you don't have to pass them through at all, and you also get true USB Plug-and-play support in windows. You can connect flash drives and the like without unRAID even knowing they're there. I do this with a dedicated PCI USB card, but it works with that port on the back of the GPU just as well.

Edited by JasonM

And swing and a miss number 2 traded up from a 760 to 960 gtx but same issue "no Cuda enabled devices found" as well as rm-init-adapter failed does this mean these cards can not do transcoding? I've passed it through to the VM successfully (off during testing though)

Edited by Fiservedpi

15 hours ago, Fiservedpi said:

And swing and a miss number 2 traded up from a 760 to 960 gtx but same issue "no Cuda enabled devices found" as well as rm-init-adapter failed does this mean these cards can not do transcoding? I've passed it through to the VM successfully (off during testing though)

A GTX 960 should work, so there might be something else at play.

Love this plugin! It made me go out and buy a new 1660 ti so I can transcode 4K movies to my devices.

 

I have no issues getting the 1660 ti passed through to Emby. Everything works great on that front. The issue that I am having is that my VMs no longer see the video card I pass through to them. I have a Nvidia 710 that I use for my Windows 10 VM, and though Unraid shows it as an option when setting up the VM, when I pass it through and boot the VM, though UnRaid claims it is running, my screen stays black. If I remove the video card, I can access the VM through VNC without issue.

 

If I revert to  vanilla UnRaid, the VM boots up and displays without issue.

 

I have tried stubbing the video card, but that doesn't seem to help. I have shifted to every possible slot on my motherboard to no avail.

Has anyone seen this before, or have an idea what could be the issue? I've also tried with a Radeon 460 with the same results.

16 hours ago, DoeBoye said:

Love this plugin! It made me go out and buy a new 1660 ti so I can transcode 4K movies to my devices.

 

I have no issues getting the 1660 ti passed through to Emby. Everything works great on that front. The issue that I am having is that my VMs no longer see the video card I pass through to them. I have a Nvidia 710 that I use for my Windows 10 VM, and though Unraid shows it as an option when setting up the VM, when I pass it through and boot the VM, though UnRaid claims it is running, my screen stays black. If I remove the video card, I can access the VM through VNC without issue.

 

If I revert to  vanilla UnRaid, the VM boots up and displays without issue.

 

I have tried stubbing the video card, but that doesn't seem to help. I have shifted to every possible slot on my motherboard to no avail.

Has anyone seen this before, or have an idea what could be the issue? I've also tried with a Radeon 460 with the same results.

That's strange. I have a gtx1060 and a gt710. Similarly, 1060 is used for transcoding in emby and 710 is used for a win vm. They both work fine. I did not stub the cards, emby config defines the id for 1060 so it leaves the 710 alone.

 

Are you starting unraid in gui mode? I do headless and it uses the mobo built-in matrox gpu. That could be the main difference between our servers.

4 hours ago, aptalca said:

That's strange. I have a gtx1060 and a gt710. Similarly, 1060 is used for transcoding in emby and 710 is used for a win vm. They both work fine. I did not stub the cards, emby config defines the id for 1060 so it leaves the 710 alone.

 

Are you starting unraid in gui mode? I do headless and it uses the mobo built-in matrox gpu. That could be the main difference between our servers.

No gui mode and I have an onboard basic vga chip that is usually used by Unraid. It was never an issue with vanilla unraid, but something about the drivers inside unraid is making things more difficult.

 

I tried again with my Radeon 460 and the Nvidia Unraid plugin, and it seems to be fine (last time I tried it caused the same issue, but it was late and I might have done something else wrong), so it's definitely something to do with the Nvidia card itself. I even tried an old 9500 that I dug up, but no luck with that either.

Plex Media Server 1.17.0.1709 is available in the Beta update channel

NEW:

(Transcoder) Update to current upstream ffmpeg
(Transcoder) Support for hardware transcoding on Linux with Intel 9th-gen processors
(Transcoder) Support for VC-1 hardware decoding on supported platforms
(Transcoder) Support for hardware decoding on Linux with Nvidia GPUs
(Transcoder) Support for zero-copy hardware transcoding on Linux with Nvidia GPUs
(Transcoder) Support for zero-copy hardware transcoding of interlaced media

https://forums.plex.tv/t/plex-media-server/30447/286

Hi guys. Not sure if this is the best place to post this question, but I cant find it anywhere. I am running Nvidia build 6.7.0. I want to upgrade to build 6.7.2, but that includes the Nvidia driver 430, which my GTX 770 does not appear to work with. As soon as I upgrade, Plex no longer is able to play vides (giving some network error). Is it possible to upgrade the Nvidia build, but retain the old driver?

This may be a stupid question, but assuming I throw an 1060 in my server, I assume I have to connect power to the card for it to work?

57 minutes ago, ashman70 said:

This may be a stupid question, but assuming I throw an 1060 in my server, I assume I have to connect power to the card for it to work?

Yes, I believe the 1060 requires a power cable connected

12 hours ago, isaacery said:

Hi guys. Not sure if this is the best place to post this question, but I cant find it anywhere. I am running Nvidia build 6.7.0. I want to upgrade to build 6.7.2, but that includes the Nvidia driver 430, which my GTX 770 does not appear to work with. As soon as I upgrade, Plex no longer is able to play vides (giving some network error). Is it possible to upgrade the Nvidia build, but retain the old driver?

There is no way to keep the driver version. It's pulling the latest driver at the time of build.

13 hours ago, isaacery said:

Hi guys. Not sure if this is the best place to post this question, but I cant find it anywhere. I am running Nvidia build 6.7.0. I want to upgrade to build 6.7.2, but that includes the Nvidia driver 430, which my GTX 770 does not appear to work with. As soon as I upgrade, Plex no longer is able to play vides (giving some network error). Is it possible to upgrade the Nvidia build, but retain the old driver?

No, we build each version of unraid with the latest drivers available ( This is all explained in the first post.)

Hello all,

Plex now requires nvidia 430.18 and the unraid nvidia build 6.7.2 only has 430.14. is there a way to update the driver or an ETA on a new build?

I had to disalble hardware transcoding in plex as it stopped playing.

Edited by msilkjr

Just now, msilkjr said:

Hello all,

Plex now requires nvidia 430.18 and the unraid nvidia build 6.7.2 only has 430.14. is there a way to update the driver or an ETA on a new build?

 

With the new PlexPass build that include the built-in Decode?

22 minutes ago, Pducharme said:

 

With the new PlexPass build that include the built-in Decode?

Yes I guess... Info is here... https://forums.plex.tv/t/plex-media-server/30447/286

 

Plex Media Server 1.17.0.1709 is available in the Beta update channel

NEW:

(Transcoder) Update to current upstream ffmpeg

(Transcoder) Support for hardware transcoding on Linux with Intel 9th-gen processors

(Transcoder) Support for VC-1 hardware decoding on supported platforms

(Transcoder) Support for hardware decoding on Linux with Nvidia GPUs

(Transcoder) Support for zero-copy hardware transcoding on Linux with Nvidia GPUs

(Transcoder) Support for zero-copy hardware transcoding of interlaced media

FIXES:

(DVR) Comskip was not available in recording options on FreeBSD.

(DVR) Enhanced Plex Media Server’s performance by skipping reads of previously processed XMLTV guide data. (#9846)

(Transcoder) The server could become unresponsive after certain precisely-timed client interactions.

Corrects Live TV playback error when tuning to channel that contains space(s) in it.

(Transcoder) The server could use large amounts of CPU time when converting subtitles (#10478)

Note: Hardware transcoding with Nvidia GPUs now requires driver v418.30 or newer

Edited by msilkjr

3 hours ago, msilkjr said:

Plex Media Server 1.17.0.1709 is available in the Beta update channel

NEW:

Note: Hardware transcoding with Nvidia GPUs now requires driver v418.30 or newer

 

They wrote :   418.30 or newer,  not 430.18 or newer ;)

We have : 430.14, so higher than 418.30 ?

 

 

Edited by Pducharme

Interesting that Plex needs a specific driver for decode / encode yet emby has been working fine since release.

5 hours ago, msilkjr said:

Hello all,

Plex now requires nvidia 430.18 and the unraid nvidia build 6.7.2 only has 430.14. is there a way to update the driver or an ETA on a new build?

I had to disalble hardware transcoding in plex as it stopped playing.

When you had it enabled, and you went to start a transcode would it crash your system? I replaced my motherboard last weekend and have been trying to get back to stable. All the times I get a transcode started again with the correct set up, it hangs the full system, and I have to hit the reset button. I am trying to figure out if it’s something I’m borking or a mobo issue, or something else.

 

 

Disregard comment, I forgot to add the runtime variable to extra parameters. I are stupid. 

Edited by urhellishntemre

When running nvidia-smi dmon, I can see both enc and dec activity. Interestingly, it seems something with Tautulli isn't caught up yet. Tautulli still shows "hw" for encoding only, not decoding. Is anyone seeing "hw" for both with this new version of Plex and 6.7.2?

I re-enabled Hardware Transcoding. starting one stream is ok. starting a second one i see it in nvidia-smi but plex just spins and never plays. this only started after the last plex upgrade. if I uncheck hardware transcode in plex it all works again.

How has the setup process changed (if at all) with the newest Public PMS release (version 1.17.0.1709)? 

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.