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

    100 US dollars for working bhyve instructions on pfsense 2.2

    Scheduled Pinned Locked Moved Bounties
    33 Posts 11 Posters 17.1k Views
    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.
    • C
      cdburgess75
      last edited by

      I would really like to see this done.  Just looking for a simple set of instructions to use bhyve to run an older freebsd version (i386-6.4) in pfsense 2.2

      Any takers?

      1 Reply Last reply Reply Quote 0
      • ?
        Guest
        last edited by

        follow the README.  it's pretty simple.

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          Out of curiosity - why, what are you wanting run in vm on your router/firewall?

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 0
          • C
            cdburgess75
            last edited by

            Gonzo,  I get stuck because I cannot kldload vmm.  But like I said,  Im willing to pay for a step by step.  I had ok luck with virtual box but got stuck.  I would prefer bhyve.  If you can do it,  show me how and make a quick 100$

            John,  I want to run a guest operating system or 2–Its a project (proof of concept more or less)  FYI:  Cisco and Juniper do it all the time

            /dave

            1 Reply Last reply Reply Quote 0
            • johnpozJ
              johnpoz LAYER 8 Global Moderator
              last edited by

              I run my pfsense in vm, I see the point of leveraging hardware to run vms.  If what you want to do is run vms - why not run a type 1 hypervisor on the hardware, and then run whatever vms you need and or the hardware can support.  Pfsense is a trimmed/tweaked/custom version of freebsd to be a firewall/router - not an ideal setup for running other vms under that.

              You will have much better luck, ease of use running type 1 and then your vms under that to be honest vs installing other stuff on your actual firewall/router.  While yes cisco and juniper allow vms on their hardware, its not like the vms are running under the operating system of the switch/firewall OS.

              Just my 2 cents on how I would go about it.  I have no exp with bhyve - but the instructions seem pretty straight forward.  The trick might be installing the portions that may or may not have been removed from pfsense to make it pfsense vs just plain jane freebsd running routing and firewall software.  Also the way that pfsense starts up stuff vs out of the box freebsd has been modified as well - having to work within those modification to get other vms up and running might also be pita.  Where if you went the other direction with say esxi, you could be up and running in a few minutes to be honest.

              An intelligent man is sometimes forced to be drunk to spend time with his fools
              If you get confused: Listen to the Music Play
              Please don't Chat/PM me for help, unless mod related
              SG-4860 24.11 | Lab VMs 2.8, 24.11

              1 Reply Last reply Reply Quote 0
              • C
                cdburgess75
                last edited by

                Thank you John,  I have been around ESX since the early 2000's,  I actually have one of the first VCP certs.  I am looking to run a hypervisor on pfsense.  Thats what my goal here is.  Type 1 hypervisor, I assume you mean jails?  The problem with that would be kernel versions.  I have a specifc application that I would like to virtualize that runs a different kernel (an older freebsd one).  But I do not want to limit myself there.  The ideal situation for my vision is to run this app and others directly on a highpower pfsense box.  It may not be easy to do,  it may be,  i don't know.  This is the purpose for the bounty :)

                1 Reply Last reply Reply Quote 0
                • K
                  kejianshi
                  last edited by

                  I'm pretty sure ESXI counts as type 1.

                  I'd roll with that.  Works well for me.

                  Take your high power box, install ESXi directly.

                  Install all your other OSs, including pfsense, on ESXi as VMs.

                  I'm not sure why you would want to do it any other way?

                  1 Reply Last reply Reply Quote 0
                  • C
                    cdburgess75
                    last edited by

                    thank you kejianshi,  I do not want to use esxi.  I am looking to run the hypervisor on pfsense.

                    1 Reply Last reply Reply Quote 0
                    • ?
                      Guest
                      last edited by

                      It's easy.

                      1 Reply Last reply Reply Quote 0
                      • K
                        kejianshi
                        last edited by

                        I guess what he means is he likes jails…

                        1 Reply Last reply Reply Quote 0
                        • C
                          cdburgess75
                          last edited by

                          @gonzopancho:

                          It's easy.

                          Well if it is easy then go back to the subject and make a cool 100$.

                          1 Reply Last reply Reply Quote 0
                          • C
                            cdburgess75
                            last edited by

                            @cdburgess75:

                            @gonzopancho:

                            It's easy.

                            Well if it is easy then go back to the subject and make a cool 100$.

                            Not look for jails, looking to run the hypervisor on pfsense. Not looking for any other things.

                            1 Reply Last reply Reply Quote 0
                            • K
                              kejianshi
                              last edited by

                              I've decided you don't know what you are talking about.  (-:

                              1 Reply Last reply Reply Quote 0
                              • C
                                cdburgess75
                                last edited by

                                lol-Geeze

                                Not wanting to run pfsense in a vm.  Wanting to run pfsense as a vm host.

                                Weather ESXi is a type 1 or 2 has nothing to do with this.
                                Jails either.

                                I am not wanting to go the other route you are suggesting,  I have a few deployed that way and they work fantastic!  I want to run a hypervisor on pfsense.

                                1 Reply Last reply Reply Quote 0
                                • H
                                  Harvy66
                                  last edited by

                                  Technically bhyve is neither a Type1 or Type2, it's a hybrid. It runs everything the same way as a Type1, but because it runs a full fledged OS as the host, it's like a Type2.

                                  1 Reply Last reply Reply Quote 0
                                  • K
                                    kejianshi
                                    last edited by

                                    bhyve (also written as BHyVe, and pronounced "bee hive") is a type-2 hypervisor that runs on FreeBSD.[1] It runs FreeBSD 9+, OpenBSD and Linux guests. Current development efforts aim at widening support for other x86-64 operating systems.

                                    Either the title has change or I was smacked out of my mind when I replied….

                                    One might think I would have looked into BhyVe before replying if it were right in front of my eyes.

                                    Other than now knowing the its pronounced Bee Hive, I'm completely clueless on this.

                                    Sorry for my previous reply - Obviously there is an option I was unaware of.

                                    Sooooo you must have a reason to want to use BHyVe.  What might that be?  Just interested.

                                    1 Reply Last reply Reply Quote 0
                                    • C
                                      cdburgess75
                                      last edited by

                                      Thank you for that info.

                                      1 Reply Last reply Reply Quote 0
                                      • K
                                        kejianshi
                                        last edited by

                                        I watched some videos on it and I was left with the impression that bhyve is a serious work in progress with alot of serious limitations.

                                        1 Reply Last reply Reply Quote 0
                                        • M
                                          mikecpt
                                          last edited by

                                          So basically as a "proof of concept" or… say just for the lulz you want to run bhyve on pfsense as a HOST.

                                          May I ask if you also have any special interest on any bhyve feature or guest (Ex: do you want to test if linux guests would work)?

                                          From you're previous post I understand the main issue was that you could not load vmm?

                                          Any error in particular?

                                          I haven't tried pfsense2.2 on a physical box yet (no even production - still on 2.1) only VM's and if that's for example you're case you need to have "nested virtualization support"... I'd have to look at doing that with Xen (where I'm running a local pfsense 2.2 install for test).

                                          Anyway assuming you're running pfsense on bare metal, and since pfsense is using FreeBSD 10 as base, in theory it should work BUT, I'm not sure if they even ported that part of the code or if they removed any parts that might make it impossible... and also as some pointed out bhyve is highly experimental and being developed on current (but it was release indeed for 10.0)

                                          Could you possible post the error you get when trying to load vmm? cause if that doesn't work, no tutorial will help.

                                          In any case I'll leave this link (https://www.monkeybrains.net/support/bhyve) How to for Ubuntu/Centos (not sure if its up to date, just took a quick look)

                                          The bhyve faq also explain how to start a freebsd-11 guest.

                                          Hope that helps, but again posting the error you get loading "vmm" would surely, help us - help you :)

                                          1 Reply Last reply Reply Quote 0
                                          • M
                                            mikecpt
                                            last edited by

                                            Actually a kldload vmm in my box gives file not found and indeed the module is not included .

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