CentOS を pxebootでリモート起動して自動インストール

書き途中

  • CDでブートしてキックスタート
boot: linux ks=http://<server>/ks.cfg
boot: linux ks=nfs:<server>:/ks.cfg

nfsインストール時

# Kickstart file automatically generated by anaconda.

install
nfs --server=10.0.7.171 --dir=/mnt/iso/
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto dhcp
rootpw --iscrypted $1$RjDA59l.$biy0.iQHvEcgvPIVUpuUd.
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone --utc America/Vancouver
bootloader --location=mbr --driveorder=sda,sdb,sdc
# 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 --asprimary
#part swap --size=256 --ondisk=sda
#part pv.13 --size=1 --grow --ondisk=sdc
#part pv.12 --size=1 --grow --ondisk=sdb
#part / --fstype ext3 --size=1 --grow --ondisk=sda --asprimary

%packages
@base
@core

CDROMインストール時

# Kickstart file automatically generated by anaconda.

install
cdrom
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto dhcp --hostname centos5.randd.pspinc.com
rootpw --iscrypted $1$OW6kG9m1$I8ysTNoMfJU3XnZLKGVHY/
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone --utc America/Los_Angeles
bootloader --location=mbr --driveorder=hda
# 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 / --fstype ext3 --start=1 --end=964 --ondisk=hda
#part swap --size=139 --grow

%packages
@core
kernel
system-config-securitylevel-tui