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

    Hyper-V integration installed with pfSense 2.0.1

    Scheduled Pinned Locked Moved Virtualization
    168 Posts 59 Posters 165.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.
    • H
      hege
      last edited by

      Hi,

      anyone with a working CARP setup?

      i tried now for hours, but no luck,
      it seems that the same problem with the "de" driver still exists with the "hn" driver…

      i get the "fa_add_loopback_route: insertion failed" message and carp stuck at init

      more info here:
      http://forum.pfsense.org/index.php?topic=44550.0
      http://forum.pfsense.org/index.php?topic=44529.0

      1 Reply Last reply Reply Quote 0
      • D
        Dennis Westhuis
        last edited by

        Same problem here :-\

        Even after enable Mac spoofing….

        This is a big showstopper for us!

        1 Reply Last reply Reply Quote 0
        • D
          draculea
          last edited by

          @hege:

          @Fehler20:

          I've tested the PRERELEASE ISO and found some things which are not working:

          • Traffic Sharping (no interfaces shown)

          To help others to waste too much time (as I did), you can simple enable Traffic shapping with an edit in a file.

          In the shell, open /etc/inc/interfaces.inc and search for "altq".
          There should be an array where you just have to add the entry "hn".
          After saving traffic shapping should work immediately.

          @zootie thank for your great work, i test your image since jan and for me it is nearly perfect :)

          Sorry for my bad english :)

          Hello all,

          i have successfully deployed the latest image to Hyper-v and after a few days of tests i decided to use it in my home router until in becomes RC or final.

          All works well apparently except the traffic shaping. I have seen the post i quoted but i am completely new to this and i have not managed to make the necessary changes.

          Pretty please, could someone guide me in detail how to manage to work out the wizard error?

          Regards

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

            Navigate to shell (from the pfsense menu - menukey 8 i think)

            vi /etc/inc/interfaces.inc

            Esc + ?altq - return
            (Esc + ? is the searchfunction from vi - editor, and we search for the string "altq")

            navigate to the array, which you can see in the attached image,
            type Esc + i (now you can write)

            add the string "hn", to the array, after that save your changes with Esc + :wq - return

            If you have problems with the vi editor - here you can find a good reference http://www.lagmonster.org/docs/vi.html

            Interfacechanges.jpg
            Interfacechanges.jpg_thumb

            1 Reply Last reply Reply Quote 0
            • D
              draculea
              last edited by

              Many many thanks,

              i have succeed in the first try, thanks to your tutorial. It would have been impossible by myself or lots of hours of study to figure that one out.

              I am working my way to reading more stuff about traffic shaping.

              Thanks again

              1 Reply Last reply Reply Quote 0
              • Z
                zootie
                last edited by

                Sorry I've been away. Busy with life, you know. Trying to catch up. It's good to see that the drivers are working for most, albeit they haven't been perfect.

                @PollyPy, thank you for keeping up and making updated ISOs.

                I'll try and test CARP, to see if it works any better on my setup. However, testing on 2 separate Hyper-V servers might require some more hardware than I have available in the near future.

                In the meantime, if you can't get CARP working, an alternative would be to use a Windows cluster (presumably, if you want to use CARP with pfsense under Hyper-V, it is because you have at least 2 Hyper-V servers and want to add redundancy). You don't even need specialized shared storage: You can build an inexpensive cluster using StarWind's "Native SAN for Hyper-V Free Edition" (http://www.starwindsoftware.com/native-san-for-hyper-v-free-edition).

                You might not be able to store your other VMs on the free edition shared drive (for that, you'd have to look at the paid products or actual shared storage hardware), but the free edition storage is more than enough to accommodate a pfSense VM. You can still keep your other VMs on each cluster node, they just won't fail over (just the pfSense VM). Also, you might need to reconfigure any Hyper-V replicas you have setup, since the Hyper-V Replica service will be moved under the cluster (still dealing with this).

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

                  Thanks for your answer, i tried CARP with two virtualized VMs on one physical hyper-v server (yeah i know - make no sense)
                  I did this with and without dedicated nics (tried all hyper-v 2012 switch options)
                  My goal ist to use one hyper-v pfense setup as primaray and a old and slow box as failover, which sync with carp, so unfortunately i cant use a windows cluster.

                  1 Reply Last reply Reply Quote 0
                  • W
                    wbrauner
                    last edited by

                    Hi at all,

                    is there a new version for 2.1 update and full iso

                    thanks

                    wbrauner

                    1 Reply Last reply Reply Quote 0
                    • A
                      ArthurZz1
                      last edited by

                      Hello there,

                      I'm also stuck with CARP on "INIT" with 2 pfsense vm (2.1 BETA) on Windows Server 2012. Activated mac spoofing for vNIC but not luck.

                      I'll be following this thread in case you have any update on this problem.

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

                        Per installing  pfSense-LiveCD-2.1-DEVELOPMENT-amd64-20130516-0018.iso from Polly on my 2008R2 Hyper-V setup, I cannot get a DHCP ip for my WAN adapter at all.

                        I've tried going into the Hyper-V Network settings and using external (with/without checkbox), internal, and private setup. and full stopped the vm between each change.

                        I've shelled and did ifconfig de0 down etc. but it will not try to get an ip address.

                        What am I doing wrong? How should the Hyper-V network settings be?

                        I imagine it should be as such:

                        Hyper-V Network settings:

                        WAN - External not shared
                        LAN - External shared/not shared doesnt matter since I have 4 adapters on this server

                        Inside the VM settings area:
                        2 Legacy adapters using the created hyper-v network adapter (Properly labeled Internet, and LAN)

                        Now I tried using non-legacy adapters and pfsense detected and installed those with the same results as the legacy.

                        Any help on what I am doing wrong? Thanks.

                        edit

                        I can connect the setup via this method: cable modem -> netgear router -> switch -> WAN port on server w/ pfsense in hyper-v

                        and I can get a DHCP address on the WAN port.

                        but if I connect it like such: cable modem -> WAN port on server w/ pfsense in hyper-v then I get the problem described above and get no DHCP address.

                        The cable modem gives a straight public ip. Not an internal 192.* number.

                        edit 2

                        I think it has something to do with the way cable modems operate in the manner that the first thing they see is the first thing they try to hand out an address to. IE they see the physical nic mac address and give it the ip, then the virtual mac address comes along asking for the IP and the cable modem gives it the middle finger.

                        Wonder how I can fix that. Perhaps clone the mac address of the physical adapter?

                        edit 3

                        Ok cloned the mac addresses, but make sure you check the box for "spoof address" under the vm settings, otherwise it won't work. :) Problem solved.

                        I'll run this setup in a production environment over the weekend to see if it crashes and let you guys know.

                        Thanks for the awesome iso!

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

                          Hi all.
                          My last updated ISO with a Hyper-V kernel

                          http://goo.gl/evcFRk :: pfSense-LiveCD-2.1-DEVELOPMENT-amd64-HV-kernel-20130812-2157.iso

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

                            @PollyPy:

                            Hi all.
                            My last updated ISO with a Hyper-V kernel

                            http://goo.gl/evcFRk :: pfSense-LiveCD-2.1-DEVELOPMENT-amd64-HV-kernel-20130812-2157.iso

                            just in time. I was going to reinstall your iso tomorrow on a 2012 server :)) ill let you know how it goes. Is it possible to get pfsense to realize a wireless card is available?

                            1 Reply Last reply Reply Quote 0
                            • L
                              Liceo
                              last edited by

                              Dear all

                              After struggling with Performance problems on Hyper-V using the official builds, i tested this one and in rocks!

                              Thanks to all involved!

                              Liceo

                              1 Reply Last reply Reply Quote 0
                              • G
                                gemmiu
                                last edited by

                                Do i still have to restart the WAN-Adapter after every reboot to receive a dhcp ip address or is this issue solved in the last version?

                                1 Reply Last reply Reply Quote 0
                                • L
                                  Liceo
                                  last edited by

                                  @gemmiu:

                                  Do i still have to restart the WAN-Adapter after every reboot to receive a dhcp ip address or is this issue solved in the last version?

                                  I solved this problem after setting all the NIC to 100/full.

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

                                    @gemmiu:

                                    Do i still have to restart the WAN-Adapter after every reboot to receive a dhcp ip address or is this issue solved in the last version?

                                    The previous 2 builds I have not had that issue you are describing.

                                    1 Reply Last reply Reply Quote 0
                                    • G
                                      Geralt
                                      last edited by

                                      Is there any way how to get Vlans on Guest(pfsense) working?

                                      Thanks.

                                      PS : nice job ;)

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

                                        You should add network adapters and configure vlans using Hyper-V, not pfsense itself.

                                        1 Reply Last reply Reply Quote 0
                                        • G
                                          gemmiu
                                          last edited by

                                          I'm very new in freedsd and pfsense.

                                          About the WAN problem, is there a way to check in a startup script, if the wan adapter has a dhcp ip address assigned? And if no, the wan adapter will be restartet and the dhclient will be run again?

                                          Sorry for my bad english.

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

                                            What exactly do you mean with "WAN problem"?
                                            As i know, you shouln't need any start script since the integration driver….

                                            What language do you speek usually?
                                            You can send me a pm if its german  ;D

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