小编Ale*_*ord的帖子

Preseed 不会在 Ubuntu 14.04 上自动选择网络接口;自动安装需要人工输入

我正在尝试从 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)

这些设置都不起作用:安装需要人工输入才能继续。

你能看出我做错了什么吗?

pxe preseed

12
推荐指数
1
解决办法
9577
查看次数

在无人值守安装期间,如何配置 preseed 以从 DHCP 填充主机名,而不是停留在“配置网络”部分?

我正在尝试使用 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 静态映射中设置主机名,而不必停留在“配置网络”上?

server preseed system-installation

5
推荐指数
2
解决办法
1万
查看次数

标签 统计

preseed ×2

pxe ×1

server ×1

system-installation ×1