• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Advice to installing on linux/virtualbox host and VIRTIO driver (for maximum nic performance and stability)

Virtualization
4
11
2.7k
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.
  • B
    Babiz
    last edited by Nov 27, 2018, 12:12 PM

    Yeah so, I'll reading about some docs on web and I learning about VIRTIO support VM's with Virtual Box and same VIRTIO support for free BSD kernel as well.

    Looks like applicable without big issues, when I read Netgate documentation Virtualization and VIRTIO support.
    and Oracle VBox networking manual statement:
    The "Paravirtualized network adapter (virtio-net)" is special. If you select this, then VirtualBox does not virtualize common networking hardware (that is supported by common guest operating systems out of the box). Instead, VirtualBox then expects a special software interface for virtualized environments to be provided by the guest, thus avoiding the complexity of emulating networking hardware and improving network performance. Starting with version 3.1, VirtualBox provides support for the industry-standard "virtio" networking drivers, which are part of the open-source KVM project.

    This will be nice on the paper, now I want to know if anyone else guys of Netgate Community, have try before, in past this specific configuration and if this is reliable for home office dayly use or only for testing purpose.

    Thanks to all who want reply to this.
    Regards.

    1 Reply Last reply Reply Quote 0
    • J
      jimp Rebel Alliance Developer Netgate
      last edited by Nov 27, 2018, 2:04 PM

      You can't say "VirtualBox" along with "performance and stability" in the same sentence. It isn't up to that task.

      That said, pfSense includes VIRTIO drivers in the kernel, and has for a few versions now.

      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

      Need help fast? Netgate Global Support!

      Do not Chat/PM for help!

      B 1 Reply Last reply Nov 27, 2018, 2:46 PM Reply Quote 0
      • B
        Babiz @jimp
        last edited by Nov 27, 2018, 2:46 PM

        @jimp said in Advice to installing on linux/virtualbox host and VIRTIO driver (for maximum nic performance and stability):

        You can't say "VirtualBox" along with "performance and stability" in the same sentence. It isn't up to that task.

        LOOL 👍

        That said, pfSense includes VIRTIO drivers in the kernel, and has for a few versions now.

        I not understand if you are sarcastic or just kidding me, but I will only know the opinion of folks have tried this. Sorry. 🙏

        By other hands I tell you about my experience related to software like "xpenology" working well enough on my Xeon 16 core based server, virtualized under virtualbox, yes indeed just fine enough for small home office tasks.

        1 Reply Last reply Reply Quote 0
        • J
          jimp Rebel Alliance Developer Netgate
          last edited by Nov 27, 2018, 3:07 PM

          If it works for you, great, but it does not have a good track record.

          pfSense includes VIRTIO drivers in the kernel and they work fine in KVM. The drivers have been included in the kernel since pfSense 2.2, nearly four years ago. If they do not work with VirtualBox, then it's a problem with VirtualBox.

          Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

          Need help fast? Netgate Global Support!

          Do not Chat/PM for help!

          1 Reply Last reply Reply Quote 1
          • N
            netblues
            last edited by Nov 27, 2018, 3:42 PM

            Pfsense works perfectly for me under centos kvm with virtio nics for many months now in a production environment. Intel nics are used as bridges on the host os.
            Just remember to disable all hardware related acceleration for nics.

            B 1 Reply Last reply Nov 27, 2018, 4:02 PM Reply Quote 1
            • B
              Babiz @netblues
              last edited by Babiz Nov 27, 2018, 4:02 PM Nov 27, 2018, 4:02 PM

              @netblues thanks for your feedback. :D Great I'd try soon or later.

              1 Reply Last reply Reply Quote 0
              • S
                stephenw10 Netgate Administrator
                last edited by Nov 27, 2018, 4:08 PM

                I have used it, it works fine I've not seen any problems. I have never attempted to test relative performance.

                🔒 Log in to view

                Steve

                1 Reply Last reply Reply Quote 1
                • B
                  Babiz
                  last edited by Nov 27, 2018, 4:48 PM

                  Thank you for feedback @stephenw10 , also thank for moving this thread under correct section. 👍 Bye.

                  1 Reply Last reply Reply Quote 0
                  • N
                    netblues
                    last edited by Nov 28, 2018, 6:33 AM

                    @babiz As for performance here are some tests

                    iperf -c 192.168.1.14

                    Client connecting to 192.168.1.14, TCP port 5001
                    TCP window size: 85.0 KByte (default)

                    [ 3] local 192.168.1.13 port 36176 connected with 192.168.1.14 port 5001
                    [ ID] Interval Transfer Bandwidth
                    [ 3] 0.0-10.0 sec 21.7 GBytes 18.6 Gbits/sec

                    Centos host to centos guest, over virtio (interfaces appear as 10G)

                    centos host to pf guest

                    [root@dell710r ~]# iperf -c 192.168.1.1

                    Client connecting to 192.168.1.1, TCP port 5001
                    TCP window size: 85.0 KByte (default)

                    [ 3] local 192.168.1.13 port 36370 connected with 192.168.1.1 port 5001
                    [ ID] Interval Transfer Bandwidth
                    [ 3] 0.0-10.0 sec 1.21 GBytes 1.04 Gbits/sec

                    I never managed to get more than 1 Gig, but then I have various limiters configured, and since 1g exceeds the sum of all wan interfaces never researched it further.

                    ifconfig
                    vtnet0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500
                            options=6c00b8<VLAN_MTU,VLAN_HWTAGGING,JUMBO_MTU,VLAN_HWCSUM,VLAN_HWTSO,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6>
                            ether 52:54:00:45:4e:95
                            hwaddr 52:54:00:45:4e:95
                            inet6 fe80::5054:ff:fe45:4e95%vtnet0 prefixlen 64 scopeid 0x1 
                            inet 192.168.1.251 netmask 0xffffff00 broadcast 192.168.1.255 
                            inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 vhid 1 
                            nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
                            media: Ethernet 10Gbase-T <full-duplex>
                            status: active
                            carp: MASTER vhid 1 advbase 1 advskew 0
                    

                    Regards

                    N B 2 Replies Last reply Nov 30, 2018, 11:19 AM Reply Quote 1
                    • N
                      netblues @netblues
                      last edited by Nov 30, 2018, 11:19 AM

                      @netblues I consider this interesting on the subject... (by a linux-bsd expert)
                      https://medium.com/@matteocroce/linux-and-freebsd-networking-cbadcdb15ddd

                      1 Reply Last reply Reply Quote 0
                      • B
                        Babiz @netblues
                        last edited by Nov 30, 2018, 11:22 AM

                        @netblues Thank so much for your detailed feedback here, is great to see high bandwidth under iperf test, for me. 😃
                        It's outstanding all my thinks! 😮
                        Now 🍗 I'm hurry to do my iperf result too. And I also happy to try with my bare hardware! Hmmm 🦄

                        See you soon, regards.

                        1 Reply Last reply Reply Quote 0
                        3 out of 11
                        • First post
                          3/11
                          Last post
                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.