ビルド中に

We do not want keeepalived lacking LVS support.

っつーエラーが出たので

yum remove kernel
yum install kernel

したら通った
バージョンの問題?
自作リポジトリ作成
サーバーのIP:192.168.8.130

1.createrepoインストール
yum install createrepo

2.リポジトリを配置するディレクトリ作成
mkdir /data/repos/CentOS_sample/5/i386

3.リポジトリにパッケージを配置
cp sample-package.1-1.i386.rpm /data/repos/CentOS_sample/5/i386

4.createrepoコマンド実行
createrepo /data/repos/CentOS_sample/5

5.httpでリポジトリにアクセスするのでDocumentRoot配下にシンボリックリンク作成
ln -s /data/repos /var/www/html

6.別のサーバーでリポジトリの設定
/etc/yum.repos/CentOS_sample.repo

[sample]
name=sample Yum Repository
baseurl=http://192.168.8.130/repos/CentOS_sample/$releasever
gpgcheck=0
enable=1

7.yumで確認
yum list | grep sample-package
vmware serverでPXE boo用のサーバーをつくる
サーバーのIP:192.168.8.129

1.tftp-server,dhcp,syslinuxをインストール

# rpm -qa | grep tftp
# yum install tftp-server
# rpm -qa | grep dhcp
# yum install dhcp
# rpm -qa | grep syslinux
# yum install syslinux

2./etc/xinetd.d/tftpを修正
disabled = yes -> disabled = no

3./etc/dhcpd.confを修正

ddns-update-style interim;
ignore client-updates;
subnet 192.168.8.0 netmask 255.255.255.0 {
option routers 192.168.8.129;
option subnet-mask 255.255.255.0;
range dynamic-bootp 192.168.8.0 192.168.8.254;
default-lease-time 21600;
max-lease-time 43200;
filename "/centos52/pxelinux.0";
next-server 192.168.8.129;
}

4./tftpboot配下にcentos52ディレクトリ作成
mkdir /tftpboot/centos52

5./tftpboot/centos52配下にpxelinux.cfgディレクトリ作成
mkdir /tftpboot/centos52/pxelinux.cfg

6./tftpboot/centos52/pxelinux.cfg配下にdefaultファイル作成

default menu.c32
timeout 300

LABEL sample-server
KERNEL vmlinuz
APPEND ks=http://192.168.8.129/ks/ks.cfg ksdevice=eth0 load initrd=initrd.img devfs=nomount

7.httpdのDocumentRoot配下に6で指定したkickstartのファイル作成
/var/www/html/ks/ks.cfg

・・・
install
url --url=http://192.168.8.129/CentOS_5.2_64
・・・

8.ks.cfgで指定したディレクトリにisoイメージをマウント
mount -t iso9660 -o loop /dev/cdrom /var/www/html

9./tftpboot/centos52配下に以下のファイルをコピー
menu.c32 syslinuxパッケージに入っているものをコピー
pxelinux.0 syslinuxパッケージに入っているものをコピー
initrd.img マウントしたisoに入っているものをコピー(images/pxeboot配下の)
vmlinuz マウントしたisoに入っているものをコピー(images/pxeboot配下の)

10.サービス起動
/etc/rc.d/init.d/dhcpd start
/etc/rc.d/init.d/xinetd start
/etc/rc.d/init.d/httpd start

11.別のサーバーを起動し、F12ボタンを押してメニューが出るので選択して終了