Pxe

引導參數似乎不適用於 ipxe 和日常映像

  • March 31, 2019

我正在嘗試使用 ipxe 自動安裝 debian buster,似乎引導參數在 ipxe 菜單中不起作用。我總是得到語言部分。所以preseed沒有載入。這是 ipxe 菜單中的相關條目:

:d10-dc-node
set base-url https://d-i.debian.org/daily-images/amd64/daily/netboot/debian-installer/amd64
kernel ${base-url}/linux
initrd ${base-url}/initrd.gz
imgargs linux vga=normal root=/dev/ram rw preseed/url=tftp://my.ipxe.server/preseed/debian_buster_node.seed netcfg/choose_interface=eno1 debian-installer/framebuffer=false debian-installer/locale=en_US kbd-chooser/method=us auto-install/enable=true debconf/frontend=noninteractive debconf/priority=critical console-setup/ask_detect=false keyboard-configuration/modelcode=pc105 keyboard-configuration/layoutcode=us keyboard-configuration/variant=USA hostname=ubuntu ---

這是預播部分:

### Keyboard
d-i                 console-setup/ask_detect                        boolean                 false
d-i                 keyboard-configuration/layout                   select                  USA
d-i                 keyboard-configuration/variant                  select                  USA
d-i                 keyboard-configuration/modelcode                string                  pc105
d-i                 keyboard-configuration/xkb-keymap               select                  en
d-i                 keyboard-configuration/layout                   string                  English

### Locales
d-i                 debian-installer/country                        string                  DE
d-i                 debian-installer/language                       string                  en
d-i                 debian-installer/locale                         string                  en_US.UTF-8
d-i                 localechooser/supported-locales                 multiselect             en_US.UTF-8, de_DE.UTF-8

當我嘗試將 base-url 設置為http://ftp.de.debian.org/debian/dists/buster/main/installer-amd64/current/images/netboot/debian-installer/amd64它在載入模組之前工作正常,然後我收到以下錯誤:"No kernel modules were found",我猜這是因為核心版本不同。

通過使用以下核心參數,我終於可以在無人值守的情況下安裝 debian buster:

:d10-dc-node
set base-url https://d-i.debian.org/daily-images/amd64/daily/netboot/debian- 
installer/amd64
kernel ${base-url}/linux
initrd ${base-url}/initrd.gz
initrd tftp://my.ipxe.server/preseed/debian_buster_node.seed /tmp/debian_buster_node.seed
imgargs linux auto vga=normal root=/dev/ram rw file=/tmp/debian_buster_node.seed interface=eno1 fb=false debian-installer=en_US.UTF-8 locale=en_US.UTF-8 kbd-chooser/method=us auto-install/enable=true debconf/frontend=noninteractive priority=critical console-setup/ask_detect=false keyboard-configuration/xkb-keymap=us keyboard-configuration/modelcode=pc105 keyboard-configuration/layoutcode=us keyboard-configuration/variant=USA ---
boot

網路配置和主機名將使用 DHCP 設置。

謝謝

引用自:https://unix.stackexchange.com/questions/509197