Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
"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. ?
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.