Debian preseed errors with DHCP and network parameters

2009-10-03 Thread Josep M.
Hello.

I have a preseed file, all runs ok, except install network manually,
always install DHCP, I have disabled DHCP and debconf is well
configured, I have four problems :


1 - For install network without enable dhcp I must write when boot:

netcfg/disable_dhcp=true preseed/url=ftp://192.168.x.x/preseed.cfg

2 - I must enter network info manually, all network info in preseed.cfg
is not used

3 - hostname present in preseed.cfg is not entered, I must change this
manually after first boot

4 - domain name present in preseed.cfg is not entered, I must change
this manually after first boot


All others parameters run ok, my preseed.cfg is appended to end..any
help for solve this will be appreciated.

Josep


debconf debconf/prioritystring critical
unknown debconf/prioritystring critical
d-i debconf/prioritystring critical
 Contents of the preconfiguration file (for lenny)
### Localization
# Locale sets language and country.
d-i debian-installer/locale string en_US.UTF8

# Keyboard selection.
#d-i console-tools/archs select at
d-i console-keymaps-at/keymap select es
# Example for a different keyboard architecture
#d-i console-keymaps-usb/keymap select mac-usb-us

### Network configuration
# netcfg will choose an interface that has link if possible. This makes it
# skip displaying a list if there is more than one interface.
#d-i netcfg/choose_interface select auto

# To pick a particular interface instead:
d-i netcfg/choose_interface select eth0

# If you have a slow dhcp server and the installer times out waiting for
# it, this might be useful.
#d-i netcfg/dhcp_timeout string 60

# If you prefer to configure the network manually, uncomment this line and
# the static network configuration below.
d-i netcfg/disable_dhcp true

# If you want the preconfiguration file to work on systems both with and
# without a dhcp server, uncomment these lines and the static network
# configuration below.
#d-i netcfg/dhcp_failed note
#d-i netcfg/dhcp_options select Configure network manually

# Static network configuration.
d-i netcfg/get_nameservers string 80.58.61.250 80.58.61.254
d-i netcfg/get_ipaddress string 192.168.1.81
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.1.1
d-i netcfg/confirm_static boolean true
d-i netcfg/get_ipaddress seen true
d-i netcfg/get_netmask seen true

d-i netcfg/get_nameservers seen true
d-i netcfg/get_gateway seen true

# Any hostname and domain names assigned from dhcp take precedence over
# values set here. However, setting the values still prevents the questions
# from being shown, even if values come from dhcp.
d-i netcfg/get_hostname seen true
d-i netcfg/get_domain seen true
d-i netcfg/get_hostname string debbeta81
d-i netcfg/get_domain string gamuzino.org

# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
# The wacky dhcp hostname that some ISPs use as a password of sorts.
#d-i netcfg/dhcp_hostname string radish

# If non-free firmware is needed for the network or other hardware, you can
# configure the installer to always try to load it, without prompting. Or
# change to false to disable asking.
#d-i hw-detect/load_firmware boolean true

### Network console
# Use the following settings if you wish to make use of the network-console
# component for remote installation over SSH. This only makes sense if you
# intend to perform the remainder of the installation manually.
#d-i anna/choose_modules string network-console
#d-i network-console/password password r00tme
#d-i network-console/password-again password r00tme

### Mirror settings
# If you select ftp, the mirror/country string does not need to be set.
#d-i mirror/protocol string http
d-i mirror/country string ES
d-i mirror/http/hostname string ftp.es.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string

# Suite to install.
#d-i mirror/suite string testing
# Suite to use for loading installer components (optional).
#d-i mirror/udeb/suite string testing

### Clock and time zone setup
# Controls whether or not the hardware clock is set to UTC.
d-i clock-setup/utc boolean true

# You may set this to any valid setting for $TZ; see the contents of
# /usr/share/zoneinfo/ for valid values.
d-i time/zone string Europe/Madrid

# Controls whether to use NTP to set the clock during the install
d-i clock-setup/ntp boolean true
# NTP server to use. The default is almost always fine here.
d-i clock-setup/ntp-server string 0.debian.pool.ntp.org

### Partitioning
# If the system has free space you can choose to only partition that space.
#d-i partman-auto/init_automatically_partition select biggest_free

# Alternatively, you can specify a disk to partition. The device name must
# be given in traditional non-devfs format.
# Note: A disk must be specified, unless the system has only one disk.
# For example, to use the first SCSI/SATA hard disk:
#d-i partman-auto/disk string /dev/sda
# In addition, you'll need to specify the method to use.
# 

Re: Debian preseed errors with DHCP and network parameters

2009-10-04 Thread Frank Lin PIAT
On Sat, 2009-10-03 at 23:51 +0200, Josep M. wrote:
> Hello.
> 
> I have a preseed file, all runs ok, except install network manually,
> always install DHCP, I have disabled DHCP and debconf is well
> configured, I have four problems :
> 
> 1 - For install network without enable dhcp I must write when boot:
> 
> netcfg/disable_dhcp=true preseed/url=ftp://192.168.x.x/preseed.cfg 
>  
> 2 - I must enter network info manually, all network info in preseed.cfg
> is not used

Chicken and egg problem... to fetch the preseed file, your system needs
an IP address (which can be obtained by DHCP, or manually specified on
the command line).

I suppose that in most case, the server are netboot'ed using DHCP, to
perform the installation, then the computer is configured to use static
IP address (using the preseed file???). Of course, the DHCP could be
have MAC<->IP address reservation.

BTW, If you go for DHCP you might want to have a look at the
"auto-install/enable=true" command line.

Regards,

Franklin


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: Debian preseed errors with DHCP and network parameters

2009-10-07 Thread Josep M.
Hello Frank.

I created a .sh that modify /etc/network/interfaces and /etc/hostname
and I solved with this, seems to me the most easy solution to the
problem.

Thanks fo the advice

Josep from Spain



El dom, 04-10-2009 a las 14:25 +0200, Frank Lin PIAT escribió:
> On Sat, 2009-10-03 at 23:51 +0200, Josep M. wrote:
> > Hello.
> > 
> > I have a preseed file, all runs ok, except install network manually,
> > always install DHCP, I have disabled DHCP and debconf is well
> > configured, I have four problems :
> > 
> > 1 - For install network without enable dhcp I must write when boot:
> > 
> > netcfg/disable_dhcp=true preseed/url=ftp://192.168.x.x/preseed.cfg 
> >  
> > 2 - I must enter network info manually, all network info in preseed.cfg
> > is not used
> 
> Chicken and egg problem... to fetch the preseed file, your system needs
> an IP address (which can be obtained by DHCP, or manually specified on
> the command line).
> 
> I suppose that in most case, the server are netboot'ed using DHCP, to
> perform the installation, then the computer is configured to use static
> IP address (using the preseed file???). Of course, the DHCP could be
> have MAC<->IP address reservation.
> 
> BTW, If you go for DHCP you might want to have a look at the
> "auto-install/enable=true" command line.
> 
> Regards,
> 
> Franklin
> 
> 


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org