2022-05-02 22:03:37 -05:00
|
|
|
source "qemu" "x86_64" {
|
|
|
|
|
iso_url = var.iso.url
|
|
|
|
|
iso_checksum = var.iso.checksum
|
|
|
|
|
output_directory = "output_${local.name}"
|
|
|
|
|
vm_name = "packer-${local.name}"
|
|
|
|
|
disk_size = var.disk_size
|
|
|
|
|
boot_wait = var.boot_wait
|
|
|
|
|
ssh_timeout = "358m"
|
|
|
|
|
ssh_username = var.ssh.username
|
|
|
|
|
ssh_password = var.ssh.password
|
|
|
|
|
headless = var.headless
|
|
|
|
|
boot_command = var.boot_command
|
|
|
|
|
http_directory = "http"
|
|
|
|
|
ssh_handshake_attempts = var.ssh_handshake_attempts
|
2022-05-27 09:07:08 -05:00
|
|
|
accelerator = var.qemu_accelerator
|
2022-05-02 22:03:37 -05:00
|
|
|
cpus = 2
|
|
|
|
|
memory = 2048
|
|
|
|
|
qemuargs = [["-serial", "stdio"]]
|
|
|
|
|
shutdown_command = var.shutdown_command
|
|
|
|
|
}
|