LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 11-03-2005, 09:28 AM   #1
mancdaz
LQ Newbie
 
Registered: Nov 2005
Posts: 1

Rep: Reputation: 0
network kickstart without dhcp server


Is it possible to have my kickstart file on an nfs mount, the installation media on another nfs mount, and to use a statically defined ip address defined with options at the boot prompt. For example

boot> linux ks=nfs:1.2.3.4/my/ks ip=9.9.9.9 gateway=9.9.9.1 netmask=255.255.255.0

I'm not able to run a dhcp server in my environment so unless I can define the networking info to my target machine at the boot prompt, it's not going to be able to access the kickstart or installation files on the network.
 
Old 03-17-2006, 09:59 AM   #2
flgal3
LQ Newbie
 
Registered: Aug 2005
Distribution: RedHat Enterprise WS v.3
Posts: 27

Rep: Reputation: 15
Quote:
boot> linux ks=nfs:1.2.3.4/my/ks ip=9.9.9.9 gateway=9.9.9.1 netmask=255.255.255.0
Did you ever get this to work? This is exactly what I need to do.
 
Old 03-22-2006, 02:49 PM   #3
flgal3
LQ Newbie
 
Registered: Aug 2005
Distribution: RedHat Enterprise WS v.3
Posts: 27

Rep: Reputation: 15
FYI - this worked like a charm for me . . .

A booted of a CDROM made from disk 1 of the install CD set. At the boot prompt used the following:

boot: linux ks=nfs:IP_ADDR_NFS_SVR:/location/of/ks.cfg ksdevice=eth0 IP:IP_ADDR_CLIENT netmask=255.255.255.0 gateway=IP_ADDR_gateway

IP_ADDR_NFS_SVR is the IP address of the nfs server which has both the kickstart file and the RH installation iso images properly exported via NFS.

IP_ADDR_CLIENT is the IP address of the client machine that is getting the installation.

The first time I did this I included the interactive command in my kickstart file in order to verify everything would be going as intended.

Good luck!!!
 
Old 09-30-2008, 05:30 PM   #4
custangro
Senior Member
 
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
Blog Entries: 1

Rep: Reputation: 209Reputation: 209Reputation: 209
Quote:
Originally Posted by flgal3 View Post
FYI - this worked like a charm for me . . .

A booted of a CDROM made from disk 1 of the install CD set. At the boot prompt used the following:

boot: linux ks=nfs:IP_ADDR_NFS_SVR:/location/of/ks.cfg ksdevice=eth0 IP:IP_ADDR_CLIENT netmask=255.255.255.0 gateway=IP_ADDR_gateway

IP_ADDR_NFS_SVR is the IP address of the nfs server which has both the kickstart file and the RH installation iso images properly exported via NFS.

IP_ADDR_CLIENT is the IP address of the client machine that is getting the installation.

The first time I did this I included the interactive command in my kickstart file in order to verify everything would be going as intended.

Good luck!!!
THANK YOU!!!

I've been trying to find a way to do it without dhcp!

You're a lifesaver!
 
Old 10-01-2008, 02:43 AM   #5
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
If you do use DHCP but don't want to rely on it,I wrote a small script which takes a DHCP address hen kickstarting but then writes the static files after the build completes


#!/bin/bash

export FILEPATH=/etc/sysconfig/network-scripts
export FILELIST=`cd /etc/sysconfig/network-scripts/;ls ifcfg-eth*`

