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

    Hyper-V - PFsense 2.0.1 - Some tips.

    Scheduled Pinned Locked Moved Virtualization
    26 Posts 17 Posters 41.7k 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.
    • H
      heuristik
      last edited by

      thanks for the heads up on that, Chris.  I just started trying to get that working between vms on a couple of HV hosts…

      I think I read recently that Microsoft just updated its linux integration services disk a couple of weeks ago.  Anyone look to see if there's some love for freebsd yet?

      1 Reply Last reply Reply Quote 0
      • B
        behzad
        last edited by

        Hi,
        Thanks for the tips.
        I'm trying to install pfSense 2.0.1 on Microsoft hyper-v with 2 legacy adapters.
        system halts at startup and the first tip has no effect on it!
        What can I do now?
        Thanks.

        error.png
        error.png_thumb

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

          Thanks for the tips heuristik & ChrisH1. I noticed that for some reason DHCP wasn't dishing out IPs on the LAN interface either. I fixed this in a similar method with ifconfig de1 down and ifconfig de1 up, where de1 is the LAN. I added this to /etc/rc.local and its been fine ever since.

          behzad I had some similar issues when using dynamically expanding disks. When I created a fixed disk on IDE it was fine after that.

          1 Reply Last reply Reply Quote 0
          • J
            jceb3167
            last edited by

            I don't think that Pfsense is ready to work well on HyperV since this hypervisor does not support FreeBSD 8.1.
            It may work but I doubt it will be suitable for production equipment.
            I would recommend to use ESXi instead.

            http://www.opttic.com

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

              I agree, for a test environment though its been fine for me. I have not used it beyond basic routing however.

              1 Reply Last reply Reply Quote 0
              • J
                janneb
                last edited by

                I have successfully used your tips to install pfsense on hyper-v 2.0 (Win8 / Srv2012) today and will use it as my primary home firewall. Very convenient to run my firewall on my workstation (Hyper-V is built in win8). I will let you know what I find out. One obvious limitation is that the legacy adapters are 100mbit  :'(

                1 Reply Last reply Reply Quote 0
                • J
                  janneb
                  last edited by

                  SOpenness 6 Aug 2012 9:46 AM
                  Thank you for your interest in the FreeBSD support for Hyper-V!  Check back on the blog later this week, when we’ll have more details on the release and where to get the code

                  http://blogs.technet.com/b/openness/archive/2012/05/10/freebsd-support-on-windows-server-hyper-v.aspx

                  C'mon c'mon c'mon ..

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

                    Thanks Janneb. Fortunately the drivers are already released (I foolishly hadn't thought to check until you posted this!) http://blogs.technet.com/b/openness/archive/2012/08/09/available-today-freebsd-support-for-windows-server-hyper-v.aspx which links to building the kernel with the new drivers here - https://github.com/FreeBSDonHyper-V/freebsd/wiki/Build-the-kernel-with-the-HyperV-drivers I'm yet to try it but it sounds exciting.

                    1 Reply Last reply Reply Quote 0
                    • E
                      ericsche
                      last edited by

                      Hello,

                      drivers are for FreeBSD 8.2 and beyond so we need to use PFSense 2.1

                      I've been trying for a few days with no luck :(
                      Any idea how to patch the kernel ?

                      1 Reply Last reply Reply Quote 0
                      • jimpJ
                        jimp Rebel Alliance Developer Netgate
                        last edited by

                        Even if you manage to get it to work, they still have a lot of work to do before it would be useful on a firewall.

                        See http://lists.freebsd.org/pipermail/freebsd-stable/2012-August/069148.html

                        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 0
                        • C
                          cicero44bc
                          last edited by

                          Thanks for the heads up jimp.

                          1 Reply Last reply Reply Quote 0
                          • I
                            iskull
                            last edited by

                            I'm trying to use pfSense w/ Hyper-v on Windows 2008 R2, but I'm not getting  :-\

                            My pfsense version:

                            [2.0.1-RELEASE][admin@maybach.prosperi.local]/root(30): uname -a
                            FreeBSD maybach.prosperi.local 8.1-RELEASE-p6 FreeBSD 8.1-RELEASE-p6 #0: Mon Dec 12 18:15:35 EST 2011     root@FreeBSD_8.0_pfSense_2.0-AMD64.snaps.pfsense.org:/usr/obj./usr/pfSensesrc/src/sys/pfSense_SMP.8  amd64
                            

                            I'm getting this messagens in dmesg:

                            calcru: runtime went backwards from 5 usec to 2 usec for pid 17 (vmdaemon)
                            calcru: runtime went backwards from 166 usec to 92 usec for pid 16 (pagedaemon)
                            calcru: runtime went backwards from 435 usec to 247 usec for pid 9 (pfpurge)
                            calcru: runtime went backwards from 36 usec to 19 usec for pid 8 (sctp_iterator)
                            calcru: runtime went backwards from 7720 usec to 4033 usec for pid 7 (fdc0)
                            calcru: runtime went backwards from 8496 usec to 4631 usec for pid 14 (yarrow)
                            calcru: runtime went backwards from 1121396 usec to 603195 usec for pid 4 (g_down)
                            calcru: runtime went backwards from 818454 usec to 429006 usec for pid 3 (g_up)
                            
                            

                            And searching on the web I found this:

                            http://xtravirt.com/disabling-virtual-machine-guest-host-time-synchronization-multiple-hypervisors
                            http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/troubleshoot.html#calcru-negative-runtime
                            http://www.freebsd.org/doc/en_US.ISO8859-1/books/faq/troubleshoot.html#COMPUTER-CLOCK-SKEW

                            I tried all solutions above, but no success yet :( any suggestions?

                            1 Reply Last reply Reply Quote 0
                            • T
                              tester_02
                              last edited by

                              @iskull:

                              I tried all solutions above, but no success yet :( any suggestions?

                              Move on for now.  I've moved on to vmware until hyper-v on freebsd gets sorted out.  I'd love to come back and run hyper-v as I would not have to install other software on the windows machines I am running it on.
                                Oracle solution seems good too.

                              1 Reply Last reply Reply Quote 0
                              • I
                                iskull
                                last edited by

                                @tester_02:

                                @iskull:

                                I tried all solutions above, but no success yet :( any suggestions?

                                Move on for now.   I've moved on to vmware until hyper-v on freebsd gets sorted out.   I'd love to come back and run hyper-v as I would not have to install other software on the windows machines I am running it on.
                                  Oracle solution seems good too.

                                :(

                                If somebody runs pfsense with successful on Hyper-V - Windows 2008 r2, please, share with us :D

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

                                  Hi I'm new in PFsense, but i found this blog in google

                                  http://www.zomers.eu/knowledge/pfSense/Pages/Install-pfSense-on-Windows-2008-Hyper-V-server.aspx

                                  with this guide I have instaled the PFsense in the hyper-v, but I have a Problem, when y restart PFsense these loss conection to internet.

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

                                    Just as JimP said: The support for FreeBSD inside Hyper-V is still far from complete.

                                    My general (and painful experience) with Linux was: It took MS ages to support it correctly, now it's ok.
                                    Everything that MS does not support with integration drivers is slow or even crashy, I wouldn't even remotely consider pfSense for any production use on Hyper-V yet. Sorry to say :-/

                                    1 Reply Last reply Reply Quote 0
                                    • T
                                      tester_02
                                      last edited by

                                      Anyone try pfsense under 2012 hyper-v?  I am just starting to test 2012, so I plan to give it a shot.

                                      1 Reply Last reply Reply Quote 0
                                      • P
                                        peterclark4
                                        last edited by

                                        They seem to run pretty much the same, I have migrated a few from 2008 to 2012.

                                        1 Reply Last reply Reply Quote 0
                                        • T
                                          tester_02
                                          last edited by

                                          booo.  Guess it's wait for freebsd 10 or 11.  Hopefully by then we can have better support :)

                                          1 Reply Last reply Reply Quote 0
                                          • T
                                            thesystem
                                            last edited by

                                            I'm installing pfSense 2.1 Beta0 on Hyper-V 2008R2. The live cd worked for as far as I tested (with legacy nics), however a install to disk failed with the error:
                                            Execution of the command
                                            /sbin/fdisk -v -f /tmp/format.fdisk ad0
                                            FAILED with a return code of 1

                                            This was because I used a Dynamically Expanding disk. After changing it to a Fixed Size disk, the install continued.

                                            As mentioned before, the nics don't receive data after first boot. To fix this I did the following:
                                            Go to the shell
                                            vi /usr/local/etc/rc.d/interfaces.sh

                                            Press INSERT and start typing the following (watch out for typos as these are difficult to correct in VI):

                                            ifconfig de0 down
                                            ifconfig de0 up
                                            ifconfig de1 down
                                            ifconfig de1 up
                                            dhclient de0

                                            When done, press INSERT and type:

                                            :wq

                                            Followed by pressing ENTER

                                            Type:

                                            chmod +x /usr/local/etc/rc.d/interfaces.sh

                                            Followed by pressing ENTER. This will allow the script to run.

                                            This makes pfSense work in Hyper-V.

                                            I'm also looking at loadbalancing multiple nics to see if I can increase the throughput. Anybody got experience with this?

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