Red Hat This forum is for the discussion of Red Hat Linux. |
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
11-03-2005, 09:28 AM
|
#1
|
LQ Newbie
Registered: Nov 2005
Posts: 1
Rep:
|
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.
|
|
|
03-17-2006, 09:59 AM
|
#2
|
LQ Newbie
Registered: Aug 2005
Distribution: RedHat Enterprise WS v.3
Posts: 27
Rep:
|
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.
|
|
|
03-22-2006, 02:49 PM
|
#3
|
LQ Newbie
Registered: Aug 2005
Distribution: RedHat Enterprise WS v.3
Posts: 27
Rep:
|
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!!!
|
|
|
09-30-2008, 05:30 PM
|
#4
|
Senior Member
Registered: Nov 2006
Location: California
Distribution: Fedora , CentOS , RHEL
Posts: 1,979
|
Quote:
Originally Posted by flgal3
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!
|
|
|
10-01-2008, 02:43 AM
|
#5
|
Member
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228
Rep:
|
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
|
|
|
03-01-2010, 03:48 PM
|
#6
|
LQ Newbie
Registered: Mar 2010
Posts: 5
Rep:
|
Quote:
Originally Posted by flgal3
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
|
|
|
03-02-2010, 04:32 AM
|
#7
|
Member
Registered: Aug 2006
Posts: 609
Rep:
|
Quote:
Originally Posted by koolbarabo79
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?
|
|
|
03-04-2010, 08:44 AM
|
#8
|
LQ Newbie
Registered: Mar 2010
Posts: 5
Rep:
|
Quote:
Originally Posted by deadeyes
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.
|
|
|
03-06-2010, 05:18 AM
|
#9
|
Member
Registered: Aug 2006
Posts: 609
Rep:
|
Quote:
Originally Posted by koolbarabo79
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
|
|
|
01-28-2012, 05:38 AM
|
#10
|
LQ Newbie
Registered: Sep 2011
Distribution: redhat
Posts: 14
Rep: 
|
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
|
|
|
All times are GMT -5. The time now is 01:39 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
|
|