Ssh is not yet involved in anything. The way to interpret these log lines:

01:47:26  [1;32m==> amazon-ebs: Launching a source AWS instance...
[0m01:47:27  [0;32m    amazon-ebs: Instance ID: i-0570fffad0bc0f0a8
[0m
01:47:27  [1;32m==> amazon-ebs: Waiting for instance
(i-0570fffad0bc0f0a8) to become ready... [0m
01:47:30  [1;31m==> amazon-ebs: Error waiting for instance
(i-0570fffad0bc0f0a8) to become ready: unexpected state
'shutting-down', wanted target 'running' [0m

Is that first packer sends the run instance API call which returns an
instance-id for the new instance.

Packer then loops doing describe instance API calls waiting for
instance state to become running, but instead it gets shutting-down
which means that the instance automatically shut down. The reason for
this is most likely available in the system console log from the
machine.


On Tue, Oct 23, 2018, 19:02 'Vivek' via Packer <[email protected]>
wrote:

> I tried this previously but nothing shows up in the system logs,. makes me
> wonder if ssh does not even work
>
> --
> 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/23ac8e7e-8d08-4a85-84f3-9630d4d68730%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/23ac8e7e-8d08-4a85-84f3-9630d4d68730%40googlegroups.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-bgmwhPRPjjCs2Nb3GppAM5T5Y6PP2Y1WW_j%2Bo2xNA-w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to