diff options
Diffstat (limited to 'openbsd-image/openbsd-amd64.pkr.hcl')
| -rw-r--r-- | openbsd-image/openbsd-amd64.pkr.hcl | 44 |
1 files changed, 22 insertions, 22 deletions
diff --git a/openbsd-image/openbsd-amd64.pkr.hcl b/openbsd-image/openbsd-amd64.pkr.hcl index e19b208..7cbb24b 100644 --- a/openbsd-image/openbsd-amd64.pkr.hcl +++ b/openbsd-image/openbsd-amd64.pkr.hcl @@ -1,21 +1,21 @@ source "qemu" "openbsd-amd64" { - vm_name = "openbsd-${var.version}-amd64.raw" - iso_url = "${var.mirror}/pub/OpenBSD/${var.version}/${var.arch}/install${local.version_short}.iso" - iso_checksum = "file:${var.mirror}/pub/OpenBSD/${var.version}/${var.arch}/SHA256" - output_directory = "build" - qemu_binary = "qemu-system-x86_64" - machine_type = "q35" - cpu_model = "max" - accelerator = "tcg" - cpus = var.cpus - memory = var.memory - disk_interface = "virtio" - disk_size = "${var.disk_size}G" - disk_compression = true - format = "raw" - ssh_username = "root" - ssh_password = local.root_password - ssh_timeout = "30m" + vm_name = "openbsd-${var.version}-amd64.raw" + iso_url = "${var.mirror}/pub/OpenBSD/${var.version}/${var.arch}/install${local.version_short}.iso" + iso_checksum = "file:${var.mirror}/pub/OpenBSD/${var.version}/${var.arch}/SHA256" + output_directory = "build" + qemu_binary = "qemu-system-x86_64" + machine_type = "q35" + cpu_model = "max" + accelerator = "tcg" + cpus = var.cpus + memory = var.memory + disk_interface = "virtio" + disk_size = "${var.disk_size}G" + disk_compression = true + format = "raw" + ssh_username = "root" + ssh_password = local.root_password + ssh_timeout = "30m" http_port_min = local.http_port http_port_max = local.http_port @@ -38,13 +38,13 @@ source "qemu" "openbsd-amd64" { var.disklabel_template != "" ? { "/disklabel" = var.disklabel_template } : {} ) - boot_command = [ + boot_command = [ "<wait>S<enter><wait>", "autoinstall<enter><wait>", "http://{{ .HTTPIP }}:{{ .HTTPPort }}/install.conf<enter>", ] - boot_wait = "20s" - shutdown_command = "shutdown -p now" - headless = false - qemuargs = [["-display", "cocoa"]] + boot_wait = "20s" + shutdown_command = "shutdown -p now" + headless = false + qemuargs = [["-display", "cocoa"]] } |