Solved

PXE Boot using NFS problem CentOS5.5

Posted on 2010-09-11
6
599 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
LVL 31

Author Comment

by:farzanj
Comment Utility
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
Comment Utility
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
Comment Utility
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

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Join & Write a Comment

After running Ubuntu some time, you will be asked to download updates for fixing bugs and security updates. All the packages you download replace the previous ones, except for the kernel, also called "linux-image". This is due to the fact that w…
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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 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

Need Help in Real-Time?

Connect with top rated Experts

7 Experts available now in Live!

Get 1:1 Help Now