我正在尝试从 PXE 设置无人值守的 Ubuntu Server 14.04 安装。
我最初尝试使用 Kickstart。这一切正常,只是分区管理器需要用户确认,因此不是完全无人值守的安装(即我需要确认在安装过程中重新分区磁盘是可以的)。
一位同事建议,为了进行细粒度控制,我最好使用 Preseed。不幸的是,preseed 安装目前卡在了choose_interface
部分。
中的引导说明/tftpboot/pxelinux.cfg/default
:
KERNEL images/ubuntu_server_1404/install/netboot/ubuntu-installer/amd64/linux
append auto=true vga=normal initrd=images/ubuntu_server_1404/install/netboot/ubuntu-installer/amd64/initrd.gz url=http://myNAS/pxe/preseed.cfg quiet --
Run Code Online (Sandbox Code Playgroud)
能够执行前几行(例如语言/键盘选择)
d-i debian-installer/locale string en_US
d-i console-setup/ask_detect boolean false
d-i console-setup/layoutcode string us
d-i keyboard-configuration/layoutcode string us
Run Code Online (Sandbox Code Playgroud)
但choose_interface
不会自动工作:
我已经尝试过指定网络接口:
d-i netcfg/choose_interface select em1
Run Code Online (Sandbox Code Playgroud)
和自动选择:
d-i netcfg/choose_interface select auto
Run Code Online (Sandbox Code Playgroud)
这些设置都不起作用:安装需要人工输入才能继续。
你能看出我做错了什么吗?
我正在尝试使用 preseed 为我的 Hadoop 集群节点设置无人值守的 Ubuntu 服务器安装。
通过在我的路由器上使用静态映射,主机名与 MAC 地址相关联。在安装过程中,主机名预先填充了静态映射中的名称,例如
不幸的是,安装此时暂停,需要手动按 Tab 键“继续”。
netcfg
目前的设置如下所示:
d-i netcfg/choose_interface select em1
d-i netcfg/dhcp_timeout string 60
d-i netcfg/disable_dhcp boolean false
d-i netcfg/dhcp_failed note
d-i netcfg/get_hostname string unassigned-hostname
d-i netcfg/get_domain string unassigned-domain
d-i netcfg/get_hostname seen true
d-i netcfg/get_domain seen true
Run Code Online (Sandbox Code Playgroud)
您能否看到需要更改/添加哪些内容才能从 DHCP 静态映射中设置主机名,而不必停留在“配置网络”上?