Unable to get any httprequests:Unable toretrieve netstg2.imgfile

Coe, Colin C. (Unix Engineer) Colin.Coe at woodside.com.au
Wed May 16 23:15:43 UTC 2007


What do your HTTPD logs look like?  Do you see a GET for your ks.cfg in
(assuming Apache HTTPD) access_log?  Do you see any errors in error_log?
 
CC


________________________________

	From: kickstart-list-bounces at redhat.com
[mailto:kickstart-list-bounces at redhat.com] On Behalf Of
SSTinsley at upsfreight.com
	Sent: Thursday, 17 May 2007 5:19 AM
	To: Discussion list about Kickstart
	Subject: RE: Unable to get any httprequests:Unable toretrieve
netstg2.imgfile
	
	

	I finally gave up and copied my ks.cfg to a CDROM and changed my
pxelinux.cfg to load the KS cfg file from CD the drive. Anaconda could
read the ks.cfg. The ks.cfg file pointed to a RedHat release image on an
NFS server. However, Anaconda said it could not read the NFS release and
displayed a screen to input the corrected NFS image information. The
defaults from the KS cfg file where displayed as defaults. I entered
nothing different and hit OK. Anaconda was able to now mount the RHEL
image using the same information as was specified in the KS cfg file. I
think Anaconda has a few bugs in handling network interfaces and
protocols. I would love to figure out a fix, but I got to get some
servers installed. 
	
	I'll keep and eye out for your posts to see if you have any
better luck. I still have not heard back from Redhat. So much for paid
support. 
	
	Get me back on Solaris!! 
	
	kickstart-list-bounces at redhat.com wrote on 05/16/2007 11:03:13
AM:
	
	> I feel your pain.
	> I'll let you know if I find anything.
	> Thanks
	> 
	> -Mukarram.
	> 
	> -----Original Message-----
	> From: kickstart-list-bounces at redhat.com
	> [mailto:kickstart-list-bounces at redhat.com] On Behalf Of
	> SSTinsley at upsfreight.com
	> Sent: Wednesday, May 16, 2007 6:00 AM
	> To: Discussion list about Kickstart
	> Subject: RE: Unable to get any http requests:Unable toretrieve
	> netstg2.imgfile
	> 
	> 
	> I have been fighting almost the identical problem. See the
thread entitled 
	> 
	> "Re: Kickstart via PXE/NFS" 
	> 
	> After the kernel is loaded via configuration set up in the
pxelinux config
	> file, the 
	> network will not come up and the ks.cfg file can then not be
loaded. I get
	> the 
	> network config screen asking to use DHCP or to enter static
info for setup
	> of eth0. It 
	> has really bee frustrating. I finally just placed my ks.cfg on
CDROM and was
	> able 
	> to get the rest of the PXE auto install to complete. 
	> 
	> If you get a resolution, I will be very interested. I have had
a case open
	> with 
	> RedHat for 2 days waiting for a response. 
	> 
	> kickstart-list-bounces at redhat.com wrote on 05/16/2007 04:38:30
AM:
	> 
	> > Nope. Nothing in the error logs.
	> > 
	> > In my troubleshooting, this is what I've found...
	> > 
	> > When I remove the ks=http://<ServerIP>/<PATH>/ks.cfg from my
"default"
	> file
	> > Client PXE boots, shows menu and loads vmlinuz/initrd.
	> > Then it shows up the Language selection.  No luck.
	> > However, when I change my default file to read:
ks=/<PATH>/ks.cfg,
	> > Client PXE boots, shows menu and loads vmlinuz/initrd.
	> > Then it gives the error "Error opening kickstart file
(null): Bad address"
	> > I do some more research (see link below)
	> >
http://linux.derkeiler.com/Mailing-Lists/Fedora/2004-06/5939.html
	> > and modified the ks.cfg file...add more network parameters
like so:
	> > network --device=eth0 --bootproto=static --ip=171.67.39.139
	> > --netmask=255.255.255.224 --gateway=171.67.39.129
--nameserver=171.64.7.77
	> > --hostname=as-test.stanford.edu
	> > Still no luck.
	> > I then changed my --device=eth0 to --device=link and then to
	> > --device=eth1...still no luck.  Then put it back to
--device=eth0.
	> > Then I change my PATH from:
	> > url --url http://171.67.39.130/ENT_LINUX_64/Enterprise
	> > to
	> > url --url http://171.67.39.130/ENT_LINUX_64
	> > Still no luck.
	> > Again nothing in the http logs.
	> > 
	> > It looks like the installer is reading the ks.cfg file
