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.
    • D Offline
      Dean50
      last edited by

      I encountered an issue while following the instructions from Tom Lawrence on passing through my GPU. Despite following the steps meticulously, the advanced tab of the VM I passed it to on XCP-ng still does not show the GPU. I'm unsure about the missing element in the process.

      495e9860-04cc-44d3-8513-196d1e1a6701-image.png

      The VM is running Ubuntu 22.4.
      Running XCP-ng 8.3

      Here, you can see the assignable PCI

      4ca6b444-02c2-4301-aa16-fb267f256556-image.png

      This is what I get after running...

      xe vm-param-get param-name=other-config uuid=156a2344-3d6a-50a6-bc0e-b3d252e820c0
      2ad5c490-0861-43f6-952f-b6e5542a6e90-image.png

      Thanks for any input
      Dino

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

        Hi,

        What's happening if you do lspci in your VM? Do you see the device?

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

          @olivierlambert

          It shows the card I'm passing through, but the line above it shows the number it should be. It was 0000:03:00.0 when I looked for it on the XO server.

          6913a0cd-c508-43df-bbcb-f0553c9d2f0e-image.png

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

            @Dean50 Based on your lspci inside the VM the gpu is passed through. Did you install the correct drivers for that card inside the VM? I have found on some nvidia cards I had to go download the correct driver for that card and then it works with Plex or jellyfin, guessing for transcoding because of the VM name.

            Also jellyfin has a great documentation on getting the card setup in Linux for use of transcoding.

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

              @scot1297tutaio
              Thank you very much for the information. I made a very superficial attempt at installing drivers for the card. I will dive into that a bit deeper today or sometime soon to try it. Hopefully this particular card will work. Thank you very much for the information. I will do a search for the jellyfin article you mentioned . Thanks again.

              S 1 Reply Last reply Reply Quote 0
              • 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
                                            • First post
                                              Last post