kickstart インストール

# Kickstart file automatically generated by anaconda.

install
url --url http://rsync.atworks.co.jp/centos/5/os/i386/
lang en_US.UTF-8
network --device eth0 --bootproto static \
  --ip 192.168.10.144 --netmask 255.255.255.0 \
  --gateway 192.168.10.1 --nameserver 172.21.201.120,172.21.201.121 \
  --hostname www.sample.com
rootpw --iscrypted $1$VyATx3HG$wBUZeIx8aD3dlTyXGQPyg/
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone Asia/Tokyo
bootloader --location=mbr --driveorder=xvda --append="console=xvc0"
# 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=xvda
part /boot --fstype ext3 --size=200
part swap --size=512 --asprimary
part / --fstype ext3 --size=1 --grow --asprimary

%packages
@editors
@core
@base
device-mapper-multipath
-sysreport
    • kickstart設定ファイルを公開するサーバ(server)を用意
    • install CDよりブート
      • "boot: "プロンプトで以下を入力
linux ks=http:///path/to/ks.cfg ksdevice=eth0 \
  network --ip 192.168.10.144 --netmask 255.255.255.0 \
          --gateway 192.168.10.1 --nameserver 172.21.201.120
    • あとはぼーっと終わるのを待つ