Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

providing a static IP/Netmas/Gateway + location of a preseed file at boot prompt.

997 views
Skip to first unread message

Mihamina Rakotomandimby

unread,
Mar 17, 2014, 3:50:02 AM3/17/14
to
Hi guys,

I would like to install my Debian machines with the Pressed D-I feature.

At this moment, I dont have a decent DHCP/BootP server yet, and waiting
for this to be achieved, I want to manually provide the IP address at
the boot prompt.

I already use it on others distributions install, but I miss the right
syntax on Debian.

What I want is to issue something similar to

[...] ip=xxxxx netmask=yyyy gateway=zzzzz
preseed/url=http://host/preseed.cfg


My guess, reading the documentation is I cant directly put some preseed
parameters in the boot parameters.
What I want would be:

[...] netcfg/get_ipaddress=92.168.1.42 \
netcfg/get_netmask=255.255.255.0 \
netcfg/get_gateway=192.168.1.1 \
preseed/url=http://host/preseed.cfg


Am I right?


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/5326A8C3...@rktmb.org

Sandeep Raman

unread,
Mar 17, 2014, 4:40:03 AM3/17/14
to
On Mon, Mar 17, 2014 at 1:18 PM, Mihamina Rakotomandimby <mihamina.ra...@rktmb.org> wrote:
Hi guys,

I would like to install my Debian machines with the Pressed D-I feature.

At this moment, I dont have a decent DHCP/BootP server yet, and waiting for this to be achieved, I want to manually provide the IP address at the boot prompt.

I already use it on others distributions install, but I miss the right syntax on Debian.

What I want is to issue something similar to

[...] ip=xxxxx netmask=yyyy gateway=zzzzz preseed/url=http://host/preseed.cfg


My guess, reading the documentation is I cant directly put some preseed parameters in the boot parameters.
What I want would be:

[...] netcfg/get_ipaddress=92.168.1.42 \
      netcfg/get_netmask=255.255.255.0 \
      netcfg/get_gateway=192.168.1.1 \
      preseed/url=http://host/preseed.cfg
 
Adding the below section in your preseed.cfg should work, hth.
 
# Static network configuration.
#d-i netcfg/get_nameservers string 192.168.124.1
#d-i netcfg/get_ipaddress string 192.168.1.6
#d-i netcfg/get_netmask string 255.255.255.0
#d-i netcfg/get_gateway string 192.168.124.1
#d-i netcfg/confirm_static boolean true

Am I right?
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/5326A8C3...@rktmb.org

Mihamina Rakotomandimby

unread,
Mar 17, 2014, 4:50:01 AM3/17/14
to
On 03/17/2014 11:39 AM, Sandeep Raman wrote:
> # Static network configuration.
> #d-i netcfg/get_nameservers string 192.168.124.1
> #d-i netcfg/get_ipaddress string 192.168.1.6
> #d-i netcfg/get_netmask string 255.255.255.0
> #d-i netcfg/get_gateway string 192.168.124.1
> #d-i netcfg/confirm_static boolean true

Yes, but how do I setup the network from the boot prompt?


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/5326B579...@rktmb.org

Sandeep Raman

unread,
Mar 17, 2014, 5:00:02 AM3/17/14
to
On Mon, Mar 17, 2014 at 2:12 PM, Mihamina Rakotomandimby <mihamina.ra...@rktmb.org> wrote:
On 03/17/2014 11:39 AM, Sandeep Raman wrote:
# Static network configuration.
#d-i netcfg/get_nameservers string 192.168.124.1
#d-i netcfg/get_ipaddress string 192.168.1.6
#d-i netcfg/get_netmask string 255.255.255.0
#d-i netcfg/get_gateway string 192.168.124.1
#d-i netcfg/confirm_static boolean true

Yes, but how do I setup the network from the boot prompt?

Not sure though. Buw when it can be preseeded what is the purpose or intent of having it to set from boot prompt?
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/5326B579...@rktmb.org

Andrew M.A. Cater

