How to install Linux via the network with a kickstart file

March 30th, 2008 Categories: Hot Tips


Here’s a nice tip on how to install Linux over the network (in this case a http / webserver), from a kickstart file

Put this in the /ks.cfg file on your bootable CD:

[php]

title Remote Install
        root (hd0,0)
        kernel /vmlinuz_remote ks=http://<domain>/<path_to_file>/<kickstart_config> vnc vncconnect=<observing_ip>
        initrd /initrd_remote.img

# Barebones demo remote kickstart configuration
#

install
network --bootproto dhcp
url --url http://<domain>/<path_to_file>/i386/tree
lang en_US
langsupport --default en_US en_US
keyboard us
mouse none
zerombr yes
clearpart --all
part pv.01 --size=1000 --grow
part /boot --fstype=ext3 --size=200
part swap --size=1000   --maxsize=2000
volgroup myvg pv.01
logvol / --vgname=myvg --name=rootvol --size=1000 --grow
bootloader --location mbr
timezone America/New_York
auth --enablemd5 --enableshadow
rootpw --iscrypted <encryptedpasswdstring>
selinux --permissive
reboot
firewall --enabled --http --ssh --smtp
skipx

%packages --resolvedeps

@ Base

%post

# MOTD
echo << /etc/motd
echo "Remote kickstart on $(date +'%Y-%m-%d')" << /etc/motd
echo << /etc/motd
[/php]

I found the information on this website, http://www.redhat.com/magazine/024oct06/features/kickstart/

Tags:

One Response to “How to install Linux via the network with a kickstart file”

1 trackbacks

  1. Dr. Riekeyword Trackback | 2008/04/09
You must be logged in to post a comment.