|
|
@@ -25,20 +25,24 @@ source "qemu" "debian" { |
|
|
|
http_port_min = 10082 |
|
|
|
host_port_min = 2229 |
|
|
|
host_port_max = 2229 |
|
|
|
vnc_bind_address = "0.0.0.0" |
|
|
|
vnc_port_min = 5900 |
|
|
|
vnc_port_max = 5900 |
|
|
|
iso_checksum = "${var.iso_checksum}" |
|
|
|
iso_url = "${var.iso_url}" |
|
|
|
memory = 2048 |
|
|
|
net_device = "virtio-net" |
|
|
|
output_directory = "output_qcow2" |
|
|
|
// Warning -device order impact network interface naming index ensX |
|
|
|
qemuargs = [ |
|
|
|
["-boot", "b"], |
|
|
|
["-device", "virtio-rng-pci"] |
|
|
|
["-device", "virtio-net,netdev=user.0"], |
|
|
|
["-netdev", "user,id=user.0,hostfwd=tcp::{{ .SSHHostPort }}-:22"], |
|
|
|
["-device", "virtio-rng-pci"], |
|
|
|
] |
|
|
|
shutdown_command = "sudo /sbin/shutdown -hP now" |
|
|
|
ssh_password = "${var.ssh_password}" |
|
|
|
ssh_username = "${var.ssh_username}" |
|
|
|
ssh_wait_timeout = "900m" |
|
|
|
vm_name = "debian_packer.qcow2" |
|
|
|
vnc_port_max = "5900" |
|
|
|
vnc_port_min = "5900" |
|
|
|
} |