使用preseed安装ubuntu

我正在尝试使用preseed.cfg进行无人值守的ubuntu安装。 我按照http://searchitchannel.techtarget.com/feature/Performing-an-automated-Ubuntu-install-using-preseeding中的说明进行操作

在引导选项中,我将参数传递为

url=http://path/to/localhost/preseed.cfg locale=en_US console-setup/ask_detect=false console-setup/layoutcode=us hostname=unassigned-hostname domain=unassigned-domain initrd=/install/initrd.gz quiet -- 

但是这会返回错误/install/initrd.gz is not found

因此我将参数更改为:

 url=http://path/to/localhost/preseed.cfg initrd=/casper/initrd.gz 

这提示我一个错误initramfs错误。 因此我将参数更新为:

 url=http://path/to/localhost/preseed.cfg boot=casper initrd=/casper/initrd.gz 

这将停止语言选择时的自动安装。 这里出了什么问题?

preseedinstall

debian-installer仅用于Server&Alternative CD。 正如您在InstallCDCustomization中看到的那样

那个参考是安静的旧〜2010年,从屏幕截图中可以清楚地看出它使用服务器图像。 AFAIK,Ubuntu不再发布替代图像。

Live使用ubiquity安装程序,检查UbiquityAutomation以获取可用选项。

可用的预置键

Ubiquity使用Ubuntu版本的debian-installer使用的组件子集,因此会为这些组件提出相同的问题。 但是,还提供了一些其他问题。 这些如下:

  • ubiquity / summary:preseed为空以避免摘要页面。

  • ubiquity / reboot:安装程序完成后自动重启。 请务必在内核命令行中添加“noprompt”以跳过“请取出光盘,关闭托盘(如果有),然后按ENTER继续”usplash提示。

  • ubiquity / failure_command:指定安装失败时要运行的命令。

  • ubiquity / success_command:类似于preseed / late_command。 指定安装成功完成时要运行的命令(在/ target之外运行,但在调用命令时挂载/ target)。

此外,无处不在的自动化安装还需要一些其他组件:

  • languagechooser / language-name:选择可用的语言,例如英语

  • countrychooser / shortlist:选择国家,地区或地区,例如美国

  • localechooser / supported-locales:选择要支持的其他语言环境,例如en_US.UTF-8

以下安装程序组件的预置键不会在Ubiquity中使用,通常是因为它们不适合Ubiquity的操作模式:

 netcfg LVM and RAID partitioning base-installer pkgsel/tasksel finish-install 

您可以将preseed / early_command与live CD一起使用; 它将由initramfs的“casper”(在启动时设置实时环境的组件)运行。 请注意,如果您想影响实时环境中的文件,这意味着您必须在文件名前加上/ root前缀。