How to install Linux via the network with a kickstart file

March 30, 2008 – 6:19 pm

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:

<pre>
<span style="color:Blue">title Remote Install
        root (hd0,0)
        kernel /vmlinuz_remote ks=http://&lt;domain&gt;/&lt;path_to_file&gt;/&lt;kickstart_config&gt; vnc vncconnect=&lt;observing_ip&gt;
        initrd /initrd_remote.img

# Barebones demo remote kickstart configuration
#

install
network --bootproto dhcp
url --url http://&lt;domain&gt;/&lt;path_to_file&gt;/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 &lt;encryptedpasswdstring&gt;
selinux --permissive
reboot
firewall --enabled --http --ssh --smtp
skipx

%packages --resolvedeps

@ Base

%post

# MOTD
echo &lt;&lt; /etc/motd
echo "Remote kickstart on $(date +'%Y-%m-%d')" &lt;&lt; /etc/motd
echo &lt;&lt; /etc/motd


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

Share/Save/Bookmark

  1. 1 Trackback(s)

  2. Apr 9, 2008: Dr. Riekeyword

You must be logged in to post a comment.