[syslinux] PXE Question....
Shaun McCullagh
shaun.mccullagh at marviQ.com
Thu Aug 8 09:22:37 PDT 2002
Hi,
We are using PXELinux 1.75, ISC DHCP 3.0pl1 and atftp-0.6 to deploy RH
7.3 across a number of Dell Rackmount systems.
I would like to set things up so that the RH boot kernel grabs the IP
Address, gateway aand DNS address from the
first DHCP request with 'ipappend 1', but so far have had no success,
Kickstart issue a seconed request after
booting the kernel.
Here are my configs:
Have I put 'ipappend 1' in the right place?
TIA
Shaun
dhcp.conf
# dhcpd.conf
#
# DHCP configuration for remote install of Linux on PXEBOOT clients
# (J.R.Donath 08-JUL-2002)
#
deny unknown-clients;
not authoritative;
#authoritative;
ddns-update-style none;
option option-134 code 134 = text;
option option-135 code 135 = text;
option netbios-name-servers 192.168.104.97;
option netbios-node-type 2;
always-broadcast off;
ping-check false;
option subnet-mask 255.255.255.0;
# Set lease-time infinite
default-lease-time 3000;
# Definition of PXE-specific options
# Code 1: Multicast IP address of boot file server
# Code 2: UDP port that client should monitor for MTFTP responses
# Code 3: UDP port that MTFTP servers are using to listen for MTFTP
requests
# Code 4: Number of seconds a client must listen for activity before
trying
# to start a new MTFTP transfer
# Code 5: Number of seconds a client must listen before trying to
restart
# a MTFTP transfer
option space PXE;
option PXE.mtftp-ip code 1 = ip-address;
option PXE.mtftp-cport code 2 = unsigned integer 16;
option PXE.mtftp-sport code 3 = unsigned integer 16;
option PXE.mtftp-tmout code 4 = unsigned integer 8;
option PXE.mtftp-delay code 5 = unsigned integer 8;
option PXE.discovery-control code 6 = unsigned integer 8;
option PXE.discovery-mcast-addr code 7 = ip-address;
subnet 10.0.111.0 netmask 255.255.255.0 {
option routers 10.0.111.9;
option domain-name "graddelt.com";
option domain-name-servers 10.0.115.22;
option broadcast-address 10.0.111.255;
}
# Linux clients
group {
# This is the name of the file the boot ROMs should
download.
filename "pxelinux.0";
# This is the name of the server they should get it
from.
next-server 192.168.104.97;
host Renault {
hardware ethernet 00:06:5b:8c:0b:03;
fixed-address 10.0.111.34;
}
}
Tftpboot file: 0A006F23
label linux
kernel vmlinuz
ipappend 1
append ks=nfs:192.168.104.97:/tftpboot/boot/10.0.111.35/ks.cfg
initrd=initrd.img load_ramdisk=1
ks.cfg
10.0.111.34 10.0.111.35
[root at orca boot]# cat 10.0.111.34
cat: 10.0.111.34: Is a directory
[root at orca boot]# cat 10.0.111.34/ks.cfg
lang en_US
langsupport en_US
keyboard us
mouse none
timezone --utc Europe/Amsterdam
rootpw --iscrypted $1$Ð9Qpþ7ú5$tlEzEyfBj9OLcdAOZhfUP.
#reboot
text
bootloader --useLilo --linear --location=mbr
install
nfs --server orca.graddelt.com --dir /tftpboot/redhat/7.3/en/os/i386
part /boot --fstype ext3 --onpart sda2
part / --fstype ext3 --onpart sda5
part swap --onpart sda6
part swap --onpart sda7
network --bootproto static --ip 10.0.111.34 --netmask 255.255.255.0
--gateway 10.0.111.9 --nameserver 10.0.115.22
auth --useshadow --enablemd5
firewall --disabled
skipx
%packages
%pre
echo "------------------"
echo "PRE INSTALL PHASE"
echo "------------------"
# Mount our admin directory over NFS
mkdir /mnt/admin
mount -t nfs 192.168.104.97:/tftpboot/redhat/admin /mnt/admin
# Pre KS config., a.o. disk lay-out
/mnt/admin/pre_ks_conf.sh >/mnt/admin/log/10.0.111.34 2>&1
umount /mnt/admin
rmdir /mnt/admin
%post --nochroot
echo "------------------"
echo "POST INSTALL PHASE"
echo "------------------"
# Mount our admin directory via NFS
# Note: first we have to start portmap locally
/mnt/sysimage/sbin/portmap
#
mkdir /mnt/admin
sleep 1
mount -t nfs orca.graddelt.com:/tftpboot/redhat/admin /mnt/admin
/mnt/admin/post_ks_conf.sh >>/mnt/admin/log/10.0.111.34 2>&1
More information about the Syslinux
mailing list