What is the best way to setup a heartbeat agent for failover between two VMs?

Posted by EGr on Server Fault See other posts from Server Fault or by EGr
Published on 2013-10-19T15:19:38Z Indexed on 2013/10/19 15:57 UTC
Read the original article Hit count: 213

I have two VMs in VirtualBox that use NAT for their network adapters. They are both getting the same IP address, so I will need to reconfigure that; but knowing that, is it possible to set up a heartbeat agent to failover an apache server if one of the two VMs go down?

The way I pictured it would be that the webserver would be able to be accessed externally via :80. No matter what VM was running, I would be able to access the website at that IP/port since failover would be setup.

I'm running into trouble setting up IPs when the network adapters are set to NAT, and people have told me that I shouldn't be setting the IPs in this configuration. So what should I do to achieve what I'm looking for? Is it even feasible?

© Server Fault or respective owner

Related posts about networking

Related posts about virtual-machines