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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to