the nat mode will use the host networking to reach the network, why you need bridge?
bridge mode will work, just not sure if will be able to get the IP of the guest dinamically, so may fail to connect automagically if you can share the requirements perhaps will be easier to help alvaro On Mon, Jan 22, 2018 at 7:44 AM, <[email protected]> wrote: > i was creating vm with existing ova, my template is as below: > ............................................................ > ........................................................ > "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 > ............................................................ > ............................................................ > ............................................................ > ....................................................................... > hence i'm doubt whether packer support bridged mode ? > > i have tried to set ssh_skip_nat_mapping to true, it still failed. > > > -- > This mailing list is governed under the HashiCorp Community Guidelines - > https://www.hashicorp.com/community-guidelines.html. Behavior in > violation of those guidelines may result in your removal from this mailing > list. > > GitHub Issues: https://github.com/mitchellh/packer/issues > IRC: #packer-tool on Freenode > --- > You received this message because you are subscribed to the Google Groups > "Packer" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/packer-tool/43c2e6f0-bf7c-4704-98ff-dd6cf7250be1%40googlegroups.com > <https://groups.google.com/d/msgid/packer-tool/43c2e6f0-bf7c-4704-98ff-dd6cf7250be1%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Alvaro -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/packer/issues IRC: #packer-tool on Freenode --- You received this message because you are subscribed to the Google Groups "Packer" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/CAHqq0ezuL028CymtnRGP81ZDb3zhKJG-_sBHFz_EWzVzdCbGMw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