unread,
Mar 17, 2014, 5:10:02 AM3/17/14
to
On Mon, Mar 17, 2014 at 10:48:19AM +0300, Mihamina Rakotomandimby wrote:
> Hi guys,
>
> I would like to install my Debian machines with the Pressed D-I feature.
>
> At this moment, I dont have a decent DHCP/BootP server yet, and
> waiting for this to be achieved, I want to manually provide the IP
> address at the boot prompt.
>

Use the expert option in the installer.

The installer asks you how to set up your network.

It also prompts for the location of a preseed file.

Those two prompts between them should give you enough to go forward.

Hope this helps, with all good wishes,

AndyC

amac...@debian.org


> I already use it on others distributions install, but I miss the
> right syntax on Debian.
>
> What I want is to issue something similar to
>
> [...] ip=xxxxx netmask=yyyy gateway=zzzzz
> preseed/url=http://host/preseed.cfg
>
>
> My guess, reading the documentation is I cant directly put some
> preseed parameters in the boot parameters.
> What I want would be:
>
> [...] netcfg/get_ipaddress=92.168.1.42 \
> netcfg/get_netmask=255.255.255.0 \
> netcfg/get_gateway=192.168.1.1 \
> preseed/url=http://host/preseed.cfg
>
>
> Am I right?
>
>
> --
> To UNSUBSCRIBE, email to debian-us...@lists.debian.org with a
> subject of "unsubscribe". Trouble? Contact
> listm...@lists.debian.org
> Archive: https://lists.debian.org/5326A8C3...@rktmb.org


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/20140317090...@galactic.demon.co.uk

Scott Ferguson

unread,
Mar 17, 2014, 5:50:02 AM3/17/14
to
On 17/03/14 18:48, Mihamina Rakotomandimby wrote:
> Hi guys,
>
> I would like to install my Debian machines with the Pressed D-I feature.
>
> At this moment, I dont have a decent DHCP/BootP server yet, and waiting
> for this to be achieved, I want to manually provide the IP address at
> the boot prompt.
>
> I already use it on others distributions install, but I miss the right
> syntax on Debian.
>
> What I want is to issue something similar to
>
> [...] ip=xxxxx netmask=yyyy gateway=zzzzz
> preseed/url=http://host/preseed.cfg
>
>
> My guess, reading the documentation is I cant directly put some preseed
> parameters in the boot parameters.
> What I want would be:
>
> [...] netcfg/get_ipaddress=92.168.1.42 \
> netcfg/get_netmask=255.255.255.0 \
> netcfg/get_gateway=192.168.1.1 \
> preseed/url=http://host/preseed.cfg
>
>
> Am I right?
>
>


Sort of, note "auto, confirm_static, and disable_dhcp" (the disable dhcp
may not be needed). If the default keymap works use the skip option I've
suggested - otherwise replace it with the one you use. Domain is optional.

Note also that the backslash is not needed.

Essentially you need to supply all the answers to question up to and
including network configuration - then your preseed file will supply the
rest.

auto=true priority=critical locale=$YourCountry.UTF-8 keymap=skip-config
netcfg/disable_dhcp=true netcfg/confirm_static=true
netcfg/get_ipaddress=192.168.0.56 netcfg/get_netmask=255.255.255.0
netcfg/get_gateway=192.168.0.6 netcfg/get_nameservers=8.8.8.8 8.8.8.4
modules=usb-storage hostname=preseed domain=dev auto
url=192.168.0.2/preseed.cfg


Kind regards


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/5326C439...@gmail.com

Mihamina Rakotomandimby

unread,
Mar 17, 2014, 7:20:02 AM3/17/14
to
On 03/17/2014 11:55 AM, Sandeep Raman wrote:
> Not sure though. Buw when it can be preseeded what is the purpose or
> intent of having it to set from boot prompt?


Because when you boot from a bootable install media and you have no DHCP
nor BootP server and you want to pressed from a network located preseed
file, you have to manually setup an IP address in order to download the
preseed file.


--
To UNSUBSCRIBE, email to debian-us...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org
Archive: https://lists.debian.org/5326D8FB...@rktmb.org
0 new messages