Providing ks.cfg with dhcp

Kelly Brown kbbrown at cs.ucsd.edu
Fri May 14 22:05:39 UTC 2004


It works for me.  I can't always use pxe because alot of my hardware is
really old.  That's the way I have it in my dhcpd.conf and all I do is
type ks after booting off of a cd.

On Fri, 14 May 2004, Rick Dennis wrote:

> I don't think this will work.  You can't put your ks.cfg file in the
> dhcpd.conf.  That "filename" that's passed back from dhcp is typically
> used by pxe, but to my knowledge is not used by "loader" to reference the
> ks.cfg file.
>
> If that's what you want, you're better off setting up a kickstart+pxe
> environment.
>
> --Rick
>
> > Assuming that you didn't do a typo with the rh9.cfg/ks.cfg thing...
> >
> > You might want to try this in your dhcpd.conf
> > 	host your_hostname { hardware ethernet your_ethernet_address;
> > filename "/home/kickstart/ks.cfg"; }
> >
> > dhcpd should log to your messages log with syslog so if it's not working
> > it might give you a clue.
> >
> > The alternate file it's looking for is a default location that ks looks
> > for so you could always create a link there and leave all of file stuff
> > out of dhcp.
> >
> > Also you don't need to type 'linux ks' apparently it works but 'ks' is
> > enough.
> >
> > Hope this helps.
> > -Kelly
> >
> > On Thu, 29 Apr 2004, Joseph Glass wrote:
> >
> >> Hi everyone,
> >>
> >> I'm trying to provide my ks.cfg over dhcp so I only need to type 'linux
> >> ks' at the boot prompt.  The dhcpd/kickstart server are on the same
> >> machine (192.168.0.1.)  dhcp works, as well as kickstart if I run the
> >> following command manually:
> >>
> >> linux ks=nfs:192.168.0.1:/home/kickstart/rh9.cfg
> >>
> >> In my dhcpd.conf file, I added following line in the subnet {} section:
> >>
> >> filename "/home/kickstart/ks.cfg";
> >>
> >> My /etc/exports file contains the following:
> >>
> >> /home/kickstart *(ro)
> >>
> >> The error I get is:
> >>
> >> bootp: no bootfile received
> >>
> >> Then it proceeds to look for the kickstart file at
> >> nfs:192.168.0.1:/kickstart/kickstart-192.168.0.18
> >>
> >> Any suggestions?
> >>
> >> Thanks for helping me with the question about using perl in %pre.  Since
> >> you can't use perl in %pre from just the install CD, I ended up porting
> >> my script to python which works well.  And I learned a new programming
> >> language in the process :).
> >>
> >> Thank you.
> >>
> >> --
> >> Joseph Glass
> >> Systems Administrator
> >> Liquid Web Inc.
> >> 800.580.4985 x227
> >>
> >>
> >> _______________________________________________
> >> Kickstart-list mailing list
> >> Kickstart-list at redhat.com
> >> https://www.redhat.com/mailman/listinfo/kickstart-list
> >>
> >
> >
> > _______________________________________________
> > Kickstart-list mailing list
> > Kickstart-list at redhat.com
> > https://www.redhat.com/mailman/listinfo/kickstart-list
> >
>
>
> _______________________________________________
> Kickstart-list mailing list
> Kickstart-list at redhat.com
> https://www.redhat.com/mailman/listinfo/kickstart-list
>





More information about the Kickstart-list mailing list