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

    AMD Radeon GPU Passthrough

    Scheduled Pinned Locked Moved Compute
    12 Posts 3 Posters 4.3k Views 2 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.
    • J Offline
      jmccoy555
      last edited by jmccoy555

      @l1c @Johnkrips

      Hi, I can pass through a Radeon Pro WX 4100 Graphics in 8.2 to a Windows VM with no issue. It is basically the same as the RX550 just aimed at a different application.

      I do not need to hide it. It appears as a GPU available for passthough in the VM's Advanced options in XO. Its also shows up as a GPU available for passthrough in XCP-ng Centre.

      If you have hidden it (it shouldn't be necessary for supported GPUs - I did initially and had issues), then try unhiding it and see if you have any better luck!

      I'm not so sure if its is the same for 'consumer / gamer' GPUs.

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

        @jmccoy555
        It's definite not the same for consumer grade cards unfortunately 😕
        At least not any recent card. I have an old ATI HD5xxx card that XCP-ng recognizes and am able to assign to a VM via the VM's advance settings in XO.

        Do you need to install the drivers for that card in the VM, or does it just work?

        The problem for me arises when I try to install the drivers, but before I try to install them the VM becomes very unstable, which tells me there's something going wrong when I pass the pci lanes

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

          @jmccoy555

          I got the same error message before I hid the card.

          Internal error: xenopsd internal error: Cannot_add(0000:0b:00.0, Xenctrlext.Unix_error(30, “1:Operation not permitted”))

          However how do you unhide?

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

            @l1c I did passthough my RX580 a while ago (I was trying to virtualise my desktop but had USB issues and parked the idea), either in 8.0 or 8.1 I can't remember and it did work.

            Yes I did install the driver, but only the drive (via Device Manager if in Windows), and not to whole AMD control panel. I think the file is around 80MB rather than 300+MB.

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

              @johnkrips I would edit the grub file in /boot and remove the line that gets added or you can just run the command that you used to hide it but without the device address. So if you want to hide no devices it will just end in =

              1 Reply Last reply Reply Quote 0
              • L Offline
                l1c @Johnkrips
                last edited by

                @johnkrips

                /opt/xensource/libexec/xen-cmdline --delete-dom0 xen-pciback.hide
                

                https://xcp-ng.org/docs/compute.html#pci-passthrough

                J 1 Reply Last reply Reply Quote 0
                • J Offline
                  Johnkrips @l1c
                  last edited by Johnkrips

                  @l1c Thank you.

                  I did it but still same issue.

                  Internal error: xenopsd internal error: Cannot_add(0000:0b:00.0, Xenctrlext.Unix_error(30, “1:Operation not permitted”))

                  Is there anyway to get a more detailed log of issue?

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

                    @johnkrips

                    Have a read of this thread (found by googling the generic part of your error message).

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

                      I've never gotten errors like that, it just doesn't work when it is pass through.
                      Another thing I found a little odd was that the graphics card shows up as a usb device in Windows 😕

                      J 1 Reply Last reply Reply Quote 0
                      • J Offline
                        Johnkrips @l1c
                        last edited by Johnkrips

                        @l1c I got it to work. But not in that HP G6 server.

                        I have an identical ML350 G6 and its working fine with same version of XCP-NG.

                        Only difference is there are less pci cards in the machine. This goes back to my original idea, because other cards share the same IRQ the pass-through becomes for difficult.

                        Any configuration suggestions? Is there a way to edit the IOMMU groups?

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