list文件内容如下:
Choose one of the following Linux distributions for your installation:
Name Distribution Arch. Installation media
-------------------------------------------------------------------------
centos5.4 32bit i386
rhel5.3 32bit i386
rhel4 32bit i386
type the targe as centos5.4 or rhel5.3 or rhel4 and next to install the os ,glod bless!
三、在bootload目录下创建centos5.4之类的存放引导文件的目录
如该目录的centos5.4里面放置的文件是从centos5.4光盘中的isolinux目录文件
四、ftp工具设置
1) 开启tftp设置如下图server interface 为本机ip
Ip pool设置与本机ip同一网段
Boot file 为pxelinux.0
如有多IP点界面的settings设置下bind dhcp与bind tftp
五、apache设置下面是我设置的两个安装目录
Alias /rhel5.3 "D:/OS/RedHat/rhel-server-5.3-i386-dvd"
<Directory "D:/OS/RedHat/rhel-server-5.3-i386-dvd">
Options MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
Alias /rhel4 "D:/OS/RedHat/RHEL4-U4-i386-AS-disc1"
<Directory "D:/OS/RedHat/RHEL4-U4-i386-AS-disc1">
Options MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
六、系统安装
设置需要安装系统的机器网络启动
1)可以使用已经安装好的系统例如centos或rhel我这边是使用已安装好的rhel5.3系统文件/root/anaconda-ks.cfg,下载过来修改修改即可
保存文件名为ks.cfg,内容如下
# Kickstart file automatically generated by anaconda.
install
url --url http://192.168.203.1/rhel5.3
key --skip
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto dhcp
rootpw --iscrypted $1$ogcIyWqR$zM.sgu7CxUCY2NZOjc1460 #密码为123456
firewall --enabled --port=2222:tcp #端口号改变
authconfig --enableshadow --enablemd5
selinux –disabled #selinux关闭
timezone --utc Asia/Shanghai
bootloader --location=mbr --driveorder=sda
# 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
part /boot --fstype ext3 --size=100 --ondisk=sda
part swap --size=1024
part / --fstype ext3 --size=100 --grow
#选择需要安装的软件包
%packages
@development-libs
@text-internet
@core
@base
@admin-tools
@development-tools
kexec-tools
fipscheck
device-mapper-multipath
imake
#安装后的一些处理,把ssh的端口号改变,及相关不需要的服务关闭,如果有其它要求自己也可以添加下
%post
/bin/sed -i 's/#Port 22/Port 2222/' /etc/ssh/sshd_config
/sbin/chkconfig yum-updatesd off
/sbin/chkconfig sendmail off
/sbin/chkconfig rpcidmapd off
/sbin/chkconfig rpcgssd off
/sbin/chkconfig portmap off
/sbin/chkconfig nfslock off
/sbin/chkconfig ip6tables off
/sbin/chkconfig bluetooth off
/sbin/chkconfig autofs off