Home > Linux, Redhat > RHEL kickstart configuration tips

RHEL kickstart configuration tips

If you don’t want to answer what interface to choose when using kickstart, follow the instructions below for setting “ksdevice” from the kernel command line.

When your system has more than one network interface anaconda asks you which one you’d like to use for the kickstart process. This decision can be made at boot time by adding the ksdevice paramter and setting it accordingly. To run kickstart via eth0 simply add ksdevice=eth0 to the kernel command line.

A second method is using ksdevice=link. In this case anaconda will use the first interface it finds that has a active link.

At startup:
linux ks=http://172.x.x.x/RHEL58_.ks ksdevice=eth0

Here’s the contents of a sample RHEL 5.8 anaconda.ks file:
install
cdrom
key –skip
lang en_US.UTF-8
keyboard us
## Disable runlevel5, will default to runlevel 3
#xconfig –startxonboot
network –device eth0 –bootproto static –ip 172.x.x.x –netmask 255.255.255.0 –gateway 172.x.x.x –nameserver 172.x.x.x,172.x.x.x –hostname
#network –device eth1 –onboot no –bootproto dhcp –hostname paapp01
#network –device eth2 –onboot no –bootproto dhcp –hostname paapp01
#network –device eth3 –onboot no –bootproto dhcp –hostname paapp01
url –url http://172.25.111.8/RHEL/5.8
rootpw –iscrypted $1$HJBtqVKX$Fvyap22kX6ziBYkLxvlU.
firewall –disabled
authconfig –enableshadow –enablemd5
selinux –disabled
timezone –utc Atlantic/Reykjavik
bootloader –location=mbr –driveorder=sda –append=”rhgb quiet”
# 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 –all –drives=sda
part /boot –fstype ext3 –size=100 –ondisk=sda
part pv.6 –size=1 –grow –ondisk=sda
volgroup VolGroup00 –pesize=32768 pv.6
logvol / –fstype ext3 –name=LogVol00 –vgname=VolGroup00 –size=1024 –grow –size=100
logvol swap –fstype swap –name=LogVol01 –vgname=VolGroup00 –size=1000 –grow –maxsize=34144

%packages
@admin-tools
@base
@core
#@dialup
@editors
#@gnome-desktop
#@games
#@graphical-internet
#@graphics
#@java
#@legacy-software-support
#@office
#@printing
#@sound-and-video
#@text-internet
#@base-x
kexec-tools
iscsi-initiator-utils
fipscheck
device-mapper-multipath
sgpio
emacs
libsane-hpaio
xorg-x11-utils
xorg-x11-server-Xnest

Categories: Linux, Redhat
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: