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

    GPU Passthrough

    Scheduled Pinned Locked Moved Management
    11 Posts 2 Posters 57 Views 1 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 @gb.123
      last edited by

      @gb.123 You need one video card for your administrative console and another can be used for GPU passthrough. There must be two separate physical devices.
      So make sure you have two video boards, one that has the GPU capabilities you want to use in your passthrough configuration.

      G 1 Reply Last reply Reply Quote 0
      • G Offline
        gb.123 @tjkreidl
        last edited by

        @tjkreidl
        I do have one iGPU & another RTX 4060. I was just confirming which option to use

        tjkreidlT 1 Reply Last reply Reply Quote 0
        • tjkreidlT Offline
          tjkreidl Ambassador @gb.123
          last edited by

          @gb.123 Ah, OK. then the more powerful GP is the RTX4060, right? If so, use it for the passthrough. Also, on some CPUs you have to do a BIOS setting to allow this to work, because of memory limitations, but only on probably much older systems, if I recall correctly.

          G 1 Reply Last reply Reply Quote 0
          • G Offline
            gb.123 @tjkreidl
            last edited by

            @tjkreidl

            Still struggling to make it work. Simple passthrough is 'hanging' the VM and the VM gets stuck at splash screen.

            Trying to figure out what to do

            Do you know if I need to put the card in attach pci or just select it in the gpu section or both ?

            tjkreidlT 1 Reply Last reply Reply Quote 0
            • tjkreidlT Offline
              tjkreidl Ambassador @gb.123
              last edited by tjkreidl

              @gb.123 YOu are trying to do passthrough to a specific VM? I don't think that used to be supported, but maybe is now.
              Are NVIDIA drivers installed on the VM, as needed?
              Sorry, it's been a while since doing this so I'm digging back into my memory.
              Also, is IOMMU supported and enabled in the BIOS?
              Also, check this out and see if it may be of some help:
              https://www.youtube.com/watch?v=_JPmxmxqhds

              G 1 Reply Last reply Reply Quote 0
              • G Offline
                gb.123
                last edited by

                @olivierlambert

                Can you please confirm if I need to attach PCI AND select the GPU in the upper section or either should work ?

                tjkreidlT 1 Reply Last reply Reply Quote 0
                • tjkreidlT Offline
                  tjkreidl Ambassador @gb.123
                  last edited by tjkreidl

                  @gb.123 You need to do both. After adding the PCI device, you might also need to specifically enable "passthrough" for that device within the VM's settings. It may do it automatically when you add it.
                  Make sure the appropriate NVIDIA driver is also installed on the the VM.

                  G 1 Reply Last reply Reply Quote 0
                  • G Offline
                    gb.123 @tjkreidl
                    last edited by

                    @tjkreidl

                    You are trying to do passthrough to a specific VM? I don't think that used to be supported, but maybe is now.

                    Yes. 1 Card -> 1 VM. Nvidia opened the passthrough lock in 2021. (Before that it was locked)

                    Are NVIDIA drivers installed on the VM, as needed?

                    I am installing them(tried the open one), but they are causing issues.

                    Also, is IOMMU supported and enabled in the BIOS?

                    Yes

                    1 Reply Last reply Reply Quote 0
                    • G Offline
                      gb.123 @tjkreidl
                      last edited by

                      @tjkreidl said in GPU Passthrough:

                      After adding the PCI device, you might also need to specifically enable "passthrough" for that device within the VM's settings. It may do it automatically when you add it.

                      This is one of my confusions. It is not automatically adding it. Whether I should select it or leave it blank is the confusion.

                      1 Reply Last reply Reply Quote 0
                      • G Offline
                        gb.123
                        last edited by

                        @tjkreidl

                        Once I install graphics drivers (nvidia) and allow pci passthrough of the graphics card, i get:

                        NVRM: cpuidInfoAMD Unrecognised AMD processor in cpuInfoAMD
                        

                        and the VM refuses to boot

                        If I remove the drivers or detach the card, then the VM boots

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