你好,我正在尝试制作一个 ubuntu 22.04 自动安装 USB
20.04 启动正常,但我无法启动 22.04。
我在无头无键盘服务器上运行这个程序,因为我的猫咬断了我的键盘电缆
在 grub 中,我现在已经将行更改为很多内容
linux /casper/vmlinuz quiet autoinstall ds=nocloud\;s=/cdrom/nocloud/ ---
linux /casper/vmlinuz quiet autoinstall ---
linux /casper/vmlinuz quiet autoinstall ds=nocloud;s=/cdrom/nocloud/ ---
linux /casper/vmlinuz autoinstall quiet ---
我的用户数据文件是
#cloud-config
autoinstall:
version: 1
identity:
hostname: ubuntusrv
password: "REDACTED"
username: REDACTED
ssh:
install-server: yes
authorized-keys:
- "ssh-rsa REDACTED"
allow-pw: no
我做错了什么吗?
iso命令是
xorriso -as mkisofs -r -V "ubuntu-22-04-autoinstall" -J -boot-load-size 4 -boot-info-table -input-charset utf-8 -eltorito-alt-boot -b bootpart/eltorito_img1_bios .img -no-emul-boot -o ../installer22.04.iso 。
在此先感谢您的希望。我已经尝试这个好几天了
编辑...
所以我设法让安装程序运行,但现在它似乎忽略了 grub.cfg。它忽略超时和额外的菜单项。
因此,启动磁盘创建器似乎没有看到我正在创建的 iso。
我通过烦人地借了一台 Windows 机器并用 rufus 将 iso 放入 USB 来修复。我确信我可以用 ubuntu 工具做到这一点,但我在这上面浪费了很长时间