XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Passing Though a GPU

    Scheduled Pinned Locked Moved Solved Hardware
    26 Posts 3 Posters 6.1k Views 3 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • olivierlambertO Offline
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      It's perfectly normal that the PCI device number is different between the dom0 and the VM. Because the VM is a fully independent system with its own PCI enumeration.

      1 Reply Last reply Reply Quote 0
      • S Offline
        scot1297tutaio @Dean50
        last edited by

        @Dean50 Also in there documentation they have a list of cards that will work.

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          Dean50 @scot1297tutaio
          last edited by Dean50

          @scot1297tutaio

          I installed the NVIDIA Drivers but still do not see the card as available in the VM under the GPU option. It still shows an unclickable NONE. This card may not work. It is a lower-end card I had lying around.

          93e6937e-5cf6-4acd-bf64-6e56153eeaf4-image.png

          173ddf54-3f1d-45b2-b305-6ff7951dae4b-image.png

          When I run the nvidia-smi command, I'm getting this...

          5a8b9200-765f-470f-89e7-3acdd6f54610-image.png

          1 Reply Last reply Reply Quote 0
          • olivierlambertO Offline
            olivierlambert Vates 🪐 Co-Founder CEO
            last edited by

            Double check you did not forgot to pass the whole GPU (which is maybe using 2x PCIe addresses, like the GPU itself and the sound/HDMI part). Please do a lspci command in the Dom0 to check you don't have any other Nvidia entry.

            D 1 Reply Last reply Reply Quote 0
            • D Offline
              Dean50 @olivierlambert
              last edited by

              @olivierlambert Thanks again for your input. How do I go about the lspci in Dom0? I’m learning more, but I’m still a novice. lol

              D 1 Reply Last reply Reply Quote 0
              • D Offline
                Dean50 @Dean50
                last edited by

                @Dean50

                You were correct. It had two items for the NVIDIA GPU to pass through. However, it still did not show after getting passed, assigned, and rebooted.

                5fda7a34-e457-4db6-9576-83d46e4cf49b-image.png

                66c51f76-b09a-4ddc-a479-ce4e962bb063-image.png

                1 Reply Last reply Reply Quote 0
                • olivierlambertO Offline
                  olivierlambert Vates 🪐 Co-Founder CEO
                  last edited by

                  That's expected, displaying PCI passed in the UI will come in few days now šŸ™‚

                  1 Reply Last reply Reply Quote 0
                  • olivierlambertO Offline
                    olivierlambert Vates 🪐 Co-Founder CEO
                    last edited by

                    Still, despite the display issue, does it work now?

                    D 1 Reply Last reply Reply Quote 0
                    • D Offline
                      Dean50 @olivierlambert
                      last edited by

                      @olivierlambert Something is still off. When I run the Nvidia-smi command, I get an unknown error after installing the NVIDIA Drivers.

                      fedec236-70ea-445e-a7cf-b8ce0e839127-image.png

                      D 1 Reply Last reply Reply Quote 0
                      • olivierlambertO Offline
                        olivierlambert Vates 🪐 Co-Founder CEO
                        last edited by

                        lspci in the VM shows the 2 nvidia pci devices, right?

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          Dean50 @Dean50
                          last edited by

                          @Dean50

                          Yes....

                          03f57684-c41a-46f5-a33f-7dcc3b9c6f90-image.png

                          D 1 Reply Last reply Reply Quote 0
                          • D Offline
                            Dean50 @Dean50
                            last edited by

                            @Dean50 something strange is going on. I turned on transcoding in the Jellyfin console. It seems that the transcoding is working when it is switched on, but it is not providing audio. Regardless, it seems that XCP-ng is passing through the GPU as it is intended. Thanks for all your input. Greatly appreciate the support.

                            1 Reply Last reply Reply Quote 0
                            • olivierlambertO Offline
                              olivierlambert Vates 🪐 Co-Founder CEO
                              last edited by

                              Hey no problem, you are welcome šŸ™‚ Really hope you'll make it!

                              D 1 Reply Last reply Reply Quote 0
                              • D Offline
                                Dean50 @olivierlambert
                                last edited by

                                @olivierlambert

                                I was able to get things working. Even though it does not show in the GUI on XO, it works for transcoding. However, I cannot complete a backup of that particular VM with this error...

                                cfdf5458-dba4-405c-bd86-2367d085b742-image.png

                                1 Reply Last reply Reply Quote 0
                                • olivierlambertO Offline
                                  olivierlambert Vates 🪐 Co-Founder CEO
                                  last edited by

                                  1. Excellent news for being able to rely on the GPU šŸ™‚ So the driver accepted to install? What did you change?
                                  2. The UI with real PCI passthrough displayed is now available in latest XO.
                                  D 1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    Dean50 @olivierlambert
                                    last edited by

                                    @olivierlambert

                                    I thought because the nvidia-smi command showed an error that it did not pass through correctly. I went into the Jellyfin app and set it to use Transcoding, and it worked. Now, the only problem is, for some reason, I can't get that particular VM to complete a remote Delta backup. I continue to get the error shown above. I've deleted the job and rebuilt it, but get the same error. Any ideas? I really need to back up this media server. Thanks again.

                                    1 Reply Last reply Reply Quote 0
                                    • olivierlambertO Offline
                                      olivierlambert Vates 🪐 Co-Founder CEO
                                      last edited by

                                      The reason why is written in caps: VM HAS PCI ATTACHED. You can't snapshot live a VM with a PCI device attached. A possible trick: use "Offline snapshot" in your backup job, that might work.

                                      D 1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        Dean50 @olivierlambert
                                        last edited by

                                        @olivierlambert yes, the reason was quite obvious. A solution is what I was looking for. I will definitely try it with offline snapshots. Appreciate the info.

                                        1 Reply Last reply Reply Quote 1
                                        • olivierlambertO Offline
                                          olivierlambert Vates 🪐 Co-Founder CEO
                                          last edited by

                                          Keep us posted!

                                          D 1 Reply Last reply Reply Quote 0
                                          • D Offline
                                            Dean50 @olivierlambert
                                            last edited by

                                            @olivierlambert That worked. I selected an offline snapshot, and the job was completed. Thanks again.

                                            1 Reply Last reply Reply Quote 1
                                            • First post
                                              Last post