boot_command

This commit is contained in:
2022-01-17 09:20:36 +01:00
parent b03a58ef56
commit b40e83ce49

View File

@@ -11,7 +11,7 @@ source "proxmox" "ubuntu" {
iso_checksum = "f8e3086f3cea0fb3fefb29937ab5ed9d19e767079633960ccb50e76153effc98"
insecure_skip_tls_verify = true
pool = "Linux-VM"
vm_name = "PackerTest.ivanclement.maison"
vm_name = "PackerTest"
vm_id = 654
memory = 1024
cores = 1
@@ -40,30 +40,10 @@ source "proxmox" "ubuntu" {
storage_pool_type = "lvm-thin"
format = "raw"
}
boot_command = [
"<esc><wait>",
"<esc><wait>",
"<enter><wait>",
"/install/vmlinuz",
" auto=true",
" url=http://{{ .HTTPIP }}:{{ .HTTPPort }}/preseed.cfg",
" locale=en_US<wait>",
" console-setup/ask_detect=false<wait>",
" console-setup/layoutcode=us<wait>",
" console-setup/modelcode=pc105<wait>",
" debconf/frontend=noninteractive<wait>",
" debian-installer=en_US<wait>",
" fb=false<wait>",
" initrd=/install/initrd.gz<wait>",
" kbd-chooser/method=us<wait>",
" keyboard-configuration/layout=USA<wait>",
" keyboard-configuration/variant=USA<wait>",
" netcfg/get_domain=vm<wait>",
" netcfg/get_hostname=packer<wait>",
" grub-installer/bootdev=/dev/sda<wait>",
" noapic<wait>",
" -- <wait>",
"<enter><wait>"
"boot_command": [
"<enter><wait2><enter><wait2><f6><esc><wait2> ",
"autoinstall<wait2> ds=nocloud;",
"<wait><enter>"
]
}