RHEL5 ks
1.dhcp server
yum install dhcp -y
vi /etc/dhcpd.conf
add next-server 192.168.0.110;
filename "pxelinux.0";
/etc/init.d/dhcpd restart
2.tftp server
yum list tftp-server
chkconfig tftp on
/etc/init.d/xinetd restart
cp /usr/lib/syslinux/pxelinux.0 /tftpboot/
3.nfs server
yum install nfs
vi /etc/exports
add /install *(ro)
/etc/init.d/nfs restart
/etc/init.d/portmap restart
4. boot file config
cp /media/p_w_picpaths/pxeboot/initrd.img /tftpboot/
cp /media/p_w_picpaths/pxeboot/vmlinuz /tftpboot/
mkdir /tftpboot/pxelinux.cfg
cp /media/isolinux/isolinux.cfg /tftpboot/pxelinux.cfg/default
cd /tftpboot/pxelinux.cfg/
vim /tftpboot/pxelinux.cfg/default like so
default ks
prompt 1
timeout 60
display boot.msg
F1 boot.msg
F2 options.msg
F3 general.msg
F4 param.msg
F5 rescue.msg
label ks
kernel vmlinuz
append ks=nfs:192.168.0.110:/install/ks.cfg initrd=initrd.img
chmod 777 default
5.install tree
mkdir /install
cp /media/* /install/ -fr
cp /root/anaconda-ks.cfg /install/ks.cfg
vi /install/ks.cfg like so
---------------------------------------------------------------
# Kickstart file automatically generated by anaconda.
install
nfs --server=192.168.0.110 --dir=/install
key --skip
lang en_US.UTF-8
keyboard us
xconfig --startxonboot
network --device eth0 --bootproto static --ip 192.168.0.202 --netmask 255.255.255.0 --hostname
station1.example.com
rootpw --iscrypted $1$8Z2j4C7y$lIcTZGLghrO0E4xvK.KsX/
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone --utc America/New_York
bootloader --location=mbr --driveorder=sda --append="rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
clearpart --linux --drives=sda --initlabel
part /boot --fstype ext3 --size=100 --ondisk=sda
part pv.2 --size=0 --grow --ondisk=sda
volgroup VolGroup00 --pesize=32768 pv.2
logvol swap --fstype swap --name=LogVol01 --vgname=VolGroup00 --size=512 --grow
--maxsize=1024
logvol / --fstype ext3 --name=LogVol00 --vgname=VolGroup00 --size=1024 --grow
%packages
@office
@editors
@text-internet
@gnome-desktop
@dialup
@core
@base
@games
@java
@legacy-software-support
@base-x
@graphics
@printing
@sound-and-video
@admin-tools
@graphical-internet
emacs
kexec-tools
device-mapper-multipath
xorg-x11-utils
xorg-x11-server-Xnest
libsane-hpaio
sysreport
---------------------------------------------------------------
chmod 777 /install/ks.cfg
writer Bhanv
二○一○年一○月○七日