Skip to content

Instantly share code, notes, and snippets.

@quater
Created September 12, 2018 14:29
Show Gist options
  • Select an option

  • Save quater/79f36f7f36d8906f1da6c6b86d0bd154 to your computer and use it in GitHub Desktop.

Select an option

Save quater/79f36f7f36d8906f1da6c6b86d0bd154 to your computer and use it in GitHub Desktop.
PACKER_LOG=1 packer build templates/blabla-lxd-amd64.json
2018/09/12 15:21:48 [INFO] Packer version: 1.3.0
2018/09/12 15:21:48 Packer Target OS/Arch: linux amd64
2018/09/12 15:21:48 Built with Go Version: go1.11
2018/09/12 15:21:48 Detected home directory from env var: /home/userbla
2018/09/12 15:21:48 Using internal plugin for hyperv-iso
2018/09/12 15:21:48 Using internal plugin for ncloud
2018/09/12 15:21:48 Using internal plugin for oracle-classic
2018/09/12 15:21:48 Using internal plugin for profitbricks
2018/09/12 15:21:48 Using internal plugin for scaleway
2018/09/12 15:21:48 Using internal plugin for amazon-ebsvolume
2018/09/12 15:21:48 Using internal plugin for amazon-ebs
2018/09/12 15:21:48 Using internal plugin for digitalocean
2018/09/12 15:21:48 Using internal plugin for parallels-iso
2018/09/12 15:21:48 Using internal plugin for triton
2018/09/12 15:21:48 Using internal plugin for vmware-vmx
2018/09/12 15:21:48 Using internal plugin for alicloud-ecs
2018/09/12 15:21:48 Using internal plugin for azure-arm
2018/09/12 15:21:48 Using internal plugin for lxc
2018/09/12 15:21:48 Using internal plugin for virtualbox-iso
2018/09/12 15:21:48 Using internal plugin for amazon-chroot
2018/09/12 15:21:48 Using internal plugin for hyperv-vmcx
2018/09/12 15:21:48 Using internal plugin for lxd
2018/09/12 15:21:48 Using internal plugin for oneandone
2018/09/12 15:21:48 Using internal plugin for openstack
2018/09/12 15:21:48 Using internal plugin for amazon-instance
2018/09/12 15:21:48 Using internal plugin for googlecompute
2018/09/12 15:21:48 Using internal plugin for null
2018/09/12 15:21:48 Using internal plugin for cloudstack
2018/09/12 15:21:48 Using internal plugin for virtualbox-ovf
2018/09/12 15:21:48 Using internal plugin for qemu
2018/09/12 15:21:48 Using internal plugin for docker
2018/09/12 15:21:48 Using internal plugin for file
2018/09/12 15:21:48 Using internal plugin for oracle-oci
2018/09/12 15:21:48 Using internal plugin for parallels-pvm
2018/09/12 15:21:48 Using internal plugin for vmware-iso
2018/09/12 15:21:48 Using internal plugin for amazon-ebssurrogate
2018/09/12 15:21:48 Using internal plugin for puppet-masterless
2018/09/12 15:21:48 Using internal plugin for shell
2018/09/12 15:21:48 Using internal plugin for windows-shell
2018/09/12 15:21:48 Using internal plugin for ansible-local
2018/09/12 15:21:48 Using internal plugin for chef-solo
2018/09/12 15:21:48 Using internal plugin for converge
2018/09/12 15:21:48 Using internal plugin for file
2018/09/12 15:21:48 Using internal plugin for powershell
2018/09/12 15:21:48 Using internal plugin for shell-local
2018/09/12 15:21:48 Using internal plugin for windows-restart
2018/09/12 15:21:48 Using internal plugin for salt-masterless
2018/09/12 15:21:48 Using internal plugin for ansible
2018/09/12 15:21:48 Using internal plugin for chef-client
2018/09/12 15:21:48 Using internal plugin for puppet-server
2018/09/12 15:21:48 Using internal plugin for manifest
2018/09/12 15:21:48 Using internal plugin for vagrant
2018/09/12 15:21:48 Using internal plugin for vagrant-cloud
2018/09/12 15:21:48 Using internal plugin for googlecompute-export
2018/09/12 15:21:48 Using internal plugin for vsphere
2018/09/12 15:21:48 Using internal plugin for artifice
2018/09/12 15:21:48 Using internal plugin for checksum
2018/09/12 15:21:48 Using internal plugin for docker-import
2018/09/12 15:21:48 Using internal plugin for docker-push
2018/09/12 15:21:48 Using internal plugin for amazon-import
2018/09/12 15:21:48 Using internal plugin for docker-save
2018/09/12 15:21:48 Using internal plugin for shell-local
2018/09/12 15:21:48 Using internal plugin for vsphere-template
2018/09/12 15:21:48 Using internal plugin for alicloud-import
2018/09/12 15:21:48 Using internal plugin for compress
2018/09/12 15:21:48 Using internal plugin for docker-tag
2018/09/12 15:21:48 Using internal plugin for googlecompute-import
2018/09/12 15:21:48 Detected home directory from env var: /home/userbla
2018/09/12 15:21:48 Attempting to open config file: /home/userbla/.packerconfig
2018/09/12 15:21:48 [WARN] Config file doesn't exist: /home/userbla/.packerconfig
2018/09/12 15:21:48 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[parallels-pvm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm hyperv-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso oracle-classic:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic amazon-ebs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs virtualbox-ovf:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf docker:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker amazon-ebssurrogate:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate ncloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud amazon-chroot:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot cloudstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack oneandone:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone alicloud-ecs:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs lxc:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc virtualbox-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso vmware-vmx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx hyperv-vmcx:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx googlecompute:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute profitbricks:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks scaleway:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway triton:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file oracle-oci:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci amazon-ebsvolume:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume digitalocean:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean null:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null azure-arm:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm qemu:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu vmware-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso parallels-iso:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso openstack:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack amazon-instance:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance lxd:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd] PostProcessors:map[shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local docker-tag:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag vagrant-cloud:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud vagrant:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant googlecompute-export:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export amazon-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import docker-save:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save alicloud-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import manifest:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest artifice:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice checksum:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum docker-push:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push vsphere-template:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template vsphere:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere compress:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress googlecompute-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import docker-import:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import] Provisioners:map[powershell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell puppet-server:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell chef-solo:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo ansible:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible puppet-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless converge:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge salt-masterless:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless windows-shell:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell ansible-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local windows-restart:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart chef-client:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client file:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file shell-local:/usr/local/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local]}
2018/09/12 15:21:48 Detected home directory from env var: /home/userbla
2018/09/12 15:21:48 Setting cache directory: /my/path/packer_cache
2018/09/12 15:21:48 Detected home directory from env var: /home/userbla
2018/09/12 15:21:48 Loading builder: lxd
2018/09/12 15:21:48 Plugin could not be found. Checking same directory as executable.
2018/09/12 15:21:48 Current exe path: /usr/local/bin/packer
2018/09/12 15:21:48 Creating plugin client for path: /usr/local/bin/packer
2018/09/12 15:21:48 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-builder-lxd"}
2018/09/12 15:21:48 Waiting for RPC address for: /usr/local/bin/packer
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 [INFO] Packer version: 1.3.0
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Packer Target OS/Arch: linux amd64
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Built with Go Version: go1.11
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Detected home directory from env var: /home/userbla
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Attempting to open config file: /home/userbla/.packerconfig
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 [WARN] Config file doesn't exist: /home/userbla/.packerconfig
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Detected home directory from env var: /home/userbla
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Setting cache directory: /my/path/packer_cache
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 args: []string{"packer-builder-lxd"}
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Plugin minimum port: 10000
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Plugin maximum port: 25000
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Plugin address: unix /tmp/packer-plugin276220229
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Waiting for connection...
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Detected home directory from env var: /home/userbla
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Serving a plugin connection...
2018/09/12 15:21:48 Loading provisioner: file
2018/09/12 15:21:48 Plugin could not be found. Checking same directory as executable.
2018/09/12 15:21:48 Current exe path: /usr/local/bin/packer
2018/09/12 15:21:48 Creating plugin client for path: /usr/local/bin/packer
2018/09/12 15:21:48 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-provisioner-file"}
2018/09/12 15:21:48 Waiting for RPC address for: /usr/local/bin/packer
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 [INFO] Packer version: 1.3.0
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Packer Target OS/Arch: linux amd64
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Built with Go Version: go1.11
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Detected home directory from env var: /home/userbla
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Attempting to open config file: /home/userbla/.packerconfig
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 [WARN] Config file doesn't exist: /home/userbla/.packerconfig
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Detected home directory from env var: /home/userbla
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Setting cache directory: /my/path/packer_cache
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 args: []string{"packer-provisioner-file"}
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Plugin minimum port: 10000
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Plugin maximum port: 25000
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Detected home directory from env var: /home/userbla
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Plugin address: unix /tmp/packer-plugin709007971
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Waiting for connection...
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Serving a plugin connection...
2018/09/12 15:21:48 Loading provisioner: file
2018/09/12 15:21:48 Plugin could not be found. Checking same directory as executable.
2018/09/12 15:21:48 Current exe path: /usr/local/bin/packer
2018/09/12 15:21:48 Creating plugin client for path: /usr/local/bin/packer
2018/09/12 15:21:48 Starting plugin: /usr/local/bin/packer []string{"/usr/local/bin/packer", "plugin", "packer-provisioner-file"}
2018/09/12 15:21:48 Waiting for RPC address for: /usr/local/bin/packer
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 [INFO] Packer version: 1.3.0
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Packer Target OS/Arch: linux amd64
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Built with Go Version: go1.11
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Detected home directory from env var: /home/userbla
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Attempting to open config file: /home/userbla/.packerconfig
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 [WARN] Config file doesn't exist: /home/userbla/.packerconfig
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Detected home directory from env var: /home/userbla
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Setting cache directory: /my/path/packer_cache
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 args: []string{"packer-provisioner-file"}
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Plugin minimum port: 10000
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Plugin maximum port: 25000
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Plugin address: unix /tmp/packer-plugin183445934
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Waiting for connection...
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Detected home directory from env var: /home/userbla
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Serving a plugin connection...
2018/09/12 15:21:48 Build debug mode: false
2018/09/12 15:21:48 Force build: false
2018/09/12 15:21:48 On error:
2018/09/12 15:21:48 Preparing build: lxd
lxd output will be in this color.
2018/09/12 15:21:48 Waiting on builds to complete...
2018/09/12 15:21:48 Starting build run: lxd
2018/09/12 15:21:48 Running builder: lxd
2018/09/12 15:21:48 [INFO] (telemetry) Starting builder lxd
==> lxd: Creating container...
2018/09/12 15:21:48 packer: 2018/09/12 15:21:48 Executing lxc command: []string{"launch", "--ephemeral=false", "--profile=default", "ubuntu-daily:bionic", "packer-lxd"}
2018/09/12 15:21:51 packer: 2018/09/12 15:21:51 stdout: Creating packer-lxd
2018/09/12 15:21:51 packer: Starting packer-lxd
2018/09/12 15:21:51 packer: 2018/09/12 15:21:51 stderr:
2018/09/12 15:21:54 packer: 2018/09/12 15:21:54 Sleeping for 3 seconds...
2018/09/12 15:21:54 packer: 2018/09/12 15:21:54 Running the provision hook
2018/09/12 15:21:54 [INFO] (telemetry) Starting provisioner file
==> lxd: Uploading some/path/bogusfile => /tmp/bogusfile
2018/09/12 15:21:54 packer: 2018/09/12 15:21:54 Executing with lxc exec in container: packer-lxd test -d "/tmp/bogusfile"
2018/09/12 15:21:54 packer: 2018/09/12 15:21:54 Executing lxc exec: /bin/sh []string{"/bin/sh", "-c", "lxc exec packer-lxd -- /bin/sh -c \"test -d \"/tmp/bogusfile\"\""}
2018/09/12 15:21:54 packer: 2018/09/12 15:21:54 [INFO] 947 bytes written for 'uploadData'
2018/09/12 15:21:54 [INFO] 947 bytes written for 'uploadData'
0 B / ? [--------------------------------------------------------------------------------------------------------------------------------------------------=]2018/09/12 15:21:54 packer: 2018/09/12 15:21:54 lxc exec execution exited with '1': 'test -d "/tmp/bogusfile"'
2018/09/12 15:21:54 packer: 2018/09/12 15:21:54 Running copy command: lxc file push - packer-lxd/tmp/bogusfile
1 items: 947 B / 947 B [=================================================================================================================================] 0s
2018/09/12 15:21:54 [INFO] (telemetry) ending file
2018/09/12 15:21:54 [INFO] (telemetry) Starting provisioner file
==> lxd: Uploading some/path/resolved.conf => /tmp/resolved.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment