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

    Support for hyperv pv drivers

    Scheduled Pinned Locked Moved Development
    6 Posts 2 Posters 794 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.
    • NuxN Offline
      Nux
      last edited by

      Hello,

      I need to run XCP-Ng nested on top of hyperv.
      Looking around I noticed XCP-Ng ships KVM and VMWare pv drivers, which is great, but lacks what I need in this instance.

      What would be the quickest way to get up and running on hyperv?

      Also, any chance to include these out of the box in the future?

      Hyperv does offer legacy IDE and NIC drivers, it's possible to get started with that, but performance will be terrible.

      1 Reply Last reply Reply Quote 0
      • TeddyAstieT Offline
        TeddyAstie Vates 🪐 XCP-ng Team Xen Guru
        last edited by TeddyAstie

        Only Hyper-V gen1 can work (documented in https://docs.xcp-ng.org/guides/xcpng-in-a-vm/#nested-xcp-ng-using-microsoft-hyper-v-windows-10---windows-server-2016, not recommended for production).

        Hyper-V gen2 interface doesn't use a PCI-like interface (like virtio (kvm) and vmware does) therefore, Hyper-V paravirtualized devices are probably not usable within Xen Dom0 (which only supports PCI devices, like what we have on real hardware), so probably not usable by XCP-ng.

        NuxN 1 Reply Last reply Reply Quote 0
        • NuxN Offline
          Nux @TeddyAstie
          last edited by

          @Teddy-Astie gen1 works for me.

          Any pointer towards rebuilding the dom0 kernel to support various hyperv pv devices?

          TeddyAstieT 1 Reply Last reply Reply Quote 0
          • TeddyAstieT Offline
            TeddyAstie Vates 🪐 XCP-ng Team Xen Guru @Nux
            last edited by

            @Nux It's something you can try, but due to the way Hyper-V gen2 works, even if we add drivers in dom0 kernel, I highly doubt they will work.

            Regarding gen1 drivers, you don't need specific ones as Hyper-V emulates traditionnal hardware that drivers currently exist in dom0 kernel.

            NuxN 1 Reply Last reply Reply Quote 0
            • NuxN Offline
              Nux @TeddyAstie
              last edited by

              @Teddy-Astie

              The traditional hw that hyperv emulates leaves me with fast ethernet ancient nics.. not really usable.

              Do you have a recommended method for rebuilding the dom0 kernel?

              TeddyAstieT 1 Reply Last reply Reply Quote 0
              • TeddyAstieT Offline
                TeddyAstie Vates 🪐 XCP-ng Team Xen Guru @Nux
                last edited by TeddyAstie

                @Nux rebuilding the dom0 kernel is quite tricky, and I am not sure it is going to help your usecase, if you really want, you may want to look on xcp-ng-rpms and the related linux rpm
                Regarding nested Hyper-V in Xen, gen2 support was considered in the past, but it never got fully implemented, see https://lore.kernel.org/xen-devel/20191130115737.15752-1-liuwe@microsoft.com/
                and https://lore.kernel.org/xen-devel/20190923100931.29670-1-liuwe@microsoft.com/ for related discussion on the Xen mailing list.
                So as it is now, Xen in Hyper-V gen2 vm is not supported.
                Only gen1 is supported on a best-effort basis.

                Gen1 use realistic-behaving emulated devices, thus there is no Hyper-V specific driver that may improve performance.

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