Hello Rickard,
I am using ‘ubuntu-daily:16.04’ as my base_image.
have attached relevant files. Project very similar to the example you
posted for me some time ago.
Here is the output from running packer:
packer build template.json
lxd-xenial output will be in this color.
==> lxd-xenial: Creating container...
==> lxd-xenial: Provisioning with shell script: /tmp/packer-shell321894822
lxd-xenial: Distributor ID: Ubuntu
lxd-xenial: No LSB modules are available.
lxd-xenial: Description: Ubuntu 16.04.4 LTS
lxd-xenial: Release: 16.04
lxd-xenial: Codename: xenial
lxd-xenial: # Dynamic resolv.conf(5) file for glibc resolver(3) generated
by resolvconf(8)
lxd-xenial: # DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE
OVERWRITTEN
lxd-xenial: ping: unknown host archive.ubuntu.com
==> lxd-xenial: Unregistering and deleting deleting container...
On Saturday, January 20, 2018 at 7:22:41 PM UTC+11, Rickard von Essen wrote:
Can you share your packer template?
>
> On Jan 20, 2018 06:01, "HSB" <[email protected] <javascript:>> wrote:
>
>> Hi, Created new VM Box using Vagrant. I can SSH and also connect to
>> internet from that host.
>>
>> But when I execute packer build (type: lxd) with shell commands for
>> ubuntu updates, I get following error. I can CURL all of the following urls
>> from command line successfully. I have name-servers setup properly.
>>
>> But, I am not sure why packer is complaining about it? Thoughts?
>>
>> xenial-container: Firewall stopped and disabled on system startup
>> xenial-container: sudo: unable to resolve host
>> packer-xenial-container: Connection refused
>> xenial-container: Err:1 http://security.ubuntu.com/ubuntu
>> xenial-security InRelease
>> xenial-container: Temporary failure resolving 'security.ubuntu.com'
>> xenial-container: Err:2 http://archive.ubuntu.com/ubuntu xenial
>> InRelease
>> xenial-container: Temporary failure resolving 'archive.ubuntu.com'
>> xenial-container: Err:3 http://archive.ubuntu.com/ubuntu
>> xenial-updates InRelease
>> xenial-container: Temporary failure resolving 'archive.ubuntu.com'
>> xenial-container: Err:4 http://archive.ubuntu.com/ubuntu
>> xenial-backports InRelease
>> xenial-container: Temporary failure resolving 'archive.ubuntu.com'
>>
>> xenial-container: W: Failed to fetch
>> http://archive.ubuntu.com/ubuntu/dists/xenial-updates/InRelease
>> Temporary failure resolving 'archive.ubuntu.com'
>> xenial-container: W: Failed to fetch
>> http://archive.ubuntu.com/ubuntu/dists/xenial-backports/InRelease
>> Temporary failure resolving 'archive.ubuntu.com'
>> xenial-container: W: Failed to fetch
>> http://security.ubuntu.com/ubuntu/dists/xenial-security/InRelease
>> Temporary failure resolving 'security.ubuntu.
>>
>> --
>> 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] <javascript:>.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/packer-tool/4b63ceae-f93a-4fe8-a3d1-e3869e11f4d2%40googlegroups.com
>>
>> <https://groups.google.com/d/msgid/packer-tool/4b63ceae-f93a-4fe8-a3d1-e3869e11f4d2%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/075c5ccc-4df1-4476-87ea-f1f3a6487a02%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Pipfile
Description: Binary data
playbook.yml
Description: Binary data
template.json
Description: application/json
.envrc
Description: Binary data
