Open main menu

OpenVZ Virtuozzo Containers Wiki β

Changes

Keepalived

1,266 bytes added, 18:42, 21 April 2010
no edit summary
* Host Node [HN]: The physical server and OS hosting the OpenVZ Virtual Environments as 'guests'
=== Prerequisites ===
=== Host Node Setup ===First, make sure you have OpenVZ installed and configured on your HN, according to the instructions proscribed for your platform (eg. debian, redhat, gentoo, etc...). Make sure it works, including the openvz kernel modules, etc.
==== Prerequisites ====You will need to set up at two new VEs (Virtual Environments/Nodes) in order to make best use of keepalived. Set them up with a minimal amount of configuration for now (unless you're going to do this on some pre-existing VEs you're already using) You will need an ethernet interface that can host more than one address in the same physical network. For example, on your own LAN. Doing this on an interface connected directly to, say, a home-cable-modem will probably not work properly. Finally, and this is important: '''You either should have physical access to a console on the HN -or- be VERY comfortable with modifying your network settings over SSH''' The first time I did this, I made a mistake and needed to call someone to reboot the system, since it was 3000 miles away.
First, make sure you have OpenVZ installed and configured according to the instructions proscribed for your platform (eg. debian, redhat, gentoo, etc...) You will need to set up at two new VEs (Virtual Environments/Nodes) in order to make best use of keepalived.
You will need an ethernet interface that can host more than one address in the same physical network. For example== Host Node Setup == === Install Required Software === ==== On a Debian-based HN ==== ===== IPVS ===== Install ipvsadm, on your own LAN. Doing this on an interface connected directly then set all necessary modules toload at boot, say, a homeand load them now.  [HN]$ sudo -cablei [HN]# aptitude install ipvsadm [HN]# for mod in ip_vs ip_vs_dh ip_vs_ftp ip_vs_lblc ip_vs_lblcr \ ip_vs_lc ip_vs_nq ip_vs_rr ip_vs_sed ip_vs_sh \ ip_vs_wlc ip_vs_wrr; do grep $mod /etc/modules >/dev/null || echo $mod >> /etc/modules; modprobe -modem will a $mod; done Note: you probably not work properlydon't need all of these, but I got sick of trying to find the minimal set and gave up :) ===== Bridge Utils ===== This provides the brctl command, should already be installed, but I won't take that for granted...  [HN]$ sudo aptitude install bridge-utils
==== Install Required Software ====
* debian-based
* ipvsadm
=== Virtual Node Environment Setup ===
3
edits