silently since it
	> > complained that it couldn't find it from the default file
when I didn't
	> > specify the http://<servername>.  
	> > Can I figure out what is reading and stopping.  Is there a
way to look at
	> > the kickstart logs (If there is any...I haven't seen one).
	> > 
	> > I tried to create logging as well in my ks.cfg file...no
luck...no output:
	> > %pre --log=/tmp/my-pre-log
	> > echo 'Hello, World!'
	> > 
	> > Here is my directory/file setup:
	> > 
	> > TFTP:
	> > 
	> > /tftpboot/linux-install/pxelinux.cfg
	> > [root at as-kickball pxelinux.cfg]# ls
	> > default  pxeos.xml
	> > 
	> > [root at as-kickball linux-install]# ls -lR
	> > .:
	> > total 32
	> > drwxr-xr-x  2 root root  4096 May 14 00:31 ENT_LINUX_32
	> > drwxr-xr-x  2 root root  4096 May 16 00:30 ENT_LINUX_64
	> > drwxr-xr-x  2 root root  4096 May 14 21:09 msgs
	> > -rwxr-xr-x  1 root root 12952 Oct 24  2006 pxelinux.0
	> > drwxr-xr-x  2 root root  4096 May 16 00:25 pxelinux.cfg
	> > 
	> > ./ENT_LINUX_32:
	> > total 0
	> > 
	> > ./ENT_LINUX_64:
	> > total 5984
	> > -rwxr-xr-x  1 root root 4310479 May 14 15:29 initrd.img
	> > -rwxr-xr-x  1 root root      85 May 16 00:30 ks.cfg
	> > -rwxr-xr-x  1 root root 1792835 May 14 15:29 vmlinuz
	> > 
	> > ./msgs:
	> > total 24
	> > -rwxr-xr-x  1 root root 534 May 14 21:00 boot.msg
	> > -rwxr-xr-x  1 root root 668 Oct 24  2006 expert.msg
	> > -rwxr-xr-x  1 root root 871 Oct 24  2006 general.msg
	> > -rwxr-xr-x  1 root root 860 Oct 24  2006 param.msg
	> > -rwxr-xr-x  1 root root 530 Oct 24  2006 rescue.msg
	> > -rwxr-xr-x  1 root root 545 Oct 24  2006 snake.msg
	> > 
	> > ./pxelinux.cfg:
	> > total 20
	> > -rwxr-xr-x  1 root root 511 May 16 00:25 default
	> > -rwxr-xr-x  1 root root 511 May 15 23:34 default.bak
	> > -rwxr-xr-x  1 root root 461 May 15 14:44 default.dhcp
	> > -rwxr-xr-x  1 root root 573 May 15 13:30 default.staticIP
	> > -rwxr-xr-x  1 root root  42 May 14 16:28 pxeos.xml
	> > 
	> > My HTTP directory:
	> > 
	> > [root at as-kickball /]# ls -lart /var/www/html
	> > total 24
	> > drwxr-xr-x  8 root root 4096 Mar 21 19:17 ..
	> > drwxr-xr-x  4 root root 4096 May 14 00:35 .
	> > drwxr-xr-x  3 root root 4096 May 14 00:40 ENT_LINUX_32
	> > drwxr-xr-x  3 root root 4096 May 15 15:49 ENT_LINUX_64
	> > 
	> > [root at as-kickball /]# ls -lart
/var/www/html/ENT_LINUX_64/Enterprise/
	> > total 136
	> > drwxr-xr-x  2 root root 114688 Feb 24 13:15 RPMS
	> > drwxr-xr-x  2 root root   4096 May 14 15:53 base
	> > -rwxr-xr-x  1 root root   1386 May 15 15:05
ks_ent_linux_64.cfg
	> > drwxr-xr-x  3 root root   4096 May 15 15:49 ..
	> > -rw-r--r--  1 root root   1242 May 16 01:08 ks.cfg
	> > drwxr-xr-x  4 root root   4096 May 16 01:08 .
	> > 
	> > I am at a loss now.  I am sure it's something simple as it
mostly is.
	> > Help is appreciated.
	> > 
	> > Tomorrow, I'll tell my networking guy to enable "spanning
tree" so I could
	> > use dhcp and get the static crap out of my way.
	> > Will let you know more.
	> > 
	> > -Mukarram.
	> > 
	> > 
	> > -----Original Message-----
	> > From: kickstart-list-bounces at redhat.com
	> > [mailto:kickstart-list-bounces at redhat.com] On Behalf Of Mike
Jennings
	> > Sent: Tuesday, May 15, 2007 8:47 PM
	> > To: Discussion list about Kickstart
	> > Subject: Re: Unable to get any http requests:Unable to
retreive
	> > netstg2.imgfile
	> > 
	> > Is the apache log showing any 404 errors? My stupid screwups
are  
	> > always shown in the error log when I typo something.
	> > 
	> > Mike
	> > 
	> > 
	> > 
	> > On May 15, 2007, at 10:39 PM, Mukarram Syed wrote:
	> > 
	> > >
	> > > Colin,
	> > > I changed it from ksdevice=eth0 to ksdevice=link
	> > >
	> > > Sorry, that didn't help.
	> > >
	> > > Wonder what else could it be, why is it not connecting to
the http  
	> > > server?
	> > > I don't see any traffic in tcpdump after pxeboot.
	> > >
	> > > -Mukarram.
	> > >
	> > > -----Original Message-----
	> > > From: kickstart-list-bounces at redhat.com
	> > > [mailto:kickstart-list-bounces at redhat.com] On Behalf Of
Coe, Colin  
	> > > C. (Unix
	> > > Engineer)
	> > > Sent: Tuesday, May 15, 2007 5:56 PM
	> > > To: Discussion list about Kickstart
	> > > Subject: RE: Unable to get any http
requests:Unabletoretreive
	> > > netstg2.imgfile
	> > >
	> > >
	> > > Try changing 'ksdevice=eth0' to 'ksdevice=link'.  With 2.6
kernels,  
	> > > the
	> > > kernel's idea of what eth0 and eth1 are often differs from
the BIOS/ 
	> > > PXE
	> > > stack.
	> > >
	> > > CC
	> > >
	> > >> -----Original Message-----
	> > >> From: kickstart-list-bounces at redhat.com
	> > >> [mailto:kickstart-list-bounces at redhat.com] On Behalf Of
Mukarram Syed
	> > >> Sent: Wednesday, 16 May 2007 8:42 AM
	> > >> To: 'Discussion list about Kickstart'
	> > >> Subject: RE: Unable to get any http requests:
	> > >> Unabletoretreive netstg2.imgfile
	> > >>
	> > >> John,
	> > >> Sorry...just to make things clear.
	> > >> eth0 works to get the dhcp/tftp request and eth1 does
not.
	> > >> However, I tried using both is what I meant.
	> > >>
	> > >> We have a problem with dhcp, the networking folks here
did
	> > >> not enable "spanning tree" on the switch ports, until
that
	> > >> happens I am using static
	> > >> ip.   I double checked the syntax etc.
	> > >>
	> > >> Thanks
	> > >> -Mukarram.
	> > >>
	> > >> -----Original Message-----
	> > >> From: kickstart-list-bounces at redhat.com
	> > >> [mailto:kickstart-list-bounces at redhat.com] On Behalf Of
John
	> > >> Summerfield
	> > >> Sent: Tuesday, May 15, 2007 5:32 PM
	> > >> To: Discussion list about Kickstart
	> > >> Subject: Re: Unable to get any http requests: Unable
	> > >> toretreive netstg2.imgfile
	> > >>
	> > >> Mukarram Syed wrote:
	> > >>> Thanks Colin for the quick response
	> > >>>
	> > >>>
	> > >>>
	> > >>> Yes.  It does have.  It's a Dell PE2950.
	> > >>>
	> > >>>
	> > >>>
	> > >>> I have already tried that option as well.
	> > >>>
	> > >>> I tried both ksdevice=eth0 and ksdevice=eth1 and they
don't work.
	> > >>>
	> > >>
	> > >> If you can connect all network interfaces, that might
help,
	> > >> because it then doesn't matter whether either one or both
is used.
	> > >>
	> > >> If you run arpwatch that will report on which interfaces
are
	> > >> used (by mac address and IP).
	> > >>
	> > >> More below...
	> > >>
	> > >>>
	> > >>>
	> > >>> -Mukarram.
	> > >>>
	> > >>>
	> > >>>
	> > >>>
	> > >>>
	> > >>>   _____
	> > >>>
	> > >>> From: kickstart-list-bounces at redhat.com
	> > >>> [mailto:kickstart-list-bounces at redhat.com] On Behalf Of
	> > >> Coe, Colin C.
	> > >> (Unix
	> > >>> Engineer)
	> > >>> Sent: Tuesday, May 15, 2007 4:52 PM
	> > >>> To: Discussion list about Kickstart
	> > >>> Subject: RE: Unable to get any http requests: Unable to
retreive
	> > >>> netstg2.imgfile
	> > >>>
	> > >>>
	> > >>>
	> > >>> Does the machine you're on have multiple Ethernet
	> > >> interfaces?  If so,
	> > >>> what you may find is adding 'ksdevice=link' will assist.
	> > >>>
	> > >>>
	> > >>>
	> > >>> CC
	> > >>>
	> > >>>
	> > >>>
	> > >>>
	> > >>>   _____
	> > >>>
	> > >>>
	> > >>> From: kickstart-list-bounces at redhat.com
	> > >>> [mailto:kickstart-list-bounces at redhat.com] On Behalf Of
	> > >> Mukarram Syed
	> > >>> Sent: Wednesday, 16 May 2007 7:50 AM
	> > >>> To: kickstart-list at redhat.com
	> > >>> Subject: Unable to get any http requests: Unable to
retreive
	> > >>> netstg2.img file
	> > >>>
	> > >>> Hi
	> > >>>
	> > >>> I am sure there is some information regarding my
request, but I am
	> > >>> unable
	> > >> to
	> > >>> find it, hence the post.
	> > >>>
	> > >>>
	> > >>>
	> > >>> I configured my kickstart server using http.
	> > >>>
	> > >>> I am able to pxeboot the client, but my client is not
able
	> > >> to get the
	> > >>> netstg2.img file from the server.
	> > >>>
	> > >>> I am able to http into my netstg2.img directory from a
web browser
	> > >>> from another server in the same subnet successfully.
	> > >>>
	> > >>>
	> > >>>
	> > >>> Also I tried to put in a boot cdrom and run the
following:
	> > >>>
	> > >>> Linux
ks=http://<ServerIP>/ENT_LINUX_64/Enterprise/ks.cfg
	> > >>> ip=<ClientIP>
	> > >>> netmask=255.255.255.224 gateway=<GatewayIP>
	> > >>
	> > >>
	> > >> I have never used static IP for ks, I alway configure
	> > >> everything I can with dhcp. However, I do know that
that's
	> > >> not the format the kernel expects for the ip parameter.
Check
	> > >> your documentation, if I were writing a script tp parse
ip=
	> > >> then I'd conform to the existing standards (that is, the
way
	> > >> the kernel expects it), and that's what works with
