LinuxQuestions.org
Visit Jeremy's Blog.
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 12-17-2009, 01:58 PM   #1
tdo896
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Rep: Reputation: 0
Kickstart Centos 5.4 x86_64 missing files. DHCP/PXE/TFTP/HTTP.


Hi,

I'm trying to kickstart a client with Centos 5.4 via DHCP/PXE/TFTP/HTTP and it's failing because of missing files.

I downloaded both the Centos 5.4 DVD iso and the individual CD isos(1-7) from Centos.org, mounted them with the "-o loop" and copy(rsync) it's contents to a local directory that Apache serves.

Scenario.

System boots up, gets IP from DHCP server(I can ping it), and then passes on to TFTP, loads pxelinux.0/initrd.img/vmlinuz. Then it freezes right there. I check the apache logs on the kickstart server and it shows:

Access_log.

198.168.1.100 - - [16/Dec/2009:23:56:39 +0000] "GET /ks/198.168.1.100-kickstart.cfg HTTP/1.0" 200 1090 "-" "anaconda/11.1.2.195"
198.168.1.100 - - [16/Dec/2009:23:56:44 +0000] "GET /ks/CentOS-5.4_x86_64/images/updates.img HTTP/1.0" 404 316 "-" "anaconda/11.1.2.195"
198.168.1.100 - - [16/Dec/2009:23:56:44 +0000] "GET /ks/CentOS-5.4_x86_64/disc1/images/updates.img HTTP/1.0" 404 322 "-" "anaconda/11.1.2.195"
198.168.1.100 - - [16/Dec/2009:23:56:44 +0000] "GET /ks/CentOS-5.4_x86_64/images/product.img HTTP/1.0" 404 316 "-" "anaconda/11.1.2.195"
198.168.1.100 - - [16/Dec/2009:23:56:44 +0000] "GET /ks/CentOS-5.4_x86_64/disc1/images/product.img HTTP/1.0" 404 322 "-" "anaconda/11.1.2.195"
198.168.1.100 - - [16/Dec/2009:23:56:44 +0000] "GET /ks/CentOS-5.4_x86_64/images/stage2.img HTTP/1.0" 200 112836608 "-" "anaconda/11.1.2.195"
198.168.1.100 - - [16/Dec/2009:23:56:54 +0000] "GET /ks/CentOS-5.4_x86_64//disc1/.discinfo HTTP/1.1" 200 40 "-" "urlgrabber/3.1.0"
198.168.1.100 - - [16/Dec/2009:23:56:54 +0000] "GET /ks/CentOS-5.4_x86_64//disc2/.discinfo HTTP/1.1" 200 40 "-" "urlgrabber/3.1.0"
198.168.1.100 - - [16/Dec/2009:23:56:54 +0000] "GET /ks/CentOS-5.4_x86_64//disc3/.discinfo HTTP/1.1" 200 40 "-" "urlgrabber/3.1.0"
198.168.1.100 - - [16/Dec/2009:23:56:54 +0000] "GET /ks/CentOS-5.4_x86_64//disc4/.discinfo HTTP/1.1" 200 40 "-" "urlgrabber/3.1.0"
198.168.1.100 - - [16/Dec/2009:23:56:54 +0000] "GET /ks/CentOS-5.4_x86_64//disc5/.discinfo HTTP/1.1" 200 40 "-" "urlgrabber/3.1.0"
198.168.1.100 - - [16/Dec/2009:23:56:54 +0000] "GET /ks/CentOS-5.4_x86_64//disc6/.discinfo HTTP/1.1" 200 40 "-" "urlgrabber/3.1.0"
198.168.1.100 - - [16/Dec/2009:23:56:54 +0000] "GET /ks/CentOS-5.4_x86_64//disc7/.discinfo HTTP/1.1" 200 40 "-" "urlgrabber/3.1.0"
198.168.1.100 - - [16/Dec/2009:23:56:54 +0000] "GET /ks/CentOS-5.4_x86_64//disc8/.discinfo HTTP/1.1" 404 314 "-" "urlgrabber/3.1.0"

Disc8???

Error_log.

[Wed Dec 16 23:56:44 2009] [error] [client 198.168.1.100] File does not exist: /var/www/html/ks/CentOS-5.4_x86_64/images/updates.img
[Wed Dec 16 23:56:44 2009] [error] [client 198.168.1.100] File does not exist: /var/www/html/ks/CentOS-5.4_x86_64/disc1/images/updates.img
[Wed Dec 16 23:56:44 2009] [error] [client 198.168.1.100] File does not exist: /var/www/html/ks/CentOS-5.4_x86_64/images/product.img
[Wed Dec 16 23:56:44 2009] [error] [client 198.168.1.100] File does not exist: /var/www/html/ks/CentOS-5.4_x86_64/disc1/images/product.img
[Wed Dec 16 23:56:54 2009] [error] [client 198.168.1.100] File does not exist: /var/www/html/ks/CentOS-5.4_x86_64/disc8

