Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| 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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
06-01-2009, 04:23 PM
|
#1
|
|
Member
Registered: Mar 2009
Posts: 47
Rep:
|
Kickstart installation via NFS
Hello everyone. I'm having a problem configuring a kickstart installation via NFS using CentOS 4.7. Two servers I have are connected with a crossover cable and I want one server to double as the NFS server and the BOOTP/DHCP server to install CentOS4.7 on the other.
I am doing this as practice for the "real thing." I figured this would be an excellent way to learn how to do future slightly-larger scale installs, but I am having problems tackling just this first one. The problem I have is that I want to configure the eth0 of the server to be installed to accept it's IP via the BOOTP/DHCP server. I am unsure if I have not activated a service necessary to complete this task but a quick check of daemons using shows that rpc.statd, portmap, nfsd, lockd, and rpc.mountd are running on the BOOTP/DHCP&NFS Server (they are actually one server combined. Also,
Code:
chkconfig --list portmap
and
Code:
chkconfig --list nfs
are also showing those two services on. I also made sure that the IP address of the server to be installed is included (ro)read-only in the file. Can you tell me anything I should check to continue troubleshooting because I haven't done anything like this before and am not sure what else to do. The literature on the subject is not clueing me to check anything else. I feel like I just need some guidance. Thanks.
Last edited by Latitude; 06-01-2009 at 04:25 PM.
|
|
|
|
06-06-2009, 10:41 AM
|
#2
|
|
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,257
|
Simply starting the daemons for your services is not enough to make them useful. Have you configured at least /etc/exports for the NFS server? And for DHCP, you must also set up the appropriate config file, with information suitable to your setting. You will need to determine what that configuration is, based on your requirements, and the nature of your system.
--- rod.
|
|
|
|
06-08-2009, 12:02 PM
|
#3
|
|
Member
Registered: Mar 2009
Posts: 47
Original Poster
Rep:
|
I want to share the only two files in a directory we will call the "latitude" directory, which are the kickstart file that will be reachable by NFS and a file which is a CentOS 4.7 install iso image. Therefore, the latitude directory is shared with 192.168.0.2, the IP address of the server I want to kickstart.
I have configured my /etc/exports to include simply the following:
Code:
/home/latitude/ 192.168.0.2/255.255.255.0(ro,sync,no_root_squash)
With regard to the appropriate DHCP config file, I have the following in my dhcpd.conf file:
ddns-update-style interim;
ignore client-dates;
allow bootp;
allow booting;
subnet 192.168.0.0 netmask 255.255.255.0
{ host hostname
{ hardware ethernet MAC Address ;
fixed-address 192.168.0.2;
filename "/home/latitude/192.168.0.2-kickstart;
next-server NFSserverHostName.localdomain; }
}
I have started NFS but am having a DHCP problem now. When I go to kickstart the server, the server can't find the kickstart file even though I have it included in the /etc/host.allow and /etc/exports files. I am unsure, and am still troubleshooting to find a problem.
Last edited by Latitude; 06-08-2009 at 12:10 PM.
|
|
|
|
06-08-2009, 02:14 PM
|
#4
|
|
Moderator
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 10,339
|
Hi,
Once you setup the config files the information must be shared. You should ' man exportfs' which shows that you will need to perform 'exportfs -a' at least.
A search here on LQ will provide a lot of useful information on 'NFS' as this has been covered before.
|
|
|
|
06-09-2009, 09:30 AM
|
#5
|
|
Member
Registered: Mar 2009
Posts: 47
Original Poster
Rep:
|
Yes, I use exportfs -a -v so I can see what I am doing, and I'm still unable to get the server I want to kickstart to get access to the kickstart file. I'm searching for a solution in RHEL 4 and CentOS docs/manuals, using Google as well. I tried service iptables stop and still could not get the server to reach the kickstart file, even after relaunching nfs services (service nfs restart). I am reading into SELinux, it's hard to understand at first. I might try and find an SELinux tutorial somewhere. The Red Hat manual on SELinux is hard to reign in without strong linux skills and knowledge.
Last edited by Latitude; 06-09-2009 at 09:32 AM.
|
|
|
|
06-10-2009, 04:28 PM
|
#6
|
|
LQ 5k Club
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,257
|
Since you have two hosts, and two network components on each host, it seems to make sense to start narrowing down the source of errors. The DHCP server can be tested from the client side (probably even as localhost), using ' dhclient -d'. This should report receipt of a valid IP for the client, and should cause the DHCP server to leave some information in your server's system logs. An example transcript follows:
Code:
$ su -c ' /sbin/dhclient -d'
Password:
Internet Systems Consortium DHCP Client V3.0.1
Copyright 2004 Internet Systems Consortium.
All rights reserved.
For info, please visit http://www.isc.org/products/DHCP
Listening on LPF/eth0/00:19:d1:81:8e:30
Sending on LPF/eth0/00:19:d1:81:8e:30
Sending on Socket/fallback
DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 8
DHCPOFFER from xx.xx.xx.38
DHCPREQUEST on eth0 to 255.255.255.255 port 67
DHCPACK from xx.xx.xx.38
bound to yy.yy.yy.22 -- renewal in 34082 seconds.
I see, now, that you have specified a filename in your DHCP configuration for the client. Conventionally, the filename specified here will be fetched from the server using tftp (not NFS). I am unacquainted with the kickstart procedure, so I will guess that the filename may be used by the kickstart client as an NFS-hosted file.
In either case, you should be able to test the server, be it TFTP (which you have not mentioned configuring) or NFS. In the case of TFTP:
Code:
$ tftp
$ tftp xx.xx.xx.38
tftp> get pxelinux.0
tftp> quit
$ ls -lash pxelinux.0
16K -rw-r--r-- 1 owner group 14K Jun 10 14:11 pxelinux.0
Use your '/home/latitude/192.168.0.2-kickstart' filename (although, there may be issues with directory names prefixed to the filespec for a simple protocol like TFTP).
You can mount the NFS server from any host allowed in your /etc/exports file:
Code:
mount -t nfs server:/share/name /mount/point/on/localhost
ls /mount/point/on/localhost
Doing these diagnostics should illuminate where your problems are.
--- rod.
Last edited by theNbomr; 06-10-2009 at 04:33 PM.
|
|
|
|
10-02-2009, 05:53 AM
|
#7
|
|
Member
Registered: Nov 2005
Posts: 80
Rep:
|
Is this worked?
I didn't do any DHCP configuration and tried installing through NFS.
But I am getting the window "Error downloading kickstart file" with message "Unable to download the kickstart file. Please modify the kickstart parameter below or press cancel to proceed as an interactive installation".
But I tested the NFS mount is working from other servers. But i think the fresh install is not picking the NFS share. is there any configuration I am missing?
Please help me.
|
|
|
|
10-02-2009, 06:19 AM
|
#8
|
|
Member
Registered: Oct 2003
Location: Elgin,IL,USA
Distribution: Sidux, LinHES, and Mythbuntu
Posts: 209
Rep:
|
What does /etc/xinetd.d/tftp say the server_args are? it should point to the directory your have the pxe boot files.
server_args = -s /opt/RedHat/TFTP
In /opt/RedHat/TFTP I have vmlinuz and initrd.img and another dir called pxelinux.cfg with a file called default.
Default has this;
Code:
default linux
#prompt=1
#delay 3000
label linux
##4.7 image
kernel vmlinuz
append initrd=initrd.img ks=nfs:xx.xx.xx.xx:/opt/RedHat/ks.cfg eth0_ethtool="autoneg=off speed=100 duplex=full" acpi=off mptsas
The append line tells kickstart were to find the ks.cfg file for an automated install, and passes some boot variables. mptsas is a drive I need for some machines to load the SAS drive for the hard drive.
Last edited by uteck; 10-02-2009 at 06:20 AM.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:26 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|