LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-27-2010, 01:50 PM   #1
surajpd
LQ Newbie
 
Registered: May 2010
Posts: 11

Rep: Reputation: 0
pxe booting is not reading kickstart file


Hello all,

i am trying to boot linux pc from network booting.. so using pxe,tftp,dhcp


(1).

i configured my /etc/dhcpd.conf file as...

ddns-update-style none;
ignore client-updates;
allow booting;
allow bootp;
authoritative;

subnet 192.168.0.0 netmask 255.255.255.0 {

option routers 192.168.0.1;
option subnet-mask 255.255.255.0;
option broadcast-address 192.168.0.255;
option domain-name “example.com”;
option domain-name-servers 192.168.0.1;
option time-offset -18000; # Eastern Standard Time
range dynamic-bootp 192.168.0.127 192.168.0.130;
default-lease-time 21600;
max-lease-time 43200;

class “pxeclients” {
match if substring(option vendor-class-identifier, 0, 9) = “PXEClient”;
next-server 192.168.0.120;
filename “linux-install/pxelinux.0″;
}
}



(2). i configure my tftp as..

yum install tftp

/tfptboot/linux-install/linux =>folder
/tfptboot/linux-install/msgs =>folder
/tfptboot/linux-install/pxelinux.cfg =>folder
/tfptboot/linux-install/pxelinux.0 =>file

i added vmlinuz, initrd.img and ks.cfg file to /linux
i added boot.img,general.img,param.img,rescue.img,option.img to /msgs
i made a default configuration file in /pxelinux.cfg

default file containing..

default linux
timeout 100
prompt 1
display msgs/boot.msg
F1 msgs/boot.msg
F2 msgs/general.msg
F3 msgs/expert.msg
F4 msgs/param.msg
F5 msgs/rescue.msg
F7 msgs/snake.msg

label linux
kernel Linux/vmlinuz
append initrd=Linux/initrd.img ramdisk_size=7000
ks=nfs:192.168.0.120:/home/ks.cfg



(3). i shared /home directory in nfs..


(4). service nfs restart , chkconfig nfs on
service xinetd restart , chkconfig xinetd on
service dhcpd restart , chkconfig dhcpd on



(5). When trying to boot any client pc by network booting..
its showing...

Missing parameter in config file.
boot:

After sometime it automatically start and take linux askmethod ( i guess) coz if i am giving in boot prompt "linux ks=nfs:.../ks.cfg"
its booting from kickstart,

That means its not taking "linux ks=nfs:...:/ks.cfg" in its boot prompt , instead of that it is taking " linux askmethod ".


I had tried alot from last 5 days , now i am not getting why its not taking kickstart file in its boot prompts.

nfs working fine, no SELinux , no Firewell , no iptable ,

plz somebody explain me why its not working and also what is missing in that default configuration file,coz its showing like that.

any help would be great for me.

take care.
 
Old 06-27-2010, 03:52 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,997

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
From RH site.

"The Red Hat Linux installation program looks for a kickstart file if the ks command line argument is passed to the kernel. The command line argument can take a number of forms:

ks=nfs:<server>:/<path>

The installation program will look for the kickstart file on the NFS server <server>, as file <path>. The installation program will use DHCP to configure the Ethernet card. For example, if your NFS server is server.example.com and the kickstart file is in the NFS share /mydir/ks.cfg, the correct boot command would be ks=nfs:server.example.com:/mydir/ks.cfg. "

So first I'd view nfs mount remotely just to see if it is indeed correct. Then I'd look at my ks file.


I will admit I am confused a bit by this statement.

"ks

If ks is used alone, the installation program will configure the Ethernet card in the system using DHCP. The system will use the "bootServer" from the DHCP response as an NFS server to read the kickstart file from (by default, this is the same as the DHCP server). The name of the kickstart file is one of the following:

*

If DHCP is specified and the bootfile begins with a /, the bootfile provided by DHCP is looked for on the NFS server.
*

If DHCP is specified and the bootfile begins with something other then a /, the bootfile provided by DHCP is looked for in the /kickstart directory on the NFS server.
*

If DHCP did not specify a bootfile, then the installation program tries to read the file /kickstart/1.2.3.4-kickstart, where 1.2.3.4 is the numeric IP address of the machine being installed. ?

Last edited by jefro; 06-27-2010 at 03:55 PM.
 
Old 06-28-2010, 10:02 AM   #3
surajpd
LQ Newbie
 
Registered: May 2010
Posts: 11

Original Poster
Rep: Reputation: 0
thanks for response....

Thanks jefro.... ur post was full of information..
but as i am new to linux ,, i couldnt understand last part regarding ks, that u mentioned ,
if DHCP is specified and bootfile start with / , without / .....
are you talking about "linux-install/pxelinux.0"....
i didnt get this part of your post.. but still the post was full of information...

And fortunately some hit and trial worked for me.....

Actually i was using one more virtual NIC in my pc, so i did not set which NIC i am configuring for DHCP ,,,, so i revised my /pxelinux.cfg/default file , in last line... i added ksdevice=eth0.

append initrd=Linux/initrd.img ksdevice=eth0 ramdisk_size=7000 ks=nfs:192.168.0.120:/home/ks.cfg

and its now accepting kickstart file , woowoowwwooo

I love Linux.... its full of challenges..

Last edited by surajpd; 06-28-2010 at 10:04 AM.
 
Old 06-28-2010, 02:56 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,997

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Good work!
 
Old 06-30-2010, 10:52 PM   #5
kapshure
LQ Newbie
 
Registered: Mar 2010
Posts: 29

Rep: Reputation: 1
I don't want to hijack anyone's thread, but I'm also having pretty much this exact same problem, except host and client are both VMs. Should I just start another thread?
 
Old 07-01-2010, 02:33 PM   #6
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,997

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Yep,

On VM's I'd start out with both having only local network access. Local, Nat and bridged are common choices.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
centos 5 PXE install server w/kickstart issues swanyjim Linux - Server 10 09-01-2009 01:57 AM
PXE Kickstart of multiple OS's glassman_3d Linux - Networking 1 07-20-2009 09:39 AM
PXE Kickstart of multiple OS's glassman_3d Linux - Server 0 07-20-2009 09:32 AM
Kickstart PXE install to machine of other network vikas027 Linux - Newbie 2 03-10-2009 12:17 AM
Not reading kickstart configuration file from specified location.....PLEASE HELP!! deepika Linux - Software 4 08-02-2003 08:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration