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

    XCP-ng GPU Passthrough - No GPU found

    Scheduled Pinned Locked Moved Development
    41 Posts 10 Posters 30.4k Views 10 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.
    • tjkreidlT Offline
      tjkreidl Ambassador @olivierlambert
      last edited by

      @olivierlambert No, it needs it (some sort of video board is necessary or it won't run at all). It has to at least be able to render the xsconsole interface.

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

        Okay good to know 🙂 I had the hope that a serial console would be enough. I'll take a look if I can have any luck.

        1 Reply Last reply Reply Quote 0
        • M Offline
          misterpc23
          last edited by

          So when will PCI passthrough be available through the GUI for lazy people such as myself? I don't mind dedicating a whole card per VM (Prefer it actually) but am highly hesitant to use the console. Thank you for all of the hard work, XCP-ng is awesome!

          borzelB 1 Reply Last reply Reply Quote 0
          • borzelB Offline
            borzel XCP-ng Center Team @misterpc23
            last edited by

            @misterpc23 sometimes even lazy people have to go to the cli 😉

            M 1 Reply Last reply Reply Quote 0
            • M Offline
              misterpc23 @borzel
              last edited by

              @borzel It wasn't scary at all! Only downside is my gpu hasn't showed up so I'm thinking it is not supported (R370). Where could I find a list of GPU's that will work with PCI passthrough with XCP-NG? Thank you for any help 🙂

              1 Reply Last reply Reply Quote 0
              • I Offline
                imtrobin
                last edited by

                KVM is quite easy to spoof the VM so the nvidia drivers work. Is it possible to do easily for xcp?

                https://lists.xenproject.org/archives/html/xen-devel/2016-07/msg01713.html

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

                  You can pass the entire GPU if you like, it's no big deal. vGPU is another story.

                  1 Reply Last reply Reply Quote 0
                  • I Offline
                    imtrobin
                    last edited by

                    I'm talking about GPU Passthrough, not vGPU. The GPU is passthrough fine but the nvidia driver results in code 43, meaning the driver detected it is running in a VM.

                    KVM bypass this by spoofing the VM, and it works, so can XCP do similar?

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

                      IDK what it means to spoofing the VM. If you can tell what's needed exactly, maybe we could do something 🙂

                      1 Reply Last reply Reply Quote 0
                      • I Offline
                        imtrobin
                        last edited by

                        In KVM, I need to do these

                        1. turn on cpu hidden state

                        https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF#"Error_43:_Driver_failed_to_load"_on_Nvidia_GPUs_passed_to_Windows_VMs

                        1. Assign the gpu to vfio directly (I guess we may not need to do this here)

                        2. Blacklist the nvidia drivers like this

                        https://techblog.jeppson.org/2018/03/windows-vm-gtx-1070-gpu-passthrough-proxmox-5/

                        https://forum.proxmox.com/threads/gpu-passthrough-tutorial-reference.34303/

                        1 Reply Last reply Reply Quote 0
                        • I Offline
                          imtrobin
                          last edited by

                          Hi, so some people have been able to do it

                          https://gridforums.nvidia.com/default/topic/9108/#

                          https://gridforums.nvidia.com/default/topic/8934/#

                          1 Reply Last reply Reply Quote 0
                          • P Offline
                            Pejcik
                            last edited by Pejcik

                            Hello,

                            My idea was to passthrough GPU to specific VM. According to many informations from the Internet, I'm doing this like that:

                            1. /opt/xensource/libexec/xen-cmdline --set-dom0 "xen-pciback.hide=(03:00.0)(03:00.1)"
                              but still even after reboot I see it on lspci
                            2. xe vm-param-set other-config:pci=0/0000:03:00.0, 0/0000:03:00.1 uuid=c41704d0-a1f2-6bc1-fe2e-adc26697e636
                              for old Nvidia 8600 and GT430 it doesn't work - Windows VM see that device, drivers are installed but all the time I have error 43 and this device is stopped
                              for Radeon 7870 it work ok

                            Audio and USB is working with that metod also.

                            Is this connected with Vbios of this GPU's ?

                            1 Reply Last reply Reply Quote 0
                            • L Offline
                              linhnb
                              last edited by

                              Finally, we have GPU passthrough in the GUI,
                              But it is not working...
                              My setup:
                              CPU 2700x
                              MOBO: x470 Taichi
                              RAM: 32GB
                              GPU: Rx580 sapphire Nitro 4GB

                              Please, I did use CLI and GUI, no work.
                              Cannot see it in Windows.
                              acc4199c-4b96-4306-b765-e6492841f099-image.png ![alt text](image url)

                              J 1 Reply Last reply Reply Quote 0
                              • A Offline
                                anthonyh
                                last edited by

                                Ironically, I am trying to do this as well. I put a second graphics card in a host (NVIDIA NVS 510) and made sure the appropriate virtalization settings were enabled in the BIOS. Running up to date XCP-ng 8.0 (yum update as of yesterday afternoon). I can assign the GPU to the Windows Server 2016 guest in XCP-ng Center, and the NVIDIA drivers seem to install fine, but Device Manager reports the following:

                                85c90cd3-11ae-49a3-ac29-ff5a07488c81-image.png

                                What's also interesting is even though it warns that you must be able to access the VM remotely as there will be no local console, there is still a local console. I don't know if this means anything.

                                Any ideas?

                                J L 2 Replies Last reply Reply Quote 0
                                • J Offline
                                  jmccoy555 @anthonyh
                                  last edited by

                                  @anthonyh Google code 43 NVIDIA...... Basic translation is we want to stop you doing this with a consumer card in a VM. There are solutions I believe.

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

                                    Yes, using Nvidia card supporting GPU passthrough 😛

                                    Otherwise, there's "border line" patches on Windows drivers available on GitHub, but we won't find those for you 😉

                                    1 Reply Last reply Reply Quote 1
                                    • J Offline
                                      jmccoy555 @linhnb
                                      last edited by

                                      @linhnb don't think you can use the GUI for GPUs, only vGPUs.

                                      RX580 does work, just follow the PCI passthrough guide.

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

                                        AMD cards are indeed far better for both vGPU and GPU passthrough: it just works.

                                        1 Reply Last reply Reply Quote 0
                                        • J Offline
                                          jmccoy555
                                          last edited by

                                          If only they made a LP vGPU card.... Looks like a WX4100 will have to do.

                                          1 Reply Last reply Reply Quote 0
                                          • L Offline
                                            linhnb @anthonyh
                                            last edited by

                                            @anthonyh yeah, I also got this note in version 8.1. I just don't know why. But my VM can't see Rx580, that's the problem

                                            @olivierlambert man, please, I got problem right here with AMD GPU. Please help.

                                            @jmccoy555 You can use the GUI. I checked, the code changes as if you do make it in CLI. please check the newest version 8.1
                                            b8929c93-4fea-4225-812e-6dbf288f2b5f-image.png
                                            6e41aa83-4789-4da5-9ecf-2a77e2ffce6d-image.png

                                            olivierlambertO J 2 Replies Last reply Reply Quote 0
                                            • First post
                                              Last post