我正在尝试通过打包程序安装 ubuntu 24.04。我已将用户数据和元数据放在 http 目录下,该目录与 ubuntu 模板位于同一父目录下。
cd_files = [
"${var.http_directory}/meta-data",
"${var.http_directory}/user-data"
]
cd_label = "cidata"
boot_command = [
"e<down><down><down><end>",
" autoinstall ds=nocloud;s=file:///cidata/<wait>",
"<F10>"
]
ip_wait_timeout = "20m"
它不会获取用户数据文件进行自动安装,但仍要求用户输入
示例用户数据
#cloud-config
autoinstall:
version: 1
early-commands:
- sudo systemctl stop ssh
locale: en_US
identity:
hostname: ubuntu-server
username: ubuntu
```
Please help me for automatic installation.