While using a debian preseed how to assign hostname manually? [closed]preseed.cfg ignoring hostname settingntldr.mod missing from GRUB2How do I install Debian onto the same physical hard disk that the installer files are on?Debian - disabling use mirror on preseed.cfgDebian - Install required CD ROMSetup Debian Mirrors after InstallationDebian on Virtual Mips Malta platformdebian-installer: unloaded ahci kernel module when using preseedLooking for answers related to custom images and installersDebian-installer using PXE with preseeded config and two network interfacesPXE boot debian-installer preseed.cfg - how to get to present only certain questions (eg. hostname)
Typesetting a double Over Dot on top of a symbol
aging parents with no investments
What is the command to reset a PC without deleting any files
If a centaur druid Wild Shapes into a Giant Elk, do their Charge features stack?
Crop image to path created in TikZ?
How could a lack of term limits lead to a "dictatorship?"
Why do UK politicians seemingly ignore opinion polls on Brexit?
How to manage monthly salary
Why did the Germans forbid the possession of pet pigeons in Rostov-on-Don in 1941?
Add an angle to a sphere
Re-submission of rejected manuscript without informing co-authors
I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine
Does the average primeness of natural numbers tend to zero?
How to make payment on the internet without leaving a money trail?
Email Account under attack (really) - anything I can do?
Are objects structures and/or vice versa?
Information to fellow intern about hiring?
Manga about a female worker who got dragged into another world together with this high school girl and she was just told she's not needed anymore
Could a US political party gain complete control over the government by removing checks & balances?
Where else does the Shulchan Aruch quote an authority by name?
Landlord wants to switch my lease to a "Land contract" to "get back at the city"
What happens when a metallic dragon and a chromatic dragon mate?
Denied boarding due to overcrowding, Sparpreis ticket. What are my rights?
New order #4: World
While using a debian preseed how to assign hostname manually? [closed]
preseed.cfg ignoring hostname settingntldr.mod missing from GRUB2How do I install Debian onto the same physical hard disk that the installer files are on?Debian - disabling use mirror on preseed.cfgDebian - Install required CD ROMSetup Debian Mirrors after InstallationDebian on Virtual Mips Malta platformdebian-installer: unloaded ahci kernel module when using preseedLooking for answers related to custom images and installersDebian-installer using PXE with preseeded config and two network interfacesPXE boot debian-installer preseed.cfg - how to get to present only certain questions (eg. hostname)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;
I made a preseed.cfg for a Debian 9.7 netinstall and add it to the initrd on the ISO. There a two things I want to assign manually during installation, the IP address and the hostname. The IP address is not a problem. But the hostname doesn't work. I only get the hostname by dhcp or by the string in the preseed.cfg.
How can I assign the hostname manually during the installation?
#### Contents of the preconfiguration file (for stretch)
d-i debconf/priority string critical
d-i debian-installer/locale string en_US
d-i debian-installer/language string en
d-i debian-installer/country string DE
d-i debian-installer/locale string en_US.UTF-8
# Keyboard selection.
d-i keyboard-configuration/xkb-keymap select de
### 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 eth1
# If you prefer to configure the network manually, uncomment this line and
# the static network configuration below.
d-i netcfg/disable_autoconfig boolean 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.
#
# IPv4 example
#d-i netcfg/get_ipaddress string 192.168.1.18
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.1.254
d-i netcfg/get_nameservers string 10.5.1.1
d-i netcfg/confirm_static boolean 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 string unassigned-hostname
#d-i netcfg/get_domain string mydomain.org
# If you want to force a hostname, regardless of what either the DHCP
# server returns or what the reverse DNS entry for the IP is, uncomment
# and adjust the following line.
#d-i netcfg/hostname string
# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
# 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
### Mirror settings
# If you select ftp, the mirror/country string does not need to be set.
#d-i mirror/protocol string ftp
d-i mirror/country string manual
d-i mirror/http/hostname string http.us.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
# Suite to install.
#d-i mirror/suite string unstable
# Suite to use for loading installer components (optional).
#d-i mirror/udeb/suite string unstable
### Account setup
# Alternatively, to skip creation of a normal user account.
d-i passwd/make-user boolean false
### 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/Berlin
# 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 time.mpicc.de
### Base system installation
### Apt setup
# You can choose to install non-free and contrib software.
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
### Package selection
tasksel tasksel/first multiselect standard, ssh-server
### Boot loader installation
# This is fairly safe to set, it makes grub install automatically to the MBR
# if no other operating system is detected on the machine.
d-i grub-installer/only_debian boolean true
# This one makes grub-installer install to the MBR if it also finds some other
# OS, which is less safe as it might not be able to boot that other OS.
d-i grub-installer/with_other_os boolean true
# Due notably to potential USB sticks, the location of the MBR can not be
# determined safely in general, so this needs to be specified:
d-i grub-installer/bootdev string /dev/sda
### Finishing up the installation
# Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note
#### Advanced options
d-i preseed/late_command string apt-install sudo
debian system-installation hostname debian-installer preseed
closed as off-topic by GAD3R, Jeff Schaller♦ Mar 29 at 14:41
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller
add a comment |
I made a preseed.cfg for a Debian 9.7 netinstall and add it to the initrd on the ISO. There a two things I want to assign manually during installation, the IP address and the hostname. The IP address is not a problem. But the hostname doesn't work. I only get the hostname by dhcp or by the string in the preseed.cfg.
How can I assign the hostname manually during the installation?
#### Contents of the preconfiguration file (for stretch)
d-i debconf/priority string critical
d-i debian-installer/locale string en_US
d-i debian-installer/language string en
d-i debian-installer/country string DE
d-i debian-installer/locale string en_US.UTF-8
# Keyboard selection.
d-i keyboard-configuration/xkb-keymap select de
### 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 eth1
# If you prefer to configure the network manually, uncomment this line and
# the static network configuration below.
d-i netcfg/disable_autoconfig boolean 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.
#
# IPv4 example
#d-i netcfg/get_ipaddress string 192.168.1.18
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.1.254
d-i netcfg/get_nameservers string 10.5.1.1
d-i netcfg/confirm_static boolean 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 string unassigned-hostname
#d-i netcfg/get_domain string mydomain.org
# If you want to force a hostname, regardless of what either the DHCP
# server returns or what the reverse DNS entry for the IP is, uncomment
# and adjust the following line.
#d-i netcfg/hostname string
# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
# 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
### Mirror settings
# If you select ftp, the mirror/country string does not need to be set.
#d-i mirror/protocol string ftp
d-i mirror/country string manual
d-i mirror/http/hostname string http.us.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
# Suite to install.
#d-i mirror/suite string unstable
# Suite to use for loading installer components (optional).
#d-i mirror/udeb/suite string unstable
### Account setup
# Alternatively, to skip creation of a normal user account.
d-i passwd/make-user boolean false
### 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/Berlin
# 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 time.mpicc.de
### Base system installation
### Apt setup
# You can choose to install non-free and contrib software.
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
### Package selection
tasksel tasksel/first multiselect standard, ssh-server
### Boot loader installation
# This is fairly safe to set, it makes grub install automatically to the MBR
# if no other operating system is detected on the machine.
d-i grub-installer/only_debian boolean true
# This one makes grub-installer install to the MBR if it also finds some other
# OS, which is less safe as it might not be able to boot that other OS.
d-i grub-installer/with_other_os boolean true
# Due notably to potential USB sticks, the location of the MBR can not be
# determined safely in general, so this needs to be specified:
d-i grub-installer/bootdev string /dev/sda
### Finishing up the installation
# Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note
#### Advanced options
d-i preseed/late_command string apt-install sudo
debian system-installation hostname debian-installer preseed
closed as off-topic by GAD3R, Jeff Schaller♦ Mar 29 at 14:41
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller
Possible duplicate of preseed.cfg ignoring hostname setting
– GAD3R
Mar 28 at 14:23
1
the leftover from a testd-i debconf/priority string critical
made problems. Now it works!
– YungScholar
Mar 28 at 20:37
add a comment |
I made a preseed.cfg for a Debian 9.7 netinstall and add it to the initrd on the ISO. There a two things I want to assign manually during installation, the IP address and the hostname. The IP address is not a problem. But the hostname doesn't work. I only get the hostname by dhcp or by the string in the preseed.cfg.
How can I assign the hostname manually during the installation?
#### Contents of the preconfiguration file (for stretch)
d-i debconf/priority string critical
d-i debian-installer/locale string en_US
d-i debian-installer/language string en
d-i debian-installer/country string DE
d-i debian-installer/locale string en_US.UTF-8
# Keyboard selection.
d-i keyboard-configuration/xkb-keymap select de
### 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 eth1
# If you prefer to configure the network manually, uncomment this line and
# the static network configuration below.
d-i netcfg/disable_autoconfig boolean 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.
#
# IPv4 example
#d-i netcfg/get_ipaddress string 192.168.1.18
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.1.254
d-i netcfg/get_nameservers string 10.5.1.1
d-i netcfg/confirm_static boolean 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 string unassigned-hostname
#d-i netcfg/get_domain string mydomain.org
# If you want to force a hostname, regardless of what either the DHCP
# server returns or what the reverse DNS entry for the IP is, uncomment
# and adjust the following line.
#d-i netcfg/hostname string
# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
# 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
### Mirror settings
# If you select ftp, the mirror/country string does not need to be set.
#d-i mirror/protocol string ftp
d-i mirror/country string manual
d-i mirror/http/hostname string http.us.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
# Suite to install.
#d-i mirror/suite string unstable
# Suite to use for loading installer components (optional).
#d-i mirror/udeb/suite string unstable
### Account setup
# Alternatively, to skip creation of a normal user account.
d-i passwd/make-user boolean false
### 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/Berlin
# 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 time.mpicc.de
### Base system installation
### Apt setup
# You can choose to install non-free and contrib software.
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
### Package selection
tasksel tasksel/first multiselect standard, ssh-server
### Boot loader installation
# This is fairly safe to set, it makes grub install automatically to the MBR
# if no other operating system is detected on the machine.
d-i grub-installer/only_debian boolean true
# This one makes grub-installer install to the MBR if it also finds some other
# OS, which is less safe as it might not be able to boot that other OS.
d-i grub-installer/with_other_os boolean true
# Due notably to potential USB sticks, the location of the MBR can not be
# determined safely in general, so this needs to be specified:
d-i grub-installer/bootdev string /dev/sda
### Finishing up the installation
# Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note
#### Advanced options
d-i preseed/late_command string apt-install sudo
debian system-installation hostname debian-installer preseed
I made a preseed.cfg for a Debian 9.7 netinstall and add it to the initrd on the ISO. There a two things I want to assign manually during installation, the IP address and the hostname. The IP address is not a problem. But the hostname doesn't work. I only get the hostname by dhcp or by the string in the preseed.cfg.
How can I assign the hostname manually during the installation?
#### Contents of the preconfiguration file (for stretch)
d-i debconf/priority string critical
d-i debian-installer/locale string en_US
d-i debian-installer/language string en
d-i debian-installer/country string DE
d-i debian-installer/locale string en_US.UTF-8
# Keyboard selection.
d-i keyboard-configuration/xkb-keymap select de
### 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 eth1
# If you prefer to configure the network manually, uncomment this line and
# the static network configuration below.
d-i netcfg/disable_autoconfig boolean 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.
#
# IPv4 example
#d-i netcfg/get_ipaddress string 192.168.1.18
d-i netcfg/get_netmask string 255.255.255.0
d-i netcfg/get_gateway string 192.168.1.254
d-i netcfg/get_nameservers string 10.5.1.1
d-i netcfg/confirm_static boolean 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 string unassigned-hostname
#d-i netcfg/get_domain string mydomain.org
# If you want to force a hostname, regardless of what either the DHCP
# server returns or what the reverse DNS entry for the IP is, uncomment
# and adjust the following line.
#d-i netcfg/hostname string
# Disable that annoying WEP key dialog.
d-i netcfg/wireless_wep string
# 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
### Mirror settings
# If you select ftp, the mirror/country string does not need to be set.
#d-i mirror/protocol string ftp
d-i mirror/country string manual
d-i mirror/http/hostname string http.us.debian.org
d-i mirror/http/directory string /debian
d-i mirror/http/proxy string
# Suite to install.
#d-i mirror/suite string unstable
# Suite to use for loading installer components (optional).
#d-i mirror/udeb/suite string unstable
### Account setup
# Alternatively, to skip creation of a normal user account.
d-i passwd/make-user boolean false
### 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/Berlin
# 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 time.mpicc.de
### Base system installation
### Apt setup
# You can choose to install non-free and contrib software.
d-i apt-setup/non-free boolean true
d-i apt-setup/contrib boolean true
### Package selection
tasksel tasksel/first multiselect standard, ssh-server
### Boot loader installation
# This is fairly safe to set, it makes grub install automatically to the MBR
# if no other operating system is detected on the machine.
d-i grub-installer/only_debian boolean true
# This one makes grub-installer install to the MBR if it also finds some other
# OS, which is less safe as it might not be able to boot that other OS.
d-i grub-installer/with_other_os boolean true
# Due notably to potential USB sticks, the location of the MBR can not be
# determined safely in general, so this needs to be specified:
d-i grub-installer/bootdev string /dev/sda
### Finishing up the installation
# Avoid that last message about the install being complete.
d-i finish-install/reboot_in_progress note
#### Advanced options
d-i preseed/late_command string apt-install sudo
debian system-installation hostname debian-installer preseed
debian system-installation hostname debian-installer preseed
edited Mar 28 at 18:42
YungScholar
asked Mar 28 at 13:15
YungScholarYungScholar
62
62
closed as off-topic by GAD3R, Jeff Schaller♦ Mar 29 at 14:41
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller
closed as off-topic by GAD3R, Jeff Schaller♦ Mar 29 at 14:41
This question appears to be off-topic. The users who voted to close gave this specific reason:
- "Questions describing a problem that can't be reproduced and seemingly went away on its own (or went away when a typo was fixed) are off-topic as they are unlikely to help future readers." – Jeff Schaller
Possible duplicate of preseed.cfg ignoring hostname setting
– GAD3R
Mar 28 at 14:23
1
the leftover from a testd-i debconf/priority string critical
made problems. Now it works!
– YungScholar
Mar 28 at 20:37
add a comment |
Possible duplicate of preseed.cfg ignoring hostname setting
– GAD3R
Mar 28 at 14:23
1
the leftover from a testd-i debconf/priority string critical
made problems. Now it works!
– YungScholar
Mar 28 at 20:37
Possible duplicate of preseed.cfg ignoring hostname setting
– GAD3R
Mar 28 at 14:23
Possible duplicate of preseed.cfg ignoring hostname setting
– GAD3R
Mar 28 at 14:23
1
1
the leftover from a test
d-i debconf/priority string critical
made problems. Now it works!– YungScholar
Mar 28 at 20:37
the leftover from a test
d-i debconf/priority string critical
made problems. Now it works!– YungScholar
Mar 28 at 20:37
add a comment |
0
active
oldest
votes
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
-debian, debian-installer, hostname, preseed, system-installation
Possible duplicate of preseed.cfg ignoring hostname setting
– GAD3R
Mar 28 at 14:23
1
the leftover from a test
d-i debconf/priority string critical
made problems. Now it works!– YungScholar
Mar 28 at 20:37