ova: fix packer build — correct password hash, boot command, overlay copy

- Fix user-data password hash to match ssh_password (zroc-setup-temp)
- Increase boot_wait to 10s and escape semicolon in autoinstall boot command
- Add mkdir provisioner before file upload to ensure /tmp/overlays exists
- Build tested successfully: 1.4G OVA + 2.9G qcow2 in 15 minutes

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Justin
2026-04-12 21:44:46 -04:00
parent cf71a06638
commit 8b146bc340
2 changed files with 11 additions and 6 deletions
+10 -5
View File
@@ -62,12 +62,12 @@ source "qemu" "ubuntu2404" {
http_directory = "http"
http_port_min = 8100
http_port_max = 8199
boot_wait = "5s"
boot_wait = "10s"
boot_command = [
"e<wait>",
"e<wait3s>",
"<down><down><down><end>",
" autoinstall ds=nocloud-net;seedfrom=http://{{.HTTPIP}}:{{.HTTPPort}}/",
"<f10><wait60s>",
" autoinstall ds=nocloud-net\\;s=http://{{.HTTPIP}}:{{.HTTPPort}}/",
"<f10>",
]
ssh_username = "zroc"
ssh_password = "zroc-setup-temp"
@@ -81,9 +81,14 @@ build {
sources = ["source.qemu.ubuntu2404"]
# Copy overlay files (setup wizard binary, etc.) into the VM
# Create destination first, then upload overlay contents
provisioner "shell" {
inline = ["mkdir -p /tmp/overlays"]
}
provisioner "file" {
source = "../overlays/"
destination = "/tmp/overlays/"
destination = "/tmp/overlays"
}
provisioner "shell" {