1.Linux中都有大量安装的软件,这里主要说的是kickstart的应用。这个大量安装的好处是,在安装大量的服务器的时候派上用场,kickstart可以先是安装好一台机器然后再/root文件中有一个anaconda-ks.cfg文件可以修改,但是如果不符合要求可以ksconfig命令来自己配置kickstart文件,这里主要是针对GUI界面配置。
2.选择的安装启动方式开机引导到boot:界面
软盘 linux ks=floppy
NFS linux ks=nfs:servername:/path/ks.cfg
HTTP linux ks=http://server/path
CDROM linux ks=cdrom:/ks.cfg
硬盘安装 ks=hd:sda3 /mydir/ks.cfg
3.接下去基本上就是系统自动安装centos5.5了。
如果要引导到boot:界面可以用光盘也可以用pxe都是可以的。
# Kickstart file automatically generated by anaconda.
install
url --url http://mirrors.163.com/centos/5.5/os/i386
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto static --ip 192.168.10.165 --netmask 255.255.255.0 --gateway 192.168.10.254 --nameserver 202.101.172.35 --hostname centos5
network --device eth1 --bootproto static --ip 192.168.1.1 --netmask 255.255.255.0 --gateway 192.168.10.254 --nameserver 202.101.172.35 --hostname centos5
rootpw --iscrypted $1$q8gSgEoV$9j13h5dDOgRU8Q5oxq7eN/
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone Asia/Shanghai
bootloader --location=mbr --driveorder=hda --md5pass=$1$tKzODmK9$PZ8bNvX.jFnK9FECIgNf.1
# 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
#part /boot --fstype ext3 --size=100
#part swap --size=512
#part / --fstype ext3 --size=1 --grow
%packages
@base
@core
keyutils
trousers
fipscheck
device-mapper-multipath
转载于:https://blog.51cto.com/zh888/533669