If you have another range open you should adjust https://packer.io/docs/builders/vmware-iso.html#vnc_port_min and vnc_port_max
On Tue, Dec 11, 2018, 16:01 JP Toto <[email protected] wrote: > This post https://nickcharlton.net/posts/using-packer-esxi-6.html shows > how to have ESXi open the required ports so that the firewall is open to > the initial calls. > > On Tue, Dec 11, 2018 at 9:53 AM Rickard von Essen < > [email protected]> wrote: > >> Speculating a bit here, but I think your firewall drop packages and >> Packer tries to find an available port starting at 5900. Ech attempt times >> out after 30 seconds. When it reaches 5988 it succeeds but that touch ~ 30 >> minutes. >> >> On Tue, Dec 11, 2018, 11:12 Peter Krefting <[email protected] wrote: >> >>> 2018-12-11 07:08 skrev Rickard von Essen: >>> >>> > That seems weird. Can you attach the output when running with >>> > PACKER_LOG=1. >>> >>> Hmm, seems it is looking for which VNC port the VM ended up on: >>> >>> 2018/12/11 09:44:34 packer: 2018/12/11 09:44:34 Trying address: >>> 10.0.31.140:5900... >>> 2018/12/11 09:44:49 packer: 2018/12/11 09:44:49 Timeout connecting >>> to: >>> 10.0.31.140:5900 (check firewall rules) >>> 2018/12/11 09:44:49 packer: 2018/12/11 09:44:49 Trying address: >>> 10.0.31.140:5901... >>> 2018/12/11 09:45:04 packer: 2018/12/11 09:45:04 Timeout connecting >>> to: >>> 10.0.31.140:5901 (check firewall rules) >>> [...] >>> 2018/12/11 10:06:34 packer: 2018/12/11 10:06:34 Trying address: >>> 10.0.31.140:5988... >>> 2018/12/11 10:06:34 packer: 2018/12/11 10:06:34 Found available VNC >>> port: 5988 >>> 2018/12/11 10:06:34 packer: 2018/12/11 10:06:34 Writing VMX to: >>> /home/peter/tmp/packer-vmx136814960/centos.vmx >>> >>> It is supposed to chose a port randomly, so there is no way of >>> configuring this, is there? >>> >>> -- >>> \\// Peter - http://www.softwolves.pp.se/ >>> >>> -- >>> 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/627baf9cafb9647f5841aed8bc9c94f1%40softwolves.pp.se >>> . >>> For more options, visit https://groups.google.com/d/optout. >>> >> -- >> 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/CALz9Rt8zM21C0RZFZz%2BZ9Zm%2BuqVL7NtarhB67HvPZ8W9BetYNA%40mail.gmail.com >> <https://groups.google.com/d/msgid/packer-tool/CALz9Rt8zM21C0RZFZz%2BZ9Zm%2BuqVL7NtarhB67HvPZ8W9BetYNA%40mail.gmail.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > > -- > JP Toto | [email protected] | http://jptoto.jp | @jptoto > <http://twitter.com/jptoto> > > -- > 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/CAAYNrX_BeC8keB__nRcAFJu_T_mDW4wxN6_e5ONUEctcLcRfSg%40mail.gmail.com > <https://groups.google.com/d/msgid/packer-tool/CAAYNrX_BeC8keB__nRcAFJu_T_mDW4wxN6_e5ONUEctcLcRfSg%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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/CALz9Rt_jsFGsE_dgj7uyxLYY2P5Ft7g5Y-Cuan9FCwmW9WhY5Q%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