for s in $FILELIST
do
if grep ONBOOT=yes $FILEPATH/$s;
then
cp $FILEPATH/$s $FILEPATH/$s.old
export NETDEV="`grep DEVICE $FILEPATH/$s.old | awk -F= '{print $2}'`"
echo "`grep DEVICE $FILEPATH/$s.old`" > $FILEPATH/$s
echo BOOTPROTO=static >> $FILEPATH/$s
echo IPADDR="`ifconfig -a $NETDEV | grep inet | grep addr | grep -v inet6
| awk '{print $2}' | awk -F: '{print $2}'`" >> $FILEPATH/$s
echo NETMASK="`ifconfig -a $NETDEV | grep Mask | awk -F: '{print $4}'`" >>
$FILEPATH/$s
grep GATEWAY $FILEPATH/$s.old >> $FILEPATH/$s
grep HWADDR $FILEPATH/$s.old >> $FILEPATH/$s
echo ONBOOT=yes >> $FILEPATH/$s
fi
done
 
Old 03-01-2010, 03:48 PM   #6
koolbarabo79
LQ Newbie
 
Registered: Mar 2010
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by flgal3 View Post
FYI - this worked like a charm for me . . .

A booted of a CDROM made from disk 1 of the install CD set. At the boot prompt used the following:

boot: linux ks=nfs:IP_ADDR_NFS_SVR:/location/of/ks.cfg ksdevice=eth0 IP:IP_ADDR_CLIENT netmask=255.255.255.0 gateway=IP_ADDR_gateway

IP_ADDR_NFS_SVR is the IP address of the nfs server which has both the kickstart file and the RH installation iso images properly exported via NFS.

IP_ADDR_CLIENT is the IP address of the client machine that is getting the installation.

The first time I did this I included the interactive command in my kickstart file in order to verify everything would be going as intended.

Good luck!!!


Hey I tried this but never worked for me, it says Error downloading Kickstart file.

linux ks =nfs://10.32.14.46:KS/ks.cfg ksdevice=eth0 ip=10.32.200.3 gateway= 10.32.200.1 netmask=255.255.255.0

my kickstart is on NFS share windows, i can mount that folder from other linux machine and can see it as well.


thanks
 
Old 03-02-2010, 04:32 AM   #7
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
Quote:
Originally Posted by koolbarabo79 View Post
Hey I tried this but never worked for me, it says Error downloading Kickstart file.

linux ks =nfs://10.32.14.46:KS/ks.cfg ksdevice=eth0 ip=10.32.200.3 gateway= 10.32.200.1 netmask=255.255.255.0

my kickstart is on NFS share windows, i can mount that folder from other linux machine and can see it as well.


thanks
If I am not mistaken you are using an incorrect syntax.
I think it should be:
linux ks=nfs:10.32.14.46:/KS/ks.cfg
Depending on your path.

I have no idea about the ksdevice stuff
But dhcp should also be possible to use here.
You are booting from cd, right?

If you got the error: did you go to the other terminals and took a look if there were any messages?
 
Old 03-04-2010, 08:44 AM   #8
koolbarabo79
LQ Newbie
 
Registered: Mar 2010
Posts: 5

Rep: Reputation: 0
Quote:
Originally Posted by deadeyes View Post
If I am not mistaken you are using an incorrect syntax.
I think it should be:
linux ks=nfs:10.32.14.46:/KS/ks.cfg
Depending on your path.

I have no idea about the ksdevice stuff
But dhcp should also be possible to use here.
You are booting from cd, right?

If you got the error: did you go to the other terminals and took a look if there were any messages?
Hello,

I fixed the syntax and used following,

linux ks =nfs:10.32.14.46:/KS/ks.cfg ksdevice=eth0 ip=10.32.200.3 gateway= 10.32.200.1 netmask=255.255.255.0

ksdevice is the nic card or ethernet card from where you cable is plugged in.

yes i am booting from cdrom.Yes, i tryed from other machines same message ,these are HP 580 and 380's.

When you say DHCP should be used here, we have DHCP running on windows.
How can I configure DHCP on windows for my scenario?



thanks..

Last edited by koolbarabo79; 03-04-2010 at 09:57 AM.
 
Old 03-06-2010, 05:18 AM   #9
deadeyes
Member
 
Registered: Aug 2006
Posts: 609

Rep: Reputation: 79
Quote:
Originally Posted by koolbarabo79 View Post
Hello,

I fixed the syntax and used following,

linux ks =nfs:10.32.14.46:/KS/ks.cfg ksdevice=eth0 ip=10.32.200.3 gateway= 10.32.200.1 netmask=255.255.255.0

ksdevice is the nic card or ethernet card from where you cable is plugged in.

yes i am booting from cdrom.Yes, i tryed from other machines same message ,these are HP 580 and 380's.

When you say DHCP should be used here, we have DHCP running on windows.
How can I configure DHCP on windows for my scenario?



thanks..
I think it should just work without specifying the IP gateway netmask and ksdevice.
I think there is no need for this as the first network will probably be used.

Please use google if you need any special settings on Windows to use it as a dhcp for linux.
I dont think so, so just try it out. With only the ks argument
 
Old 01-28-2012, 05:38 AM   #10
linux1986
LQ Newbie
 
Registered: Sep 2011
Distribution: redhat
Posts: 14

Rep: Reputation: Disabled
Hello,

It is better if you configure with dhcp. then you wont have to give ip netmask gateway n all for the client machine. Also u can give nfs location of ks file in dhcp. so running "boot: linux ks" will be enough. Following link worked for me.

http://www.linuxhelp.in/2010/03/how-...-in-rhel5.html
 
  


Reply



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
Kickstart no DHCP - Help! vectorz2 Red Hat 6 05-04-2005 04:11 PM
Network Card can't get IP from DHCP server andypoon Linux - Networking 5 04-13-2005 04:13 PM
How to specify Network Time Protocol Server in Kickstart script? EStester Linux - Enterprise 3 03-26-2005 01:46 PM
Setting up a DHCP server w/ the server on a wireless network Ionexchange Linux - Wireless Networking 0 05-08-2004 10:56 AM
Home network using linksys router -- DHCP server? GoinEasy9 Linux - General 12 04-01-2004 11:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 05:13 AM.

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