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

    CARP stuck in "init" in Hyper-V

    Scheduled Pinned Locked Moved HA/CARP/VIPs
    13 Posts 7 Posters 12.0k 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
      ChrisH1
      last edited by

      What exactly am I looking for?

      Neither a packet capture on the pfsense box itself nor a network monitor capture on the host showed up anything that looked like it might be CARP-related…

      But shouldn't the CARP state go to "master" anyway, even if it couldn't find a live partner due to network/Hyper-V problems?

      1 Reply Last reply Reply Quote 0
      • marcellocM
        marcelloc
        last edited by

        @ChrisH1:

        But shouldn't the CARP state go to "master" anyway, even if it couldn't find a live partner due to network/Hyper-V problems?

        Both will be master when everything is correct except helth checks.

        Are you on latest version of pfsense(2.0.1)?

        Treinamentos de Elite: http://sys-squad.com

        Help a community developer! ;D

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

          That's what I expected, too - if they can't find each other, they should both switch to master. That's what's making me think it's a pfSense problem…

          Yes, both machines are on 2.01.

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

            If it were just a communication problem, you'd have both as master. The only time I've seen a CARP IP get stuck in INIT is when either the parent interface of the CARP IP doesn't exist, or there is some other config issue with the IP subnet the CARP IP is on.

            What do the logs for the VIPs show?

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

              From the results of another similar thread here, now I'm wondering if it's related to the sometimes flaky low grade NIC driver that hyper-v uses. Does it support emulating e1000 NICs yet like basically every other hypervisor on the planet? Or any ability to change NIC type for FreeBSD guests? It used to work fine, even on 2.0 IIRC and there are no OS level differences between 2.0 and 2.0.1. I don't use hyper-v myself though.

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

                Yes, it seems to be the "de" driver for the emulated network cards. Is there any way to swap this driver within pfSense? I can't choose the NIC model in Hyper-V, the only choices are "network card" (which needs the VMBUS drivers) and "legacy network card" (which is a DEC 21140).

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

                  Any solution about "ifa_add_loopback_route: insertion failed" on pfsense with Hyper-V?

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

                    Is there any chance to get CARP working under Hyper-V?

                    That became a trouble for me.. I wanted 2 pfSense's (1st in Hyper-V Server 2012 and 2nd in Windows Server 2008 R2) to 'CARP each other', but had no luck. I had no idea of this problem, so now I see the only possible solution for me - switch to ESXi, but I wanted Hyper-V.

                    As for impossible solutions… :) what about substituting 'de' driver with something else?
                    In the FreeBSD sources I found that dev/lmc and dev/dc seem to support some DECs.

                    Has anyone tried this?

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

                      Microsoft finally dropped some code to provide proper FreeBSD support, which we'll integrate when we get to a base version that supports it (2.2). In the mean time, hyper-v isn't a great option.

                      1 Reply Last reply Reply Quote 0
                      • S
                        Sup3rior
                        last edited by

                        From the thread, I seem to recognize this behavior from when fiddling around with Windows NLB on Hyper-V…

                        Have you flagged "Enable spoofing of MAC addresses" on the virtual Nics where your CARP is running?
                        As I remember the pfSense guidelines for ESX states that promiscous mode must be enabled on the vswitch for running CARP, this seems to be the Hyper-V equivalent...

                        Regards,
                        Anders

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

                          in vmware i had to enable promiscuous mode in the vswitch to get carp working, or else i would run into the same problems as you are describing.

                          sadly i don't know where the equivalent for this setting is in hyper-v.

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