Re: Hyper-V 2012 R2 - Synthetic Driver - Link status & CARP



  • Let's see if anyone can shed some light.
    I have been building a CARP cluster based on 2.2.2 and Hyper-V 2012 R2 [edit] with two separate hosts/pfsense guests.
    This is using the current VNICS (Synthetic Drivers) not the legacy 100mbit ones.
    I have MAC forging & static MAC enabled in Hyper-V
    It is the same setup as the official guide including dedicated SYNC.
    https://doc.pfsense.org/index.php/Configuring_pfSense_Hardware_Redundancy_(CARP)

    The CARP virtual  IP'S and "Master/Backup" status are working as expected.
    If the "Master" is shutdown the "Backup" successfully promotes itself to "Master" and the VIP works as expected.
    When the "Master" comes back online the "Backup" demotes itself to "Backup" again as expected.

    If I manually shutdown the external NIC on the "Master" ie "ifconfig hn0 down" the Carp (Master) status correctly reports "INIT" and the "Master" is demoted & the "Backup" is promoted. Restoring the NIC with "ifconfig hn0 up" restores the CARP to normal. Again, this is all as expected.

    However if I disconnect the Hyper-V guest from the VSwitch it remains in an "UP" state, and does not trigger a failure.
    CARP does not fail over as expected.

    I enabled legacy NIC's in my guest & they correctly report their active state which should trigger a failover.
    Testing my config on an ESXi (6) box works as expected with the NIC's reporting a failure when "disconnected"
    I have also tested this with the most recent 2.2.3 daily build and the results are the same.

    Is this due to the Hyper-V integration/synthetic drivers?
    Are there any good guides on installing the integration drivers into 2.2.2
    I don't really want to rebuild the bsd 10 kernel!

    Does anyone have any good suggestions for checking if the (hypervisor) host's NIC/VSwitch has failed in any way.
    This could this be passed on, and CARP triggered..
    Cheers,
    Yak.



  • Just out of curiosity and why would you want to set up CARP in hyper-v sense both virtual machines are on the same physical hardware?  Unless you are setting up two separate hyper -v hosts and putting a PF sense on each.



  • @kapara:

    Just out of curiosity and why would you want to set up CARP in hyper-v sense both virtual machines are on the same physical hardware?  Unless you are setting up two separate hyper -v hosts and putting a PF sense on each.

    Correct.
    It is two separate hosts, with their own network cabling.
    Sorry if that was not clear in the original post. (updated)

    Yak.


 

© Copyright 2002 - 2018 Rubicon Communications, LLC | Privacy Policy