Malformed IP address bei Installation von Debian 11.6 mit Presset

Einrichten des lokalen Netzes, Verbindung zu anderen Computern und Diensten.
Antworten
ahoiseemann
Beiträge: 3
Registriert: 23.12.2022 00:24:53

Malformed IP address bei Installation von Debian 11.6 mit Presset

Beitrag von ahoiseemann » 23.12.2022 00:29:15

Hallo,

ich versuche, Debian 11 mittels Preseed einzurichten.

Dabei stoße ich leider auf einen unschönen Fehler:

Bild
Bild


Das ist meine Konfiguration

Code: Alles auswählen

# This preseed file was rendered from the Foreman provisioning template "Preseed default".
# for s293.example.org running Debian 11 
# Organization: Default Organization
# Location: FRA1

# Locale
d-i debian-installer/locale string en_US
# country and keyboard settings are automatic. Keep them ...
# ... for wheezy and newer:
d-i keyboard-configuration/xkb-keymap seen true

# Static network configuration.
d-i preseed/early_command string /bin/killall.sh; /bin/netcfg
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/dhcp_failed note
d-i netcfg/dhcp_options select Configure network manually
d-i netcfg/disable_dhcp boolean true
d-i netcfg/get_ipaddress string 12.123.12.149
d-i netcfg/get_netmask string 255.255.255.224
d-i netcfg/get_nameservers string 208.67.222.222 208.67.220.220
d-i netcfg/get_gateway string 12.123.12.129
d-i netcfg/confirm_static boolean true

# Network configuration
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string s293.example.org
d-i netcfg/get_domain string example.org
d-i netcfg/wireless_wep string

d-i hw-detect/load_firmware boolean true


# Mirror settings
d-i mirror/country string manual
d-i mirror/http/hostname string ftp.debian.org:80
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
d-i mirror/codename string bullseye
d-i mirror/suite string bullseye
d-i mirror/udeb/suite string bullseye

# Time settings
d-i clock-setup/utc boolean true
d-i time/zone string UTC

# NTP
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string 0.debian.pool.ntp.org

# Set alignment for automatic partitioning
# Choices: cylinder, minimal, optimal
#d-i partman/alignment select cylinder



# Use the first detected hard disk
d-i partman/early_command string \
  INSTALL_DISK="$(list-devices disk | head -n1)"; \
  debconf-set partman-auto/disk "$INSTALL_DISK"; \
  debconf-set grub-installer/bootdev "$INSTALL_DISK"

### Partitioning
# The presently available methods are: "regular", "lvm" and "crypto"
d-i partman-auto/method string lvm

# If one of the disks that are going to be automatically partitioned
# contains an old LVM configuration, the user will normally receive a
# warning. This can be preseeded away...
d-i partman-lvm/device_remove_lvm boolean true
# The same applies to pre-existing software RAID array:
d-i partman-md/device_remove_md boolean true
# And the same goes for the confirmation to write the lvm partitions.
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true

# For LVM partitioning, you can select how much of the volume group to use
# for logical volumes.
d-i partman-auto-lvm/guided_size string max
d-i partman-auto-lvm/new_vg_name string vg00



# You can choose one of the three predefined partitioning recipes:
# - atomic: all files in one partition
# - home:   separate /home partition
# - multi:  separate /home, /var, and /tmp partitions (/usr was removed in jessie)
d-i partman-auto/choose_recipe select atomic


# If you just want to change the default filesystem to something
# else, you can do that without providing a full recipe.

# This makes partman automatically partition without confirmation, provided
# that you told it what to do using one of the methods above.
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true




# User settings
d-i passwd/root-password-crypted password $5$2CwBetOMHDO2Vc9b$J2qdiojE2bhaFqWjbTuH7D3sxdY6mguSFIqZ6hcR9AB
user-setup-udeb passwd/root-login boolean true
d-i passwd/make-user boolean false
user-setup-udeb passwd/make-user boolean false





# Install minimal task set (see tasksel --task-packages minimal)
tasksel tasksel/first multiselect minimal, ssh-server, openssh-server

# Install some base packages
d-i pkgsel/include string lsb-release wget
d-i pkgsel/update-policy select unattended-upgrades
d-i pkgsel/upgrade select none

popularity-contest popularity-contest/participate boolean false

