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

    How to get 10gbe speeds on guest VMs?

    Scheduled Pinned Locked Moved Solved Xen Orchestra
    6 Posts 3 Posters 5.2k Views 4 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.
    • T Offline
      TJ3f47501
      last edited by TJ3f47501

      New to XCP-ng and am having trouble determining why guest VMs cannot complete an iperf3 test at 10gb. Running this same test on physical servers or guests in VMware works properly. On a XCP-ng guest VMs this test maxes out at <3gbps. Are there any obvious settings I may be missing? Currently the VIFs I'm testing with have an MTU of 9000, which reports correctly on the guests. I am questioning the "Pool-wide network associated with ethX" setting which the MTU of 1500, which may be overriding my VIFs settings? Iperf3 command I'm using is: (iperf3 -c x.x.x.x -p xxxx -t 60 -P 10). Any help would be appreciated.

      1 Reply Last reply Reply Quote 0
      • T Offline
        TJ3f47501 @olivierlambert
        last edited by

        @olivierlambert said in How to get 10gbe speeds on guest VMs?:

        OpenvSwitch

        Found out I was missing setting the MTU of the 10gbe PIFs on my XCP-ng server. "xe pif-list" to find the <network-uuid>, then "xe network-param-set uuid=<network-uuid> MTU=9000" Found out the hard way you need to power off all VMs that have any attachment or simply unplug those NICs for the change to take. After that, configured the MTU of my guest test VM to 9000 and ipef3 testing is now at 10gb.

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

          Your network must have a MTU of 9000 if you want to be really used. Otherwise, on OpenvSwitch part it won't be used at 9000 (and will stay at 1500)

          I let @fohdeesha deal with the rest 🙂

          edit: also please tell us more about your setup

          T 1 Reply Last reply Reply Quote 0
          • T Offline
            TJ3f47501 @olivierlambert
            last edited by

            @olivierlambert said in How to get 10gbe speeds on guest VMs?:

            OpenvSwitch

            Found out I was missing setting the MTU of the 10gbe PIFs on my XCP-ng server. "xe pif-list" to find the <network-uuid>, then "xe network-param-set uuid=<network-uuid> MTU=9000" Found out the hard way you need to power off all VMs that have any attachment or simply unplug those NICs for the change to take. After that, configured the MTU of my guest test VM to 9000 and ipef3 testing is now at 10gb.

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

              Ah great 🙂

              1 Reply Last reply Reply Quote 0
              • olivierlambertO olivierlambert marked this topic as a question on
              • olivierlambertO olivierlambert has marked this topic as solved on
              • R Offline
                RaHu
                last edited by RaHu

                Hi There

                I have the same issue on BSD (in fact opnsense). If I do the same testing with a linux vm (ubuntu 18) beside, I get >1Gbs. But with the more or less same settings on opnsense (Freebsd 13.1) it will stay <1Gbs. (Set 9000 MTU manually on both vms)

                Is this a known issue with bsd, or is it worth investigating further?

                Cheers.

                T 1 Reply Last reply Reply Quote 0
                • T Offline
                  TJ3f47501 @RaHu
                  last edited by

                  @RaHu

                  In theory you would want to change the MTU of parent interface in OPNSense to 9000. In my case testing is not possible since I run all vlans off a since interface (2x10gbe NIC) and do not want to change the MTU of systems outside my virtual environment. Anyways, with the change mentioned above you achieve 10gbe speeds between VMs.

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