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

    Intel Flex GPU with SR-IOV for GPU accelarated VDIs

    Scheduled Pinned Locked Moved Hardware
    50 Posts 9 Posters 12.7k Views 12 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

      No, I have an Intel Flex 170

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        JamesG @olivierlambert
        last edited by

        @olivierlambert If I remember right, you should be able to see 62 VF's on that card. There might be a tool needed to define how many VF's are present like on a NIC.

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

          Yes but in order to see the VF I need a working driver in the Dom0 first 😄 Probably a lot easier with a more recent kernel in XCP-ng 9.0

          J 1 Reply Last reply Reply Quote 0
          • J Offline
            JamesG @olivierlambert
            last edited by

            @olivierlambert Ideally you need to be somewhere into Kernel 6. 6.12 is sticking out in my head, but I'm not positive when support got fully integrated.

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

              Upstream inclusion is ultra recent, but you can always add drivers yourself (still requiring a relatively recent kernel IIRC). Anyway, we have the hardware and it will be in the roadmap at least to explore 🙂

              J 1 Reply Last reply Reply Quote 1
              • J Offline
                JamesG @olivierlambert
                last edited by

                @olivierlambert While VDI is maybe not as vital as it once was...I'm experimenting with multimedia work in XCP-ng. Having a VM with GPU off-loading of CODEC encoding would be nice. It's a pretty big CPU hit to make that go.

                1 Reply Last reply Reply Quote 0
                • S Online
                  sluflyer06 @sanjay
                  last edited by

                  @sanjay Kinda bringing this back, does anyone know if or when support for newer Intel cards like B60+ will be added in XCP-NG? I can only assume there's something that doesn't support these cards in the kernel possibly?

                  Me and another user bought B50's on release day and tried them and neither of us could get them to function, you could kinda see them in the VM passed through but they were non-functional, even on the latest ubtuntu developer kernels. It felt like the cards simply weren't supported on xcpng.

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

                    PCI passthrough shouldn't be a problem in theory. Do you have more context/logs to bring?

                    J S 2 Replies Last reply Reply Quote 0
                    • J Offline
                      JamesG @olivierlambert
                      last edited by

                      @olivierlambert

                      I agree that pass-through should just work.

                      I couldn't seem to get the GPU acceleration to work on a linux guest when I tried it on a Debian guest and I know if had the supported kernel running on the guest. I suspect this is due to the two different graphics devices on the guest VM (XCP-ng emulated and the physical passed-through GPU) and needing some sort of adjustments in X (Xlibre in my case) in order to tell it to use the GPU even though there's no display attached to it. I dropped that effort awhile back as I had bigger tasks at hand...But that's my suspicion. I need to tell X to offload processing to the GPU somehow, yet render the output to the emulated graphics adapter on the guest.

                      I've never really used GPU's for graphics acceleration on Linux. I don't game, and almost all of my Linux experience is headless server stuff. So I'm in uncharted territory for me.

                      1 Reply Last reply Reply Quote 0
                      • S Online
                        sluflyer06 @olivierlambert
                        last edited by sluflyer06

                        @olivierlambert I'm willing to go procure another to try to troubleshoot, 2 of us tried 3 different cards on different servers and spent a lot of time and never got anywhere with the cards. This is some messages I still have have from back when I was trying. More or less, XCPNG could see the cards, they could be passed to a VM either in XO or CLI, we tried a couple different linux VM's on 6.17 kernel and would get errors like below, I also tried a windows VM and it couldn't identify the card at all, tried latest intel drivers, etc.

                        [    3.109115] xe 0000:00:08.0: [drm] Found battlemage (device ID e212) discrete display version 14.01 stepping B0
                        [    3.110277] xe 0000:00:08.0: Direct firmware load for xe/bmg_guc_70.bin failed with error -2
                        [    3.110281] xe 0000:00:08.0: [drm] GuC firmware xe/bmg_guc_70.bin: fetch failed with error -2
                        [    3.110283] xe 0000:00:08.0: [drm] GuC firmware(s) can be downloaded from https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git
                        [    3.110284] xe 0000:00:08.0: [drm] *ERROR* GT0: GuC init failed with -ENOENT
                        [    3.110299] xe 0000:00:08.0: [drm] *ERROR* GT0: Failed to initialize uC (-ENOENT)
                        [    3.110526] xe 0000:00:08.0: probe with driver xe failed with error -2
                        

                        60a6271d-58e0-46a4-8439-becb74563dc7-image.jpeg

                        J 1 Reply Last reply Reply Quote 0
                        • J Offline
                          JamesG @sluflyer06
                          last edited by

                          @sluflyer06 Double check all your virtualization settings in the BIOS of your system.

                          There are some firmware updates that need to happen on the Intel cards that are frankly just easier to do in Windows, and even further in a physical machine (not passed-through). I had no issues updating my card via a passed-through Windows VM, but others haven't been as successful.

                          S 1 Reply Last reply Reply Quote 0
                          • S Online
                            sluflyer06 @JamesG
                            last edited by

                            @JamesG I'll have to pickup another one to test, I did check all my BIOS settings, rebar was enabled, and everythign else was set right, me and another guy both tried for weeks and nowhere, both of us have Threadripper 7xxx series on Supermicro boards for xcpng hosts. I don't think I ever updated the firmware on the card, I picked up the card right when it launched.

                            1 Reply Last reply Reply Quote 0

                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                            With your input, this post could be even better 💗

                            Register Login
                            • First post
                              Last post