....................................................................................................................
"builders" : [{
"type" : "virtualbox-ovf",
"name" : "vboxOvfBuilder",
"vboxmanage" : [
[ "modifyvm", "{{.Name}}", "--memory", "{{user `memSize`}}"],
[ "modifyvm", "{{.Name}}", "--cpus", "{{user `cpuCount`}}" ],
[ "modifyvm", "{{.Name}}", "--bridgeadapter1", "eno1"]
],
"source_path" : "{{user `diskImg`}}",
"format" : "{{user `diskFmt`}}",
"headless" : true,
"vrdp_bind_address" : "0.0.0.0",
"output_directory" : "images-{{timestamp}}",
"ssh_port" : 22,
"ssh_username" : "root",
"ssh_password" : "welcome1",
"ssh_wait_timeout" : "1500s",
"vm_name" : "oraclelinux7u4-vbox",
"shutdown_command" : "shutdown -P now"
}
],
during builder, ssh conection failed.
...........................................................................................................................................................................................................................................................
2018/01/22 14:31:35 packer: 2018/01/22 14:31:35 [DEBUG] TCP connection to SSH ip/port failed: dial tcp
127.0.0.1:2349: getsockopt: connection refused
2018/01/22 14:31:40 packer: 2018/01/22 14:31:40 [DEBUG] TCP connection to SSH ip/port failed: dial tcp
127.0.0.1:2349: getsockopt: connection refused
2018/01/22 14:31:45 packer: 2018/01/22 14:31:45 [DEBUG] TCP connection to SSH ip/port failed: dial tcp
127.0.0.1:2349: getsockopt: connection refused
2018/01/22 14:31:50 packer: 2018/01/22 14:31:50 [DEBUG] TCP connection to SSH ip/port failed: dial tcp
127.0.0.1:2349: getsockopt: connection refused
2018/01/22 14:31:55 packer: 2018/01/22 14:31:55 [DEBUG] TCP connection to SSH ip/port failed: dial tcp
127.0.0.1:2349: getsockopt: connection refused
2018/01/22 14:32:00 packer: 2018/01/22 14:32:00 [DEBUG] TCP connection to SSH ip/port failed: dial tcp
127.0.0.1:2349: getsockopt: connection refused
2018/01/22 14:32:05 packer: 2018/01/22 14:32:05 [DEBUG] TCP connection to SSH ip/port failed: dial tcp
127.0.0.1:2349: getsockopt: connection refused
...........................................................................................................................................................................................................................................................