FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > CentOS > CentOS

 
 
LinkBack Thread Tools
 
Old 04-22-2008, 12:44 PM
James Pearson
 
Default Kickstart network settings problem

Plant, Dean wrote:

I would like one of my kickstart scripts to prompt for disk and
networking only. Commenting out the disk and network settings makes the
installer prompt for disk settings but not for network settings, they
default to DHCP. Any idea's how to fix this?


I think you need to have the network settings defined - something like:

network --bootproto static

If you don't give it an IP address (with the --ip option), then it will
prompt for it. This is what I do for NFS installs - as my netmask,
gateway and nameserver addresses are static, I also give these on the
network line.


James Pearson
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-22-2008, 01:56 PM
"gopinath"
 
Default Kickstart network settings problem

This Below link will help you out

http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/en-US/System_Administration_Guide/

----- Original Message -----
From: "James Pearson" <james-p@moving-picture.com>
To: "CentOS mailing list" <centos@centos.org>
Sent: Tuesday, April 22, 2008 6:14 PM
Subject: Re: [CentOS] Kickstart network settings problem


> Plant, Dean wrote:
> > I would like one of my kickstart scripts to prompt for disk and
> > networking only. Commenting out the disk and network settings makes the
> > installer prompt for disk settings but not for network settings, they
> > default to DHCP. Any idea's how to fix this?
>
> I think you need to have the network settings defined - something like:
>
> network --bootproto static
>
> If you don't give it an IP address (with the --ip option), then it will
> prompt for it. This is what I do for NFS installs - as my netmask,
> gateway and nameserver addresses are static, I also give these on the
> network line.
>
> James Pearson
> _______________________________________________
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-22-2008, 02:28 PM
"Plant, Dean"
 
Default Kickstart network settings problem

James Pearson wrote:
> Plant, Dean wrote:
>> I would like one of my kickstart scripts to prompt for disk and
>> networking only. Commenting out the disk and network settings makes
>> the installer prompt for disk settings but not for network settings,
>> they default to DHCP. Any idea's how to fix this?
>
> I think you need to have the network settings defined - something
> like:
>
> network --bootproto static
>
> If you don't give it an IP address (with the --ip option), then it
> will prompt for it. This is what I do for NFS installs - as my
> netmask, gateway and nameserver addresses are static, I also give
> these on the network line.
>

Does not work, still defaults to DHCP with no prompt. Also if it makes
any difference im using v5.1.

