LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Configuring HA ( IP address) between 2 VM's configured on different hosts. (https://www.linuxquestions.org/questions/linux-newbie-8/configuring-ha-ip-address-between-2-vms-configured-on-different-hosts-4175466958/)

pushpak.lele 06-21-2013 11:57 PM

Configuring HA ( IP address) between 2 VM's configured on different hosts.
 
hi,

we have 2 hosts (H1,H2) on which VMs has been configured.
We need to configure IP based HA between VMs confgured on H1 And H2 ( One VM is on H1 while another is on H2 )

Both the VMs have full IP reachability .

Kindly suggest any procedure to configure the same.

Thanks and Regards

Pushpak

minty33 06-22-2013 01:06 PM

could you be more clear? what do you mean by HA? if you mean hardware address that is not ip related and happens on different layer of the OSI model. also what virtualization software are you using? what are you trying to accomplish exactly? i have no idea what you mean by "configure the same"...do you mean on the same sub-net? your current nic set-up on the virtualization software would help. is it NAT or Bridged? are you using the host as the gateway or router? are they using the same gateway? your post will never be answered as written because it is so vague.

pushpak.lele 06-23-2013 11:07 PM

High Availability between Virtual Machines
 
1 Attachment(s)
Hi,

We have two host machines ( H1, H2) on which Virtual machines has been configured ( V1, V2 ).
OS is RHEL 6.3 and KVM is used for virtulization.

Virtual machine V1 is configured on Host H1 and Virtual machine V2 is configured on Host H2.
Both the host and the virtual machines are in the same subnet connected to switch.
We are able to ping from vm V1 to vm V2 .

We need to configure high availability cluster ip based so virtual ip can be accessed from outside even in case of failure for on VM.

Kindly refer the diagram attached

Thanks And Regards

Pushpak

minty33 06-24-2013 11:31 AM

i will assume this is for a webserver, you didn't specify. but here is a "how to" on configuring a two node HTTP HA cluster with CentOS. it should be the same on RHEL given CentOS is so similar. this turorial uses the heartbeat daemon to handle the cluster infrastructure. again i'm not really sure how much progress you have made or exactly where you are stuck. do you have a different tool handling the cluster infrastructure or is that where your stuck? as for the VM part since you are using bridged adapters you can treat them as standalone machines like in the tutorial since the host is not doing any ip forwarding like in a NAT adapter.
http://www.howtoforge.com/high_avail...artbeat_centos

here is a video for using pacemaker instead of heartbeat if you prefer video tutorials
http://www.youtube.com/watch?v=Ow5rhYTbT34

one last video, again using pacemaker, but this one also uses KVM virtualisation and a GUI tool LCMC to manage the cluster easier
http://www.youtube.com/watch?v=lgCoFrBdQG8


All times are GMT -5. The time now is 08:19 PM.