hashicorp / docker-hub-images

Automatic builds of container images for Docker Hub
Mozilla Public License 2.0
127 stars 111 forks source link

ovftool not installed on docker image, so vmware-iso build fails #78

Open fahn opened 5 years ago

fahn commented 5 years ago

Hey, i try to validate and build a vmware-iso via gitlab-ci (template from https://gitlab.com/gitlab-org/gitlab-ce/blob/master/lib/gitlab/ci/templates/Packer.gitlab-ci.yml)

Version:

Error-Message: ovftool validation error: fork/exec : no such file or directory;

Output:

Running with gitlab-runner 11.7.0 (8bb608ff)
  on gitLabRunner1 MmYe5HzG
Using Docker executor with image hashicorp/packer:1.4.1 ...
Pulling docker image hashicorp/packer:1.4.1 ...
Using docker image sha256:c312ba0fcdb843be74fb76b6fe5bd632d5ce6fd22685b8d1051ef02440d583cd for hashicorp/packer:1.4.1 ...
section_start:1558100462:prepare_script
Running on runner-MmYe5HzG-project-41-concurrent-0 via gitLabRunner1...
section_end:1558100464:prepare_script
section_start:1558100464:get_sources
Cloning repository...
Cloning into '/builds/smr/test'...
Checking out 65b09221 as master...
Skipping Git submodules setup
section_end:1558100469:get_sources
section_start:1558100469:restore_cache
section_end:1558100471:restore_cache
section_start:1558100471:download_artifacts
section_end:1558100472:download_artifacts
section_start:1558100472:build_script
$ packer --version
2019/05/17 13:41:13 [INFO] Packer version: 1.4.1
2019/05/17 13:41:13 Packer Target OS/Arch: linux amd64
2019/05/17 13:41:13 Built with Go Version: go1.12.5
2019/05/17 13:41:13 Detected home directory from env var: /root
2019/05/17 13:41:13 Using internal plugin for digitalocean
2019/05/17 13:41:13 Using internal plugin for openstack
2019/05/17 13:41:13 Using internal plugin for azure-arm
2019/05/17 13:41:13 Using internal plugin for cloudstack
2019/05/17 13:41:13 Using internal plugin for triton
2019/05/17 13:41:13 Using internal plugin for lxd
2019/05/17 13:41:13 Using internal plugin for oracle-classic
2019/05/17 13:41:13 Using internal plugin for qemu
2019/05/17 13:41:13 Using internal plugin for tencentcloud-cvm
2019/05/17 13:41:13 Using internal plugin for amazon-ebsvolume
2019/05/17 13:41:13 Using internal plugin for oracle-oci
2019/05/17 13:41:13 Using internal plugin for hyperv-vmcx
2019/05/17 13:41:13 Using internal plugin for linode
2019/05/17 13:41:13 Using internal plugin for lxc
2019/05/17 13:41:13 Using internal plugin for virtualbox-ovf
2019/05/17 13:41:13 Using internal plugin for vmware-iso
2019/05/17 13:41:13 Using internal plugin for vmware-vmx
2019/05/17 13:41:13 Using internal plugin for amazon-ebssurrogate
2019/05/17 13:41:13 Using internal plugin for hcloud
2019/05/17 13:41:13 Using internal plugin for ncloud
2019/05/17 13:41:13 Using internal plugin for null
2019/05/17 13:41:13 Using internal plugin for virtualbox-iso
2019/05/17 13:41:13 Using internal plugin for yandex
2019/05/17 13:41:13 Using internal plugin for amazon-instance
2019/05/17 13:41:13 Using internal plugin for googlecompute
2019/05/17 13:41:13 Using internal plugin for scaleway
2019/05/17 13:41:13 Using internal plugin for oneandone
2019/05/17 13:41:13 Using internal plugin for proxmox
2019/05/17 13:41:13 Using internal plugin for amazon-ebs
2019/05/17 13:41:13 Using internal plugin for docker
2019/05/17 13:41:13 Using internal plugin for file
2019/05/17 13:41:13 Using internal plugin for hyperone
2019/05/17 13:41:13 Using internal plugin for hyperv-iso
2019/05/17 13:41:13 Using internal plugin for parallels-iso
2019/05/17 13:41:13 Using internal plugin for alicloud-ecs
2019/05/17 13:41:13 Using internal plugin for amazon-chroot
2019/05/17 13:41:13 Using internal plugin for vagrant
2019/05/17 13:41:13 Using internal plugin for parallels-pvm
2019/05/17 13:41:13 Using internal plugin for profitbricks
2019/05/17 13:41:13 Using internal plugin for chef-solo
2019/05/17 13:41:13 Using internal plugin for inspec
2019/05/17 13:41:13 Using internal plugin for windows-shell
2019/05/17 13:41:13 Using internal plugin for windows-restart
2019/05/17 13:41:13 Using internal plugin for ansible
2019/05/17 13:41:13 Using internal plugin for powershell
2019/05/17 13:41:13 Using internal plugin for shell
2019/05/17 13:41:13 Using internal plugin for puppet-server
2019/05/17 13:41:13 Using internal plugin for breakpoint
2019/05/17 13:41:13 Using internal plugin for chef-client
2019/05/17 13:41:13 Using internal plugin for converge
2019/05/17 13:41:13 Using internal plugin for salt-masterless
2019/05/17 13:41:13 Using internal plugin for shell-local
2019/05/17 13:41:13 Using internal plugin for sleep
2019/05/17 13:41:13 Using internal plugin for ansible-local
2019/05/17 13:41:13 Using internal plugin for file
2019/05/17 13:41:13 Using internal plugin for puppet-masterless
2019/05/17 13:41:13 Using internal plugin for docker-tag
2019/05/17 13:41:13 Using internal plugin for manifest
2019/05/17 13:41:13 Using internal plugin for vagrant-cloud
2019/05/17 13:41:13 Using internal plugin for vsphere
2019/05/17 13:41:13 Using internal plugin for vsphere-template
2019/05/17 13:41:13 Using internal plugin for docker-push
2019/05/17 13:41:13 Using internal plugin for vagrant
2019/05/17 13:41:13 Using internal plugin for digitalocean-import
2019/05/17 13:41:13 Using internal plugin for googlecompute-export
2019/05/17 13:41:13 Using internal plugin for googlecompute-import
2019/05/17 13:41:13 Using internal plugin for shell-local
2019/05/17 13:41:13 Using internal plugin for artifice
2019/05/17 13:41:13 Using internal plugin for amazon-import
2019/05/17 13:41:13 Using internal plugin for checksum
2019/05/17 13:41:13 Using internal plugin for compress
2019/05/17 13:41:13 Using internal plugin for docker-import
2019/05/17 13:41:13 Using internal plugin for docker-save
2019/05/17 13:41:13 Using internal plugin for alicloud-import
2019/05/17 13:41:13 Detected home directory from env var: /root
2019/05/17 13:41:13 Attempting to open config file: /root/.packerconfig
2019/05/17 13:41:13 [WARN] Config file doesn't exist: /root/.packerconfig
1.4.1
2019/05/17 13:41:13 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[alicloud-ecs:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs amazon-chroot:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot amazon-ebs:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs amazon-ebssurrogate:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate amazon-ebsvolume:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume amazon-instance:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance azure-arm:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm cloudstack:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack digitalocean:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean docker:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker file:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file googlecompute:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute hcloud:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hcloud hyperone:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperone hyperv-iso:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso hyperv-vmcx:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx linode:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-linode lxc:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc lxd:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd ncloud:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud null:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null oneandone:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone openstack:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack oracle-classic:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic oracle-oci:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci parallels-iso:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso parallels-pvm:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm profitbricks:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks proxmox:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-proxmox qemu:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu scaleway:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway tencentcloud-cvm:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-tencentcloud-cvm triton:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton vagrant:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vagrant virtualbox-iso:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso virtualbox-ovf:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf vmware-iso:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso vmware-vmx:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx yandex:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-yandex] PostProcessors:map[alicloud-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import amazon-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import artifice:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice checksum:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum compress:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress digitalocean-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-digitalocean-import docker-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import docker-push:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push docker-save:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save docker-tag:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag googlecompute-export:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export googlecompute-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import manifest:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest shell-local:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local vagrant:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant vagrant-cloud:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud vsphere:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere vsphere-template:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template] Provisioners:map[ansible:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible ansible-local:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local breakpoint:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-breakpoint chef-client:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client chef-solo:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo converge:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge file:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file inspec:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-inspec powershell:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell puppet-masterless:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless puppet-server:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server salt-masterless:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless shell:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell shell-local:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local sleep:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-sleep windows-restart:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart windows-shell:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell]}
2019/05/17 13:41:13 Detected home directory from env var: /root
2019/05/17 13:41:13 Setting cache directory: /builds/smr/test2/packer_cache
No tty available: open /dev/tty: no such device or address
2019/05/17 13:41:13 [INFO] (telemetry) Finalizing.
2019/05/17 13:41:13 Detected home directory from env var: /root
2019/05/17 13:41:14 waiting for all plugin processes to complete...
$ find / -name ovftool*
$ packer fix test2.json > test.json
2019/05/17 13:41:16 [INFO] Packer version: 1.4.1
2019/05/17 13:41:16 Packer Target OS/Arch: linux amd64
2019/05/17 13:41:16 Built with Go Version: go1.12.5
2019/05/17 13:41:16 Detected home directory from env var: /root
2019/05/17 13:41:16 Using internal plugin for parallels-iso
2019/05/17 13:41:16 Using internal plugin for lxd
2019/05/17 13:41:16 Using internal plugin for azure-arm
2019/05/17 13:41:16 Using internal plugin for hyperv-iso
2019/05/17 13:41:16 Using internal plugin for openstack
2019/05/17 13:41:16 Using internal plugin for scaleway
2019/05/17 13:41:16 Using internal plugin for virtualbox-iso
2019/05/17 13:41:16 Using internal plugin for amazon-ebssurrogate
2019/05/17 13:41:16 Using internal plugin for amazon-ebsvolume
2019/05/17 13:41:16 Using internal plugin for hcloud
2019/05/17 13:41:16 Using internal plugin for hyperv-vmcx
2019/05/17 13:41:16 Using internal plugin for vagrant
2019/05/17 13:41:16 Using internal plugin for alicloud-ecs
2019/05/17 13:41:16 Using internal plugin for digitalocean
2019/05/17 13:41:16 Using internal plugin for oneandone
2019/05/17 13:41:16 Using internal plugin for amazon-ebs
2019/05/17 13:41:16 Using internal plugin for hyperone
2019/05/17 13:41:16 Using internal plugin for proxmox
2019/05/17 13:41:16 Using internal plugin for qemu
2019/05/17 13:41:16 Using internal plugin for triton
2019/05/17 13:41:16 Using internal plugin for amazon-chroot
2019/05/17 13:41:16 Using internal plugin for ncloud
2019/05/17 13:41:16 Using internal plugin for tencentcloud-cvm
2019/05/17 13:41:16 Using internal plugin for virtualbox-ovf
2019/05/17 13:41:16 Using internal plugin for vmware-vmx
2019/05/17 13:41:16 Using internal plugin for file
2019/05/17 13:41:16 Using internal plugin for cloudstack
2019/05/17 13:41:16 Using internal plugin for lxc
2019/05/17 13:41:16 Using internal plugin for null
2019/05/17 13:41:16 Using internal plugin for oracle-classic
2019/05/17 13:41:16 Using internal plugin for oracle-oci
2019/05/17 13:41:16 Using internal plugin for parallels-pvm
2019/05/17 13:41:16 Using internal plugin for profitbricks
2019/05/17 13:41:16 Using internal plugin for amazon-instance
2019/05/17 13:41:16 Using internal plugin for googlecompute
2019/05/17 13:41:16 Using internal plugin for linode
2019/05/17 13:41:16 Using internal plugin for vmware-iso
2019/05/17 13:41:16 Using internal plugin for yandex
2019/05/17 13:41:16 Using internal plugin for docker
2019/05/17 13:41:16 Using internal plugin for ansible-local
2019/05/17 13:41:16 Using internal plugin for breakpoint
2019/05/17 13:41:16 Using internal plugin for converge
2019/05/17 13:41:16 Using internal plugin for windows-shell
2019/05/17 13:41:16 Using internal plugin for salt-masterless
2019/05/17 13:41:16 Using internal plugin for ansible
2019/05/17 13:41:16 Using internal plugin for chef-client
2019/05/17 13:41:16 Using internal plugin for chef-solo
2019/05/17 13:41:16 Using internal plugin for file
2019/05/17 13:41:16 Using internal plugin for inspec
2019/05/17 13:41:16 Using internal plugin for powershell
2019/05/17 13:41:16 Using internal plugin for puppet-masterless
2019/05/17 13:41:16 Using internal plugin for shell
2019/05/17 13:41:16 Using internal plugin for sleep
2019/05/17 13:41:16 Using internal plugin for windows-restart
2019/05/17 13:41:16 Using internal plugin for puppet-server
2019/05/17 13:41:16 Using internal plugin for shell-local
2019/05/17 13:41:16 Using internal plugin for artifice
2019/05/17 13:41:16 Using internal plugin for compress
2019/05/17 13:41:16 Using internal plugin for googlecompute-export
2019/05/17 13:41:16 Using internal plugin for googlecompute-import
2019/05/17 13:41:16 Using internal plugin for shell-local
2019/05/17 13:41:16 Using internal plugin for vagrant
2019/05/17 13:41:16 Using internal plugin for digitalocean-import
2019/05/17 13:41:16 Using internal plugin for vsphere
2019/05/17 13:41:16 Using internal plugin for amazon-import
2019/05/17 13:41:16 Using internal plugin for docker-import
2019/05/17 13:41:16 Using internal plugin for docker-save
2019/05/17 13:41:16 Using internal plugin for vagrant-cloud
2019/05/17 13:41:16 Using internal plugin for alicloud-import
2019/05/17 13:41:16 Using internal plugin for checksum
2019/05/17 13:41:16 Using internal plugin for docker-push
2019/05/17 13:41:16 Using internal plugin for docker-tag
2019/05/17 13:41:16 Using internal plugin for manifest
2019/05/17 13:41:16 Using internal plugin for vsphere-template
2019/05/17 13:41:16 Detected home directory from env var: /root
2019/05/17 13:41:16 Attempting to open config file: /root/.packerconfig
2019/05/17 13:41:16 [WARN] Config file doesn't exist: /root/.packerconfig
2019/05/17 13:41:16 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[alicloud-ecs:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs amazon-chroot:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot amazon-ebs:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs amazon-ebssurrogate:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate amazon-ebsvolume:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume amazon-instance:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance azure-arm:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm cloudstack:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack digitalocean:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean docker:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker file:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file googlecompute:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute hcloud:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hcloud hyperone:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperone hyperv-iso:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso hyperv-vmcx:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx linode:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-linode lxc:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc lxd:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd ncloud:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud null:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null oneandone:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone openstack:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack oracle-classic:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic oracle-oci:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci parallels-iso:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso parallels-pvm:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm profitbricks:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks proxmox:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-proxmox qemu:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu scaleway:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway tencentcloud-cvm:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-tencentcloud-cvm triton:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton vagrant:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vagrant virtualbox-iso:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso virtualbox-ovf:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf vmware-iso:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso vmware-vmx:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx yandex:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-yandex] PostProcessors:map[alicloud-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import amazon-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import artifice:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice checksum:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum compress:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress digitalocean-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-digitalocean-import docker-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import docker-push:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push docker-save:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save docker-tag:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag googlecompute-export:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export googlecompute-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import manifest:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest shell-local:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local vagrant:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant vagrant-cloud:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud vsphere:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere vsphere-template:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template] Provisioners:map[ansible:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible ansible-local:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local breakpoint:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-breakpoint chef-client:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client chef-solo:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo converge:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge file:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file inspec:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-inspec powershell:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell puppet-masterless:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless puppet-server:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server salt-masterless:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless shell:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell shell-local:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local sleep:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-sleep windows-restart:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart windows-shell:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell]}
2019/05/17 13:41:16 Detected home directory from env var: /root
2019/05/17 13:41:16 Setting cache directory: /builds/smr/test2/packer_cache
No tty available: open /dev/tty: no such device or address
2019/05/17 13:41:16 Running fixer: iso-md5
2019/05/17 13:41:16 Running fixer: createtime
2019/05/17 13:41:16 Running fixer: virtualbox-gaattach
2019/05/17 13:41:16 Running fixer: pp-vagrant-override
2019/05/17 13:41:16 Running fixer: virtualbox-rename
2019/05/17 13:41:16 Running fixer: vmware-rename
2019/05/17 13:41:16 Running fixer: parallels-headless
2019/05/17 13:41:16 Running fixer: parallels-deprecations
2019/05/17 13:41:16 Running fixer: sshkeypath
2019/05/17 13:41:16 Running fixer: sshdisableagent
2019/05/17 13:41:16 Running fixer: scaleway-access-key
2019/05/17 13:41:16 Running fixer: manifest-filename
2019/05/17 13:41:16 Running fixer: amazon-shutdown_behavior
2019/05/17 13:41:16 Running fixer: amazon-enhanced-networking
2019/05/17 13:41:16 Running fixer: amazon-private-ip
2019/05/17 13:41:16 Running fixer: amazon-temp-sec-cidrs
2019/05/17 13:41:16 Running fixer: docker-email
2019/05/17 13:41:16 Running fixer: powershell-escapes
2019/05/17 13:41:16 Running fixer: vmware-compaction
2019/05/17 13:41:16 Running fixer: hyperv-cpu-and-ram
2019/05/17 13:41:16 Running fixer: clean-image-name
  "builders": [
    {
      "boot_command": [
        "<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/scripts/centos-7-kickstart.cfg<enter><wait>"
      ],
      "boot_wait": "7s",
      "communicator": "ssh",
      "disk_size": 8192,
      "disk_type_id": "zeroedthick",
      "display_name": "test2 1.5.0",
      "format": "ovf",
      "headless": false,
      "http_directory": ".",
      "iso_checksum": "af5f788aee1b32c4b2634734309cc9e9",
      "iso_checksum_type": "md5",
      "iso_url": "http://old-releases.ubuntu.com/releases/precise/ubuntu-12.04.2-server-amd64.iso",
      "keep_registered": true,
      "name": "test2",
      "ovftool_options": [
        "--noSSLVerify"
      ],
      "remote_cache_datastore": "datastore2",
      "remote_datastore": "datastore2",
      "remote_host": "**removed**",
      "remote_password": "**removed**",
      "remote_type": "esx5",
      "remote_username": "**removed**",
      "shutdown_command": "shutdown -P now",
      "skip_compaction": "true",
      "skip_export": "false",
      "skip_validate_credentials": "false",
      "ssh_password": "packer",
      "ssh_pty": "true",
      "ssh_username": "packer",
      "ssh_wait_timeout": "60m",
      "tools_upload_flavor": "linux",
      "type": "vmware-iso",
      "vm_name": "test2",
      "vmdk_name": "test2",
      "vmx_data": {
        "ethernet0.addressType": "generated",
        "ethernet0.generatedAddressOffset": "0",
        "ethernet0.networkName": "{{user `packer_esxi_portgroup`}}",
        "ethernet0.present": "TRUE",
        "ethernet0.startConnected": "TRUE",
        "ethernet0.virtualDev": "e1000",
        "ethernet0.wakeOnPcktRcv": "FALSE",
        "memsize": "4096",
        "numvcpus": "2"
      },
      "vmx_data_post": {
        "ethernet0.virtualDev": "vmxnet3",
        "ide1:0.clientDevice": "TRUE",
        "ide1:0.fileName": "emptyBackingString",
        "ide1:0.startConnected": "FALSE"
      },
      "vnc_disable_password": true
    }
  ]
}
2019/05/17 13:41:16 [INFO] (telemetry) Finalizing.
2019/05/17 13:41:16 Detected home directory from env var: /root
2019/05/17 13:41:17 waiting for all plugin processes to complete...
$ cat test.json
{
  "builders": [
    {
      "boot_command": [
        "<tab> text ks=http://{{ .HTTPIP }}:{{ .HTTPPort }}/scripts/centos-7-kickstart.cfg<enter><wait>"
      ],
      "boot_wait": "7s",
      "communicator": "ssh",
      "disk_size": 8192,
      "disk_type_id": "zeroedthick",
      "display_name": "test2 1.5.0",
      "format": "ovf",
      "headless": false,
      "http_directory": ".",
      "iso_checksum": "af5f788aee1b32c4b2634734309cc9e9",
      "iso_checksum_type": "md5",
      "iso_url": "http://old-releases.ubuntu.com/releases/precise/ubuntu-12.04.2-server-amd64.iso",
      "keep_registered": true,
      "name": "test2",
      "ovftool_options": [
        "--noSSLVerify"
      ],
      "remote_cache_datastore": "datastore2",
      "remote_datastore": "datastore2",
      "remote_host": "**removed**",
      "remote_password": "**removed**",
      "remote_type": "esx5",
      "remote_username": "**removed**",
      "shutdown_command": "shutdown -P now",
      "skip_compaction": "true",
      "skip_export": "false",
      "skip_validate_credentials": "false",
      "ssh_password": "packer",
      "ssh_pty": "true",
      "ssh_username": "packer",
      "ssh_wait_timeout": "60m",
      "tools_upload_flavor": "linux",
      "type": "vmware-iso",
      "vm_name": "test2",
      "vmdk_name": "test2",
      "vmx_data": {
        "ethernet0.addressType": "generated",
        "ethernet0.generatedAddressOffset": "0",
        "ethernet0.networkName": "{{user `packer_esxi_portgroup`}}",
        "ethernet0.present": "TRUE",
        "ethernet0.startConnected": "TRUE",
        "ethernet0.virtualDev": "e1000",
        "ethernet0.wakeOnPcktRcv": "FALSE",
        "memsize": "4096",
        "numvcpus": "2"
      },
      "vmx_data_post": {
        "ethernet0.virtualDev": "vmxnet3",
        "ide1:0.clientDevice": "TRUE",
        "ide1:0.fileName": "emptyBackingString",
        "ide1:0.startConnected": "FALSE"
      },
      "vnc_disable_password": true
    }
  ]
}