I have tried with the 2 network lines shown below in the kickstart file,
with and without interactive variable. Still no network configuration
screen. :-(


Below is my test kickstart.

#platform=x86, AMD64, or Intel EM64T

# System authorization information
authconfig --enableshadow --enablemd5

# System bootloader configuration
bootloader --location=mbr --md5pass=apssword

# Reboot after installation
reboot

# Interactive
interactive

# Use graphical install
graphical

# Firewall configuration
firewall --disabled

# Run the Setup Agent on first boot
firstboot --disable

# System keyboard
keyboard uk

# Network settings

#network --bootproto=static --device=eth0 --gateway=192.168.10.1
--nameserver=192.168.10.1 --netmask=255.255.255.0 --onboot=on
network --bootproto=static

# System language
lang en_GB

# Installation logging level
# Use this to debug
logging --host=alogmachine.domain.co.uk --level=info

# Use network installation
url --url=http://amachine.domain.co.uk/5/en/os/i386/

# Root password
rootpw --iscrypted apassword

# SELinux configuration
selinux --disabled

# System timezone
timezone --isUtc Europe/London

# Install OS instead of upgrade
install

# XWindows configuration information
xconfig --depth=16 --resolution=1280x1024 --defaultdesktop=GNOME
--startxonboot
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-22-2008, 02:35 PM
"Akemi Yagi"
 
Default Kickstart network settings problem

On Tue, Apr 22, 2008 at 7:28 AM, Plant, Dean <dean.plant@roke.co.uk> wrote:

> I have tried with the 2 network lines shown below in the kickstart file,
> with and without interactive variable. Still no network configuration
> screen. :-(
>
> # Network settings
>
> #network --bootproto=static --device=eth0 --gateway=192.168.10.1
> --nameserver=192.168.10.1 --netmask=255.255.255.0 --onboot=on

Try adding --ip 192.168.10.??
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-22-2008, 02:42 PM
Marc-Andre Levesque
 
Default Kickstart network settings problem

By looking at what is described in the documentation from upstream, I do not believe this is possible.

First, network is an optional directive in the kickstart file. Moreover, it defaults to dynamic IP address (bootp or dhcp) over the eth0 device. If you wish to configure static IP, the documentation says that you have to provide all the required networking information in the kickstart file. So I believe you would have to fill in the whole kickstart line with its bootproto, ip, netmask, gateway, and nameserver values.


-----Original Message-----
From: centos-bounces@centos.org [mailto:centos-bounces@centos.org] On Behalf Of Plant, Dean
Sent: April 22, 2008 10:29
To: CentOS mailing list
Subject: RE: [CentOS] Kickstart network settings problem

James Pearson wrote:
> Plant, Dean wrote:
>> I would like one of my kickstart scripts to prompt for disk and
>> networking only. Commenting out the disk and network settings makes
>> the installer prompt for disk settings but not for network settings,
>> they default to DHCP. Any idea's how to fix this?
>
> I think you need to have the network settings defined - something
> like:
>
> network --bootproto static
>
> If you don't give it an IP address (with the --ip option), then it
> will prompt for it. This is what I do for NFS installs - as my
> netmask, gateway and nameserver addresses are static, I also give
> these on the network line.
>

Does not work, still defaults to DHCP with no prompt. Also if it makes
any difference im using v5.1.

I have tried with the 2 network lines shown below in the kickstart file,
with and without interactive variable. Still no network configuration
screen. :-(


Below is my test kickstart.

#platform=x86, AMD64, or Intel EM64T

# System authorization information
authconfig --enableshadow --enablemd5

# System bootloader configuration
bootloader --location=mbr --md5pass=apssword

# Reboot after installation
reboot

# Interactive
interactive

# Use graphical install
graphical

# Firewall configuration
firewall --disabled

# Run the Setup Agent on first boot
firstboot --disable

# System keyboard
keyboard uk

# Network settings

#network --bootproto=static --device=eth0 --gateway=192.168.10.1
--nameserver=192.168.10.1 --netmask=255.255.255.0 --onboot=on
network --bootproto=static

# System language
lang en_GB

# Installation logging level
# Use this to debug
logging --host=alogmachine.domain.co.uk --level=info

# Use network installation
url --url=http://amachine.domain.co.uk/5/en/os/i386/

# Root password
rootpw --iscrypted apassword

# SELinux configuration
selinux --disabled

# System timezone
timezone --isUtc Europe/London

# Install OS instead of upgrade
install

# XWindows configuration information
xconfig --depth=16 --resolution=1280x1024 --defaultdesktop=GNOME
--startxonboot
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-22-2008, 02:59 PM
James Pearson
 
Default Kickstart network settings problem

Plant, Dean wrote:

James Pearson wrote:


Plant, Dean wrote:


I would like one of my kickstart scripts to prompt for disk and
networking only. Commenting out the disk and network settings makes
the installer prompt for disk settings but not for network settings,
they default to DHCP. Any idea's how to fix this?


I think you need to have the network settings defined - something
like:


network --bootproto static

If you don't give it an IP address (with the --ip option), then it
will prompt for it. This is what I do for NFS installs - as my
netmask, gateway and nameserver addresses are static, I also give
these on the network line.




Does not work, still defaults to DHCP with no prompt. Also if it makes
any difference im using v5.1.

I have tried with the 2 network lines shown below in the kickstart file,
with and without interactive variable. Still no network configuration
screen. :-(


Hmmm, works OK for me with CentOS 4.X - however, I used a hacked version
of anaconda - one of my hacks is to set 'netDev.isDynamic' to 0 in
loader2/loader.c i.e. make static IP the default ... however, I thought
this was for non-kickstart installs only ... but may be it isn't.


James Pearson
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-22-2008, 03:11 PM
Ray Van Dolson
 
Default Kickstart network settings problem

On Tue, Apr 22, 2008 at 12:47:39PM +0100, Plant, Dean wrote:
> I would like one of my kickstart scripts to prompt for disk and
> networking only. Commenting out the disk and network settings makes the
> installer prompt for disk settings but not for network settings, they
> default to DHCP. Any idea's how to fix this?

I'm assuming you are using CentOS 5 here. I'm not sure why upstream
disabled this feature -- it was very useful to be able to use kickstart
with a DHCP IP address initially, but still be prompted for network
information during the installer portion later (as it did in RHEL4).

See:

https://bugzilla.redhat.com/show_bug.cgi?id=401531

In addition, I have an RFE in with Upstream to re-add this feature and
I believe it's slated for inclusion in 5.2 with the --bootproto=query
option.

The attachment there however:

https://bugzilla.redhat.com/attachment.cgi?id=291881

patches Anaconda to not skip the network step during installation.
I've been using this successfully here to "do what I need" while
waiting for the official fix.

You can include this in an updates.img file and have it loaded
automatically on installs.

Ray
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-22-2008, 03:18 PM
"Plant, Dean"
 
Default Kickstart network settings problem

James Pearson wrote:
> Plant, Dean wrote:
>> James Pearson wrote:
>>
>>> Plant, Dean wrote:
>>>
>>>> I would like one of my kickstart scripts to prompt for disk and
>>>> networking only. Commenting out the disk and network settings makes
>>>> the installer prompt for disk settings but not for network
>>>> settings, they default to DHCP. Any idea's how to fix this?
>>>
>>> I think you need to have the network settings defined - something
>>> like:
>>>
>>> network --bootproto static
>>>
>>> If you don't give it an IP address (with the --ip option), then it
>>> will prompt for it. This is what I do for NFS installs - as my
>>> netmask, gateway and nameserver addresses are static, I also give
>>> these on the network line.
>>>
>>
>>
>> Does not work, still defaults to DHCP with no prompt. Also if it
>> makes any difference im using v5.1.
>>
>> I have tried with the 2 network lines shown below in the kickstart
>> file, with and without interactive variable. Still no network
>> configuration screen. :-(
>
> Hmmm, works OK for me with CentOS 4.X - however, I used a hacked
> version of anaconda - one of my hacks is to set 'netDev.isDynamic' to
> 0 in loader2/loader.c i.e. make static IP the default ... however, I
> thought this was for non-kickstart installs only ... but may be it
> isn't.
>

Looks like it's a CentOS 5 feature/bug as I have just tested every
incarnation of the network line and they all get ignored unless I put in
the complete line as per Marc-Andre's post. This DID work in CentOS 4 as
long as the interactive line was specified.

Dean
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-22-2008, 03:22 PM
"Plant, Dean"
 
Default Kickstart network settings problem

Ray Van Dolson wrote:
> On Tue, Apr 22, 2008 at 12:47:39PM +0100, Plant, Dean wrote:
>> I would like one of my kickstart scripts to prompt for disk and
>> networking only. Commenting out the disk and network settings makes
>> the installer prompt for disk settings but not for network settings,
>> they default to DHCP. Any idea's how to fix this?
>
> I'm assuming you are using CentOS 5 here. I'm not sure why upstream
> disabled this feature -- it was very useful to be able to use
> kickstart with a DHCP IP address initially, but still be prompted for
> network information during the installer portion later (as it did in
> RHEL4).
>
> See:
>
> https://bugzilla.redhat.com/show_bug.cgi?id=401531
>
> In addition, I have an RFE in with Upstream to re-add this feature and
> I believe it's slated for inclusion in 5.2 with the --bootproto=query
> option.
>
> The attachment there however:
>
> https://bugzilla.redhat.com/attachment.cgi?id=291881
>
> patches Anaconda to not skip the network step during installation.
> I've been using this successfully here to "do what I need" while
> waiting for the official fix.
>
> You can include this in an updates.img file and have it loaded
> automatically on installs.
>
> Ray

Ahhhhh. Im not going daft then. Ill give the patches a go.

Thanks everyone for your replies.

Dean.
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 
Old 04-22-2008, 03:43 PM
Kai Schaetzl
 
Default Kickstart network settings problem

Dean Plant wrote on Tue, 22 Apr 2008 15:28:34 +0100:

> #network --bootproto=static --device=eth0 --gateway=192.168.10.1
> --nameserver=192.168.10.1 --netmask=255.255.255.0 --onboot=on
> network --bootproto=static

are the first two lines a line that you tried and commented out and got
broken in mail? If yes, try with an IP number, just to see if that works
as expected.

Kai

--
Kai Schätzl, Berlin, Germany
Get your web at Conactive Internet Services: http://www.conactive.com



_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
 

Thread Tools




All times are GMT. The time now is 07:18 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org