mirror of
https://github.com/recklessop/zroc.git
synced 2026-07-04 13:43:13 -04:00
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:
@@ -56,7 +56,7 @@ autoinstall:
|
|||||||
identity:
|
identity:
|
||||||
hostname: zroc-appliance
|
hostname: zroc-appliance
|
||||||
username: zroc
|
username: zroc
|
||||||
password: "$6$rounds=4096$packer$xKDMK6dLB2.8PZnJnXGpYQ9o0CWbEe4s7T5JY3bVq1ZQ2RQ6y7dAjH4wqpVLBkHPHU/CuW7.8SsLQ6TYe1"
|
password: "$6$packer$gwlQZBIqCQJgsuatoEA7pHxI3qdmXPR/PHH6s8Nw8LTKz.OABa.LAU9JvGKcXPKjxNOIVRoKMVNNjMJyIWKM30"
|
||||||
|
|
||||||
ssh:
|
ssh:
|
||||||
install-server: true
|
install-server: true
|
||||||
|
|||||||
@@ -62,12 +62,12 @@ source "qemu" "ubuntu2404" {
|
|||||||
http_directory = "http"
|
http_directory = "http"
|
||||||
http_port_min = 8100
|
http_port_min = 8100
|
||||||
http_port_max = 8199
|
http_port_max = 8199
|
||||||
boot_wait = "5s"
|
boot_wait = "10s"
|
||||||
boot_command = [
|
boot_command = [
|
||||||
"e<wait>",
|
"e<wait3s>",
|
||||||
"<down><down><down><end>",
|
"<down><down><down><end>",
|
||||||
" autoinstall ds=nocloud-net;seedfrom=http://{{.HTTPIP}}:{{.HTTPPort}}/",
|
" autoinstall ds=nocloud-net\\;s=http://{{.HTTPIP}}:{{.HTTPPort}}/",
|
||||||
"<f10><wait60s>",
|
"<f10>",
|
||||||
]
|
]
|
||||||
ssh_username = "zroc"
|
ssh_username = "zroc"
|
||||||
ssh_password = "zroc-setup-temp"
|
ssh_password = "zroc-setup-temp"
|
||||||
@@ -81,9 +81,14 @@ build {
|
|||||||
sources = ["source.qemu.ubuntu2404"]
|
sources = ["source.qemu.ubuntu2404"]
|
||||||
|
|
||||||
# Copy overlay files (setup wizard binary, etc.) into the VM
|
# 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" {
|
provisioner "file" {
|
||||||
source = "../overlays/"
|
source = "../overlays/"
|
||||||
destination = "/tmp/overlays/"
|
destination = "/tmp/overlays"
|
||||||
}
|
}
|
||||||
|
|
||||||
provisioner "shell" {
|
provisioner "shell" {
|
||||||
|
|||||||
Reference in New Issue
Block a user