Packer doesn't assume the LXD container is running with SSH and thus 
doesn't know anything about a potential SSH setup. Packer uses the lxc 
command to upload, download, and exec commands in the container. To get 
that working with Ansible you have to use a special connection plugin, see 
https://github.com/ansible/ansible/blob/devel/lib/ansible/plugins/connection/lxd.py.

Also see 
https://groups.google.com/d/msg/packer-tool/sJqMu8DgjZM/szjiWtXFBAAJ

If that doesn't solve please provide your template and the output of 
running: PACKER_LOG=1 packer build template.json

On Saturday, January 6, 2018 at 4:22:18 AM UTC+1, Peter Goodall wrote:
>
> Thanks Rickard,
>
> "extra_arguments": ["-vvvvv"]
>
> --Peter G
>
> On Saturday, January 6, 2018 at 10:07:49 AM UTC+11, Rickard von Essen 
> wrote:
>>
>> I think I have that somewhere, let me get back with it tomorrow.
>>
>> What's your extra_arguments to ansible? 
>>
>> On Jan 5, 2018 09:09, "Peter Goodall" <[email protected]> wrote:
>>
>>>  also... the lxd builder runs shell commands fine remotely on the guest.
>>>
>>> -- 
>>> 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/2befac29-9098-4318-a03d-571664e502d9%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/packer-tool/2befac29-9098-4318-a03d-571664e502d9%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/d22f18ef-a9e3-4709-80f2-00d9c98e482b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to