# Boot loader settings
#grub-pc grub-pc/hidden_timeout boolean false
#grub-pc grub-pc/timeout string 10
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i finish-install/reboot_in_progress note

d-i preseed/late_command string wget -Y off http://foreman.example.org/unattended/finish -O /target/tmp/finish.sh && in-target chmod +x /tmp/finish.sh && in-target /tmp/finish.sh

Das Netzwerk ist 12.123.12.128/27, dabei ist das Gateway 12.123.12.129 .

Ich bin mittlerweile schon ziemlich verzweifelt und freue mich über jede Hilfe :-)

mat6937
Beiträge: 2953
Registriert: 09.12.2014 10:44:00

Re: Malformed IP address bei Installation von Debian 11.6 mit Presset

Beitrag von mat6937 » 23.12.2022 07:58:46

ahoiseemann hat geschrieben: ↑ zum Beitrag ↑
23.12.2022 00:29:15
Das Netzwerk ist 12.123.12.128/27, dabei ist das Gateway 12.123.12.129 .

Ich bin mittlerweile schon ziemlich verzweifelt und freue mich über jede Hilfe :-)
Wie bist Du zu diesem Subnetz (mit 30 IPv4-Adressen) von AT&T gekommen? Wer ist dein Internet-Provider und wie ist das Gerät auf dem Du z. Zt. Debian 11.6 installieren willst, mit dem Internet verbunden? Die IPv4-Adresse des gateway (12.123.12.129) ist z. Zt. im Internet nicht erreichbar.

ahoiseemann
Beiträge: 3
Registriert: 23.12.2022 00:24:53

Re: Malformed IP address bei Installation von Debian 11.6 mit Presset

Beitrag von ahoiseemann » 23.12.2022 09:04:23

Moin,

die IP-Adressen sind anonymisiert, weil ich vermeiden möchte, dass irgendwelche Bots durch die Foren gehen und die Adressen sammeln, um danach Schindluder zu treiben. Aber Du hast recht: Das hätte ich 1. besser machen müssen und 2. auch darstellen müssen, damit da Klarheit herrscht. Es war spät ;-)

Grüße :-)

fischig
Beiträge: 3639
Registriert: 24.12.2019 12:25:08
Lizenz eigener Beiträge: MIT Lizenz

Re: Malformed IP address bei Installation von Debian 11.6 mit Presset

Beitrag von fischig » 23.12.2022 09:16:07

die IP-Adressen sind anonymisiert
Vielleicht nicht so geschickt, wenn's um unzureichend (malformed) formatierte IP-Adressen geht? Du bist aber wenigstens allgemein über den Aufbau und insbesondere Internetzulässigkeit(!) von IP-Adressen informiert?

ahoiseemann
Beiträge: 3
Registriert: 23.12.2022 00:24:53

Re: Malformed IP address bei Installation von Debian 11.6 mit Presset

Beitrag von ahoiseemann » 23.12.2022 09:26:21

Hi,

grundsätzlich bin ich das.

Gut, ich erkenne an, dass eine Lösungsfindung im "Halbwahren" keine gute Idee ist.

Anbei das generierte Preseed-File:

Code: Alles auswählen

# This preseed file was rendered from the Foreman provisioning template "Preseed default".
# for myron-sulzer.ahoiroman.de running Debian 11 
# Organization: Default Organization
# Location: FRA1

# Locale
d-i debian-installer/locale string en_US
# country and keyboard settings are automatic. Keep them ...
# ... for wheezy and newer:
d-i keyboard-configuration/xkb-keymap seen true

# Static network configuration.
d-i preseed/early_command string /bin/killall.sh; /bin/netcfg
d-i netcfg/disable_autoconfig boolean true
d-i netcfg/dhcp_failed note
d-i netcfg/dhcp_options select Configure network manually
d-i netcfg/disable_dhcp boolean true
d-i netcfg/get_ipaddress string 45.133.11.149
d-i netcfg/get_netmask string 255.255.255.224
d-i netcfg/get_nameservers string 208.67.222.222 208.67.220.220
d-i netcfg/get_gateway string 45.133.11.129
d-i netcfg/confirm_static boolean true

# Network configuration
d-i netcfg/choose_interface select auto
d-i netcfg/get_hostname string myron-sulzer.ahoiroman.de
d-i netcfg/get_domain string ahoiroman.de
d-i netcfg/wireless_wep string