Ubuntu.
	> > >>
	> > >>
	> > >>
	> > >>>
	> > >>>
	> > >>>
	> > >>> Still no luck. It goes straight to the cd installer.
	> > >>>
	> > >>>
	> > >>>
	> > >>> I tried to tcpdump the traffic on the MAC address of the
client, it
	> > >> outputs
	> > >>> the tftp information and after that it stops.
	> > >>>
	> > >>> I don't see any http traffic coming from the client.
	> > >>
	> > >> That's fairly consistent with you specifying ip=
incorrectly.
	> > >>
	> > >> btw, if you're using PXE, the why are you trying to
spectify
	> > >> static IP info?
	> > >>
	> > >> btw, as I recall, pxelinux has an option to pass on the
IP
	> > >> address info it gets in the proper format for the kernel
to parse.
	> > >>
	> > >>
	> > >>>
	> > >>>
	> > >>>
	> > >>> I'd appreciate some help in this regard.
	> > >>>
	> > >>> I've spent all day trying to troubleshoot this but no
luck.
	> > >>>
	> > >>>
	> > >>>
	> > >>> Thanks Much
	> > >>>
	> > >>>
	> > >>>
	> > >>>
	> > >>>
	> > >>> Mukarram Syed
	> > >>>
	> > >>> Unix Systems Administrator,
	> > >>>
	> > >>> Stanford University.
	> > >>>


NOTICE: This email and any attachments are confidential. 
They may contain legally privileged information or 
copyright material. You must not read, copy, use or 
disclose them without authorisation. If you are not an 
intended recipient, please contact us at once by return 
email and then delete both messages and all attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/kickstart-list/attachments/20070517/2a186a3c/attachment.htm>


More information about the Kickstart-list mailing list