I've checked the ISOs and files like product.img,updates.img do not exists! Neither does disc8. I've also tried to use a public mirror for Centos 5.4 but the results are the same.

Client Screenshot during kickstart process.


Copyright (C) 1997-2003, Intel Corporation šAT

Intel(R) Boot Agent GE v1.2.11
Copyright (C) 1997-2003, Intel Corporation

Intel(R) Boot Agent PXE Base Code (BA1211BC)
Copyright (C) 1997-2003, Intel Corporation

CLIENT MAC ADDR: 00 14 4F 9A AC 40 GUID: 00000000 0000 0000 0000 0003BACD7AE1
CLIENT IP: 198.168.1.100 MASK: 255.255.255.224 DHCP IP: 198.168.1.200
GATEWAY IP: 198.168.1.162

PXELINUX 3.08 2005-05-19 Copyright (C) 1994-2005 H. Peter Anvin
UNDI data segment at: 00094190
UNDI data segment size: 61D0
UNDI code segment at: 0009A360
UNDI code segment size: 2C40
PXE entry point found (we hope) at 9A36:0106
My IP address seems to be 0A6E6422 198.168.1.100
TFTP prefix: / šS
Trying to load: pxelinux.cfg/01-00-14-4f-9a-ac-40
Loading vmlinuzimg................................... šS
Ready. šAT

And it just sits there. No activity in the logs and no traffic between the server and client systems.


I've also tried to turn on kickstart logging for debugging by putting the following in the ks.cfg file but none works. File does not get created.

ks.cfg
1. logging --level=debug
2. %pre --log=/tmp/kickstart.log
3. logging --host=sysloghost --port=514 --level=debug


ks.cfg


install
url --url http://198.168.1.200/centos/5.4/os/x86_64/ [^]
lang en_US.UTF-8
langsupport --default=en_US.UTF-8 en_US.UTF-8
keyboard us
network --device=eth0 --bootproto=static --ip=198.168.1.100 --netmask=255.255.255.224 --gateway=198.168.1.162 --nameserver=198.168.1.200,198.168.1.201
rootpw --iscrypted $1$E/789p9i$ruhTXvHek0JuqjvC/PLpc1
firewall --enabled --port=22:tcp
selinux --disabled
authconfig --enableshadow --enablemd5
timezone --utc America/Los_Angeles
bootloader --location=mbr


%packages
@ everything
lvm2
kernel-smp
kernel-devel
kernel-smp-devel
e2fsprogs

%post

.discinfo

1254416275.453877
Final
x86_64
1,2,3,4,5,6,7
CentOS

When I hit the Centos tree location with a web browser, I can see it's all available. It's file permissions are wide open at the moment for troubleshooting this issue.
Any pointers will be greatly appreciated.

Last edited by tdo896; 12-17-2009 at 02:08 PM.
 
Old 12-18-2009, 11:12 PM   #2
rkski
Member
 
Registered: Jan 2009
Location: Canada
Distribution: CentOS 6.3, Fedora 17
Posts: 247

Rep: Reputation: 51
Hi
I haven't used kickstart in a long time but I believe you have to copy also a hidden (dot file) on the CD.
 
Old 12-19-2009, 09:08 AM   #3
Smartpatrol
Member
 
Registered: Sep 2009
Posts: 196

Rep: Reputation: 38
...

Last edited by Smartpatrol; 03-11-2010 at 09:53 PM.
 
Old 12-20-2009, 04:51 PM   #4
tdo896
LQ Newbie
 
Registered: Dec 2009
Posts: 2

Original Poster
Rep: Reputation: 0
rkski/Smartpatrol,

Thank you for your responses.

Rkski, the hidden dot file you're referring to is the .discinfo and .treeinfo right? I've checked these files and they look correct. Both files has nothing in them referring to disc8.

Smartpatrol, the reason for the lean ks.cfg file is because I stripped it down just to troubleshoot this issue i'm having.

Thanks a bunch for the suggestions, I'll keep digging and I'll post my findings as soon as I make some progress.

Tdo
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
HELP with Kickstart Fedora 10 NFS TFTP PXE boot server brendon_mitre Fedora 2 02-25-2009 09:53 AM
PXE, DHCP, TFTP, Working - Bootable image not!?!? almcneill Linux - Networking 4 07-25-2008 03:06 PM
Kickstart/nfs/dhcp/tftp problem with stopping at "Freeing unused kernel memory/Write" simeruk Red Hat 0 06-10-2008 11:09 AM
Network Install using PXe, DHCP, TFTP and FTP Aseem SUSE / openSUSE 1 12-15-2005 10:57 PM

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

All times are GMT -5. The time now is 10:11 PM.

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