$ packer validate test2.json
2019/05/17 13:41:17 [INFO] Packer version: 1.4.1
2019/05/17 13:41:17 Packer Target OS/Arch: linux amd64
2019/05/17 13:41:17 Built with Go Version: go1.12.5
2019/05/17 13:41:17 Detected home directory from env var: /root
2019/05/17 13:41:17 Using internal plugin for oneandone
2019/05/17 13:41:17 Using internal plugin for tencentcloud-cvm
2019/05/17 13:41:17 Using internal plugin for amazon-instance
2019/05/17 13:41:17 Using internal plugin for googlecompute
2019/05/17 13:41:17 Using internal plugin for hcloud
2019/05/17 13:41:17 Using internal plugin for proxmox
2019/05/17 13:41:17 Using internal plugin for yandex
2019/05/17 13:41:17 Using internal plugin for digitalocean
2019/05/17 13:41:17 Using internal plugin for lxd
2019/05/17 13:41:17 Using internal plugin for parallels-pvm
2019/05/17 13:41:17 Using internal plugin for oracle-classic
2019/05/17 13:41:17 Using internal plugin for triton
2019/05/17 13:41:17 Using internal plugin for cloudstack
2019/05/17 13:41:17 Using internal plugin for file
2019/05/17 13:41:17 Using internal plugin for openstack
2019/05/17 13:41:17 Using internal plugin for lxc
2019/05/17 13:41:17 Using internal plugin for oracle-oci
2019/05/17 13:41:17 Using internal plugin for qemu
2019/05/17 13:41:17 Using internal plugin for virtualbox-iso
2019/05/17 13:41:17 Using internal plugin for virtualbox-ovf
2019/05/17 13:41:17 Using internal plugin for amazon-ebsvolume
2019/05/17 13:41:17 Using internal plugin for azure-arm
2019/05/17 13:41:17 Using internal plugin for hyperv-vmcx
2019/05/17 13:41:17 Using internal plugin for linode
2019/05/17 13:41:17 Using internal plugin for ncloud
2019/05/17 13:41:17 Using internal plugin for vmware-iso
2019/05/17 13:41:17 Using internal plugin for hyperone
2019/05/17 13:41:17 Using internal plugin for hyperv-iso
2019/05/17 13:41:17 Using internal plugin for parallels-iso
2019/05/17 13:41:17 Using internal plugin for profitbricks
2019/05/17 13:41:17 Using internal plugin for vagrant
2019/05/17 13:41:17 Using internal plugin for alicloud-ecs
2019/05/17 13:41:17 Using internal plugin for amazon-chroot
2019/05/17 13:41:17 Using internal plugin for docker
2019/05/17 13:41:17 Using internal plugin for amazon-ebssurrogate
2019/05/17 13:41:17 Using internal plugin for null
2019/05/17 13:41:17 Using internal plugin for amazon-ebs
2019/05/17 13:41:17 Using internal plugin for scaleway
2019/05/17 13:41:17 Using internal plugin for vmware-vmx
2019/05/17 13:41:17 Using internal plugin for puppet-server
2019/05/17 13:41:17 Using internal plugin for salt-masterless
2019/05/17 13:41:17 Using internal plugin for shell-local
2019/05/17 13:41:17 Using internal plugin for ansible
2019/05/17 13:41:17 Using internal plugin for inspec
2019/05/17 13:41:17 Using internal plugin for sleep
2019/05/17 13:41:17 Using internal plugin for puppet-masterless
2019/05/17 13:41:17 Using internal plugin for shell
2019/05/17 13:41:17 Using internal plugin for windows-restart
2019/05/17 13:41:17 Using internal plugin for ansible-local
2019/05/17 13:41:17 Using internal plugin for converge
2019/05/17 13:41:17 Using internal plugin for file
2019/05/17 13:41:17 Using internal plugin for powershell
2019/05/17 13:41:17 Using internal plugin for windows-shell
2019/05/17 13:41:17 Using internal plugin for breakpoint
2019/05/17 13:41:17 Using internal plugin for chef-client
2019/05/17 13:41:17 Using internal plugin for chef-solo
2019/05/17 13:41:17 Using internal plugin for digitalocean-import
2019/05/17 13:41:17 Using internal plugin for googlecompute-import
2019/05/17 13:41:17 Using internal plugin for vsphere-template
2019/05/17 13:41:17 Using internal plugin for googlecompute-export
2019/05/17 13:41:17 Using internal plugin for manifest
2019/05/17 13:41:17 Using internal plugin for shell-local
2019/05/17 13:41:17 Using internal plugin for alicloud-import
2019/05/17 13:41:17 Using internal plugin for amazon-import
2019/05/17 13:41:17 Using internal plugin for docker-tag
2019/05/17 13:41:17 Using internal plugin for vagrant-cloud
2019/05/17 13:41:17 Using internal plugin for vsphere
2019/05/17 13:41:17 Using internal plugin for checksum
2019/05/17 13:41:17 Using internal plugin for compress
2019/05/17 13:41:17 Using internal plugin for docker-push
2019/05/17 13:41:17 Using internal plugin for vagrant
2019/05/17 13:41:17 Using internal plugin for artifice
2019/05/17 13:41:17 Using internal plugin for docker-import
2019/05/17 13:41:17 Using internal plugin for docker-save
2019/05/17 13:41:17 Detected home directory from env var: /root
2019/05/17 13:41:17 Attempting to open config file: /root/.packerconfig
2019/05/17 13:41:17 [WARN] Config file doesn't exist: /root/.packerconfig
2019/05/17 13:41:17 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[alicloud-ecs:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-alicloud-ecs amazon-chroot:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-chroot amazon-ebs:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebs amazon-ebssurrogate:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebssurrogate amazon-ebsvolume:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-ebsvolume amazon-instance:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-amazon-instance azure-arm:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-azure-arm cloudstack:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-cloudstack digitalocean:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-digitalocean docker:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-docker file:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-file googlecompute:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-googlecompute hcloud:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hcloud hyperone:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperone hyperv-iso:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-iso hyperv-vmcx:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-hyperv-vmcx linode:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-linode lxc:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxc lxd:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-lxd ncloud:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-ncloud null:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-null oneandone:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oneandone openstack:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-openstack oracle-classic:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-classic oracle-oci:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-oracle-oci parallels-iso:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-iso parallels-pvm:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-parallels-pvm profitbricks:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-profitbricks proxmox:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-proxmox qemu:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-qemu scaleway:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-scaleway tencentcloud-cvm:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-tencentcloud-cvm triton:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-triton vagrant:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vagrant virtualbox-iso:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-iso virtualbox-ovf:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-virtualbox-ovf vmware-iso:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-iso vmware-vmx:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-vmware-vmx yandex:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-builder-yandex] PostProcessors:map[alicloud-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-alicloud-import amazon-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-amazon-import artifice:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-artifice checksum:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-checksum compress:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-compress digitalocean-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-digitalocean-import docker-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-import docker-push:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-push docker-save:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-save docker-tag:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-docker-tag googlecompute-export:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-export googlecompute-import:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-googlecompute-import manifest:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-manifest shell-local:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-shell-local vagrant:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant vagrant-cloud:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vagrant-cloud vsphere:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere vsphere-template:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-post-processor-vsphere-template] Provisioners:map[ansible:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible ansible-local:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-ansible-local breakpoint:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-breakpoint chef-client:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-client chef-solo:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-chef-solo converge:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-converge file:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-file inspec:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-inspec powershell:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-powershell puppet-masterless:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-masterless puppet-server:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-puppet-server salt-masterless:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-salt-masterless shell:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell shell-local:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-shell-local sleep:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-sleep windows-restart:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-restart windows-shell:/bin/packer-PACKERSPACE-plugin-PACKERSPACE-packer-provisioner-windows-shell]}
2019/05/17 13:41:17 Detected home directory from env var: /root
2019/05/17 13:41:17 Setting cache directory: /builds/smr/test2/packer_cache
No tty available: open /dev/tty: no such device or address
2019/05/17 13:41:17 Detected home directory from env var: /root
2019/05/17 13:41:17 Loading builder: vmware-iso
2019/05/17 13:41:17 Plugin could not be found. Checking same directory as executable.
2019/05/17 13:41:17 Current exe path: /bin/packer
2019/05/17 13:41:17 Creating plugin client for path: /bin/packer
2019/05/17 13:41:17 Starting plugin: /bin/packer []string{"/bin/packer", "plugin", "packer-builder-vmware-iso"}
2019/05/17 13:41:17 Waiting for RPC address for: /bin/packer
2019/05/17 13:41:17 packer: 2019/05/17 13:41:17 [INFO] Packer version: 1.4.1
2019/05/17 13:41:17 packer: 2019/05/17 13:41:17 Packer Target OS/Arch: linux amd64
2019/05/17 13:41:17 packer: 2019/05/17 13:41:17 Built with Go Version: go1.12.5
2019/05/17 13:41:17 packer: 2019/05/17 13:41:17 Detected home directory from env var: /root
2019/05/17 13:41:17 packer: 2019/05/17 13:41:17 Attempting to open config file: /root/.packerconfig
2019/05/17 13:41:17 packer: 2019/05/17 13:41:17 [WARN] Config file doesn't exist: /root/.packerconfig
2019/05/17 13:41:17 packer: 2019/05/17 13:41:17 Packer config: &{DisableCheckpoint:false DisableCheckpointSignature:false PluginMinPort:10000 PluginMaxPort:25000 Builders:map[] PostProcessors:map[] Provisioners:map[]}
2019/05/17 13:41:17 packer: 2019/05/17 13:41:17 Detected home directory from env var: /root
2019/05/17 13:41:17 packer: 2019/05/17 13:41:17 Setting cache directory: /builds/smr/test2/packer_cache
2019/05/17 13:41:17 packer: 2019/05/17 13:41:17 Detected home directory from env var: /root
2019/05/17 13:41:17 packer: 2019/05/17 13:41:17 args: []string{"packer-builder-vmware-iso"}
2019/05/17 13:41:17 packer: 2019/05/17 13:41:17 Plugin minimum port: 10000
2019/05/17 13:41:17 packer: 2019/05/17 13:41:17 Plugin maximum port: 25000
2019/05/17 13:41:17 packer: 2019/05/17 13:41:17 Plugin address: unix /tmp/packer-plugin286126886
2019/05/17 13:41:17 packer: 2019/05/17 13:41:17 Waiting for connection...
2019/05/17 13:41:17 packer: 2019/05/17 13:41:17 Serving a plugin connection...
2019/05/17 13:41:17 Preparing build: test2
2019/05/17 13:41:17 Build 'test2' prepare failure: 1 error(s) occurred:

* ovftool validation error: fork/exec : no such file or directory; 
2019/05/17 13:41:17 ui error: Template validation failed. Errors are shown below.
2019/05/17 13:41:17 ui error: Errors validating build 'test2'. 1 error(s) occurred:

* ovftool validation error: fork/exec : no such file or directory; 
2019/05/17 13:41:17 [INFO] (telemetry) Finalizing.
Template validation failed. Errors are shown below.

Errors validating build 'test2'. 1 error(s) occurred:

*** ovftool validation error: fork/exec : no such file or directory;** 
2019/05/17 13:41:18 waiting for all plugin processes to complete...
2019/05/17 13:41:18 /bin/packer: plugin process exited
section_end:1558100479:build_script
section_start:1558100479:after_script
section_end:1558100480:after_script
section_start:1558100480:upload_artifacts_on_failure
section_end:1558100482:upload_artifacts_on_failure
ERROR: Job failed: exit code 1

fahn commented 5 years ago

I found a solution! ovftool is not installed.

You have to download ovftool and install it. As an example:

bash {{PATH}}/VMware-ovftool-4.3.0-7948156-lin.x86_64.bundle --eulas-agreed --required --console

Perhaps someone can add this to the documentation