Solved

PXE Boot using NFS problem CentOS5.5

Posted on 2010-09-11
6
603 Views
Last Modified: 2012-05-10
I have a single box that has to have all components to automate installation of other machines.  I created /tftpboot directory that has pxelinux.0 executable and a pxelinux.config folder.  Apparently booting stage 1 works fine.  At stage 2, it stops and asks for the location of the kickstart file.
Should my kickstart file be under /tftpboot folder or under nsf share? Are there options about the location of your kickstart files?

I have copied all the directory structure directory under /mnt/nfs folder.
In my /etc/exports I have exported like
/mnt/nfs   *(ro)
Should I have norootsquash option?  Is that the problem?
In my config file /tftpboot/pxelinux.cfg/C0000000
I have option
kernel centos5.5/vmlinuz
append initrd=centos5.5/initrd.img ks=nfs://192.168.0.254:/mnt/nfs/ks.cfg ksdevice=link

I have no special configuration for nfs in my DHCP.  My kickstart file resides in /mnt/nfs/ folder root, the same place where the root level directories of CentOS DVD's reside.

What am I doing wrong?
0
Comment
Question by:farzanj
  • 3
  • 3
6 Comments
 
LVL 11

Accepted Solution

by:
jgiordano earned 500 total points
ID: 33655554
There is a problem with nfs, kickstart and some switches when running gig auto.

I would make sure the ip address gets assigned to the host and is pingable. If that works the ip is assigned and your initial config is good. Then if possible move the kickstart file to an http location instead of nfs.
0
 
LVL 31

Author Comment

by:farzanj
ID: 33655639
There is no firewall.  Hosts are not only pingable but tftp ran fine.  No ports are blocked.  It appears it is not accessing the Kickstart file right.
0
 
LVL 11

Expert Comment

by:jgiordano
ID: 33656493
try putting the kickstart file on an http server

there are multiple bugs with similar issues -

https://bugzilla.redhat.com/show_bug.cgi?id=109324
0
Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

 
LVL 31

Author Comment

by:farzanj
ID: 33657191
Hi jgiordano,
I have read this bug report in detail.  It doesn't appear to be relevant at all.  My installing machine doesn't find the kickstart file over NFS at all whereas it is at least finding the the file.

Second, how would it locate where to get the packages from.  Whether it is NFS or FTP or HTTP, I need to know where does it pull packages from over the internet?
0
 
LVL 11

Expert Comment

by:jgiordano
ID: 33657230
It could be you aren't finding the kickstart file over nfs because it could be a bug related to the network speed and driver. Move it to another type of network card, or a different method and see if that resolves tge issue.


Secondly you need to share tge source install files via nfs, http or FTP.
0
 
LVL 31

Author Closing Comment

by:farzanj
ID: 33665303
Thanks a lot for your help.  I think I was messing up only the syntax and I when I corrected, I was able to install without a problem using NFS.
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question