d-i hw-detect/load_firmware boolean true


# Mirror settings
d-i mirror/country string manual
d-i mirror/http/hostname string ftp.debian.org:80
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
d-i mirror/codename string bullseye
d-i mirror/suite string bullseye
d-i mirror/udeb/suite string bullseye

# Time settings
d-i clock-setup/utc boolean true
d-i time/zone string UTC

# NTP
d-i clock-setup/ntp boolean true
d-i clock-setup/ntp-server string 0.debian.pool.ntp.org

# Set alignment for automatic partitioning
# Choices: cylinder, minimal, optimal
#d-i partman/alignment select cylinder



# Use the first detected hard disk
d-i partman/early_command string \
  INSTALL_DISK="$(list-devices disk | head -n1)"; \
  debconf-set partman-auto/disk "$INSTALL_DISK"; \
  debconf-set grub-installer/bootdev "$INSTALL_DISK"

### Partitioning
# The presently available methods are: "regular", "lvm" and "crypto"
d-i partman-auto/method string lvm

# If one of the disks that are going to be automatically partitioned
# contains an old LVM configuration, the user will normally receive a
# warning. This can be preseeded away...
d-i partman-lvm/device_remove_lvm boolean true
# The same applies to pre-existing software RAID array:
d-i partman-md/device_remove_md boolean true
# And the same goes for the confirmation to write the lvm partitions.
d-i partman-lvm/confirm boolean true
d-i partman-lvm/confirm_nooverwrite boolean true

# For LVM partitioning, you can select how much of the volume group to use
# for logical volumes.
d-i partman-auto-lvm/guided_size string max
d-i partman-auto-lvm/new_vg_name string vg00



# You can choose one of the three predefined partitioning recipes:
# - atomic: all files in one partition
# - home:   separate /home partition
# - multi:  separate /home, /var, and /tmp partitions (/usr was removed in jessie)
d-i partman-auto/choose_recipe select atomic


# If you just want to change the default filesystem to something
# else, you can do that without providing a full recipe.

# This makes partman automatically partition without confirmation, provided
# that you told it what to do using one of the methods above.
d-i partman/confirm_write_new_label boolean true
d-i partman/choose_partition select finish
d-i partman/confirm boolean true
d-i partman/confirm_nooverwrite boolean true




# User settings
d-i passwd/root-password-crypted password $5$5mWRW2TafDoTe4Yr$puc0hHw0LJUIOoTSfM/In/Ie1lTzk3yELU5PVCXE6W6
user-setup-udeb passwd/root-login boolean true
d-i passwd/make-user boolean false
user-setup-udeb passwd/make-user boolean false





# Install minimal task set (see tasksel --task-packages minimal)
tasksel tasksel/first multiselect minimal, ssh-server, openssh-server

# Install some base packages
d-i pkgsel/include string lsb-release wget
d-i pkgsel/update-policy select unattended-upgrades
d-i pkgsel/upgrade select none

popularity-contest popularity-contest/participate boolean false

# Boot loader settings
#grub-pc grub-pc/hidden_timeout boolean false
#grub-pc grub-pc/timeout string 10
d-i grub-installer/only_debian boolean true
d-i grub-installer/with_other_os boolean true
d-i finish-install/reboot_in_progress note

d-i preseed/late_command string wget -Y off http://foreman.buildingneuland.com/unattended/finish -O /target/tmp/finish.sh && in-target chmod +x /tmp/finish.sh && in-target /tmp/finish.sh


fischig
Beiträge: 3639
Registriert: 24.12.2019 12:25:08
Lizenz eigener Beiträge: MIT Lizenz

Re: Malformed IP address bei Installation von Debian 11.6 mit Presset

Beitrag von fischig » 23.12.2022 09:41:01

Gtu! ... und ich habe keine Ahnung, was du da treibst :wink: , vermutlich ist das auch nicht meine Kragenweite, verabschiede mich dann mal.

Benutzeravatar
oln
Beiträge: 487
Registriert: 05.01.2021 09:41:24

Re: Malformed IP address bei Installation von Debian 11.6 mit Presset

Beitrag von oln » 23.12.2022 10:57:44

Moin,
ich meine mal gelesen zu haben, dass es zu Problemen bei angegebener Netmask kommt. Lass das mal weg. Dann berechnet das Presset selbst.
Gruß Ole
AbuseIPDB

Antworten