我正在使用 Packer 并尝试在启动提示符下设置 Subiquity 网络信息。此代码片段适用于 20.04.4 ISO,但不适用于 22.04 beta ISO。22.04 让我从 DHCP 服务器获取网络,而不是我想要用于安装的静态设置。除此之外还需要其他什么吗,例如用户数据设置?
"boot_command": [
"<enter><enter><f6><esc><wait>",
"locale=en_US ",
"biosdevname=0 ",
"net.ifnames=0 ",
"vga=791 ",
"autoinstall ",
"hostname=ubuntu-22.04-live-server-amd64 ",
"ip=192.168.1.251::192.168.1.1:255.255.255.0:ubuntu-22.04-live-server-amd64:eth0:off:192.168.1.1 ",
"ds=nocloud-net;s=http://{{ .HTTPIP }}:{{ .HTTPPort }}/files/cloud-init/ ",
"PACKER_HOST={{ .HTTPIP }} ",
"PACKER_PORT={{ .HTTPPort }} ",
"<enter>"
],