|
Why must kickstart get dynamic IP?
I had the same question - why must Kickstart get a dynamic IP when it already has one.
The dynamic IP request should time out eventually, and anaconda should proceed on to the kickstart install. As you found out, if all identifying information is supplied to the kernel, it will skip the dynamic IP request. The following configs work for me (Fedora Core 6):
Pxelinux.cfg (the kernel and append lines are all one long line each):
label linux
kernel FC6/vmlinuz
append text ksdevice=eth0 console=tty0 load_ramdisk=1 initrd=FC6/initrd.
img network ks=nfs:10.10.20.41:/kickstart/server.ks
# (skip dynamic request) append text ksdevice=eth0 console=tty0 load_ramdisk=1 initrd=FC6/initrd.
img network ks=nfs:10.10.20.41:/kickstart/server.ks ip=10.10.20.250 netma
sk=255.255.255.0 gateway=10.10.20.1 nameserver=127.0.0.1 hostname=xxx
server.ks file (watch for line wraps) WARNING: Be sorta careful - if a host comes up on the net, and it goes straight into Kickstart, it could wipe out a hosts' disk with a fresh install!):
# Kickstart file automatically generated by anaconda.
install
nfs --server=10.10.20.41 --dir=/os/FC6
lang en_US.UTF-8
keyboard us
xconfig --driver "i810" --resolution 800x600 --depth 24
network --device eth0 --bootproto static --ip 10.10.20.250 --netmask 255.255.255.0 --gateway 10.10.20.1 --nameserver 127.0.0.1 --hostname xxx
rootpw --iscrypted $1$borkborkborkborkbork
firewall --disabled
authconfig --enableshadow --enablemd5
selinux --permissive
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 --size=0 --grow
part swap --size=1024
%packages
@admin-tools
@base
@core
@development-tools
@dial-up
@dns-server
@editors
@java
@system-tools
@web-server
comps-extras
cracklib-dicts
gnome-mime-data
kernel-headers
nash
php-common
rmt
tzdata
Last edited by wsanders; 01-22-2008 at 05:57 PM.
|