我正在尝试用自动安装构建一个Ubuntu20.04服务器。但看起来它并没有拿起安装文件。
我使用的是packer,但是我也手动尝试过,得到了相同的结果:
设置:
/home/user/build/http/user-data:
#cloud-config
autoinstall:
version: 1
identity:
hostname: ubuntu-vm
password: "$6$exDY1mhS4KUYCE/2$zmn9ToZwTKLhCw.b4/b.ZRTIZM30JZ4QrOQ2aOXJ8yk96xpcCof0kxKwuX1kqLG/ygbJ1f8wxED22bTL4F46P0"
username: ubuntu
locale: en_US.UTF-8
keyboard:
layout: us/home/user/build/http/meta-data:(空)
grub命令行:
set gfxpayload=keep
linux /casper/vmlinuz autoinstall ds=nocloud-net;s=http://192.168.10.10:3003/ ---
initrd /casper/initrd
boot我可以浏览到http://192.168.10.10:3003/并看到用户数据和元数据文件.
我永远都上了“选择你的语言屏幕”。
我有一个控制台捕获视频,我可以上传到某个地方,如果有人想看到控制台输出。
也曾尝试过:
linux /casper/vmlinuz autoinstall debian-installer/locale=en_US console-setup/layoutcode=us ds=nocloud-net;s=http://192.168.10.10:3003/ ---
linux /casper/vmlinuz autoinstall debian-installer/locale=en_US console-setup/layoutcode=us ds=nocloud-net;s=http://192.168.10.10:3003/ --
linux /casper/vmlinuz autoinstall ds=nocloud-net;seedfrom=http://192.168.10.10:3003/编辑:修正了用户数据,粘贴错误(太短的版本),这是最新的.
发布于 2021-04-05 15:28:16
我在Grub中发现,您需要转义;字符。试一试
linux /casper/vmlinuz autoinstall ds=nocloud-net\;s=http://192.168.10.10:3003/ ---或
linux /casper/vmlinuz autoinstall ds='nocloud-net;s=http://192.168.10.10:3003/' ---要查看这是否是问题所在,请在安装程序中打开一个shell (使用Alt-F2或Help菜单)。运行命令dmesg | grep 'Command line'。您希望输出包括;s=http://192.168.10.10:3003/
还有许多其他可能的原因。您还可以使用shell访问/var/log/installer中的日志,以检查任何错误消息。
几个用户在Ubuntu的演讲中表达了自动安装和打包的问题。他们的帖子也可能对你有帮助。这些具体的帖子似乎证实了我的建议。
https://askubuntu.com/questions/1329326
复制相似问题