Networking in kickstart

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Networking in kickstart
# 1  
Old 05-03-2012
Networking in kickstart

I'm using a script in %pre that prompts for IP, hostname, etc. The answers are dumped out as variables and used to set up the config files in %post All works well.

Now, it's being used to install the OS on an HP Proliant that's in a remote datacenter via iLO, and it takes about an hour to transfer all of the files over iLO. So I got clever, commented out "cdrom" and added url --url http://ip.of.my.yum.server/path/to/os/ Then, at the end of %pre, I added /sbin/ifconfig eth0 $IP netmask $NM up However... it appears that kickstart sees the "url" directive and therefore assumes that it must have networking RIGHT NOW! It tries DHCP, fails, then runs %pre. I'm not certain if it ever raises the interface or not, but it complains "Unable to read package metadata"

Is there a way to do what I want to do... NOT configure eth0 in kickstart, but the way I'm doing it, raise the interface, and install from a network source instead of the disc?
# 2  
Old 05-05-2012
I am sure you are feeding the kickstart file remotely, which means your system's ethernet adapter is already acquiring IP through DHCP (otherwise it's not possible to do a network installation without a DHCP server).

Now, if you need to configure your card with specific IP/subnetmask, you would need to add the "network" option after specifying the installation tree source, url in your case. Here's what my kickstart file looks like:

Code:
install
url --url http://10.0.1.93/repo/
lang en_US.UTF-8
keyboard us
network --activate --onboot yes --device eth0 --bootproto static --ip 10.0.1.101 --netmask
255.255.255.0 --noipv6 --hostname blue

The --activate switch works on RHEL 6.x only. It activates (reactivates if you have only one NIC) the card with the IP/subnet specified.
# 3  
Old 05-07-2012
Quote:
Originally Posted by admin_xor
I am sure you are feeding the kickstart file remotely
Why are you sure of that? Smilie

I'm not. The kickstart file is on the DVD. There is no DHCP in this environment, and won't be. That isn't a decision I made or agree with, but it is what it is.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Kickstart using anaconda-ks.cfg

Heyas I'm trying to build a live image using livecd-tools (livecd-creator), but this time i'd like to reuse the /root/anaconda-ks.cfg. System: Fedora 3.16.7-200.fc20.x86_64 The building starts, the download begins, but it fails with networking. MAIN.ks # Based on: fedora-live-base.ks... (0 Replies)
Discussion started by: sea
0 Replies

2. Red Hat

%include in kickstart

RHEL 5.4 I'm trying to use %include statements in my kickstarts, and am running into some problems. In %pre, I can %include /mnt/source/isolinux/setup-questions and that works just fine. One of the things it does is echo out several variables to /tmp/vars In %post --nochroot, I copy... (2 Replies)
Discussion started by: jnojr
2 Replies

3. UNIX for Dummies Questions & Answers

How to install Unix OS with the Kickstart?

I am new to the Kickstart. I have a question: If I have a kickstart script in USB, CentOS CD and a PC without the OS, Can I install the CentOS with the Kickstart script? If I can, How can I identify the location of the kickstart when I boot the computer with the CentOS CD? (0 Replies)
Discussion started by: thsecmaniac
0 Replies

4. Linux

Kickstart server

Hello everyone, I have problem while configuring kickstart server .i have performed some steps but still i am unable to configure kickstart server on CentOS 5.4. I have performed following steps:- yum install system-config-kickstart mkdir /kickstart mount /dev/cdrom /media cd /media... (2 Replies)
Discussion started by: karan chauhan
2 Replies

5. Red Hat

Kickstart vs VMware cloning.

We have an environment where we are using RHEL5.5 on vmware vsphere4.0 & I would just like to know 1. What are the benefits of having a kickstart server as we can do the OS cloning with VMWare vCenter. 2. Secondly is there any thing similar to Flash archive (Solaris) for creating an image... (1 Reply)
Discussion started by: fugitive
1 Replies

6. Red Hat

RH Kickstart Questions..

Hello, I am pretty new to using Linux and learning as I go, my setup is extremly simple, I have 1 virtual machine running on my laptop running (ubuntu 10.04), I've created a kickstart (Red Hat) file with the ksconfig. So I know have a config file for my Redhat.iso and my VM machine. What's... (1 Reply)
Discussion started by: NelsonC
1 Replies

7. Red Hat

RHEL Kickstart

Hi, I am trying to install RHEL5.3 using kickstart method. Copied the rhel.iso file from DVD to http location. ks.cfg and rhel.iso files are available on a WINDOWS2008 Server (via HTTP). In ks.cfg file, provided the media path as url --url=http://xx.xx.xx.xx/RHEL53. System understanding the... (3 Replies)
Discussion started by: uday123
3 Replies

8. UNIX for Advanced & Expert Users

Kickstart File

Hi, I was able to set up a kickstart to install Red Hat Enterprise thought a network. I'm trying to enable a NTP time server in the post section of the kickstart file and also enable/disable a few services using chkconfig. I can't seam to get it to work, can anyone help ? I don't beleive i... (2 Replies)
Discussion started by: Georgesaa
2 Replies

9. Linux

NFS not mounting during kickstart

Hi, Re-building linux server from a kickstart image on cdrom. We have a kickstart server. the cdrom contacins the kickstart ks.cfg file and does a NFS mount from an IP to load the iso images and other files needed during the kickstart (re-build) Now for some reason the kickstart stops and... (2 Replies)
Discussion started by: Andrek
2 Replies

10. Linux

Redhat Kickstart

Would anyone know how to set a NIC to 100 Full Duplex from within a kickstart bootdisk? I just added the Tigon3 module to the bootnet.img - it loads fine but auto-negotiates to 100 Half Duplex for some reason - are there any parameters I can pass on the boot disk to force it 100 Full appreciate... (2 Replies)
Discussion started by: silvaman
2 Replies
Login or Register to Ask a Question