Banno / packer-post-processor-vsphere-ova

This post-processor will upload a VMDK and vmware template to a datastore on VSphere 5.5

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Post Processor fails to find disk on ESXi

vikas027 opened this issue · comments

Post Processor fails to find disk on ESXi though it is present. The problem only occurs when VMware builder used, VirtualBox runs fine with few issues and solutions discussed here.

ENVIRONMENT
  • Host OS: CentOS 7.2 x86_64
  • Builder: VirtualBox
  • Guest OS: CentOS 7.2 x86_64
  • packer 0.9.0
  • go 1.6
  • ovftool 4.1.0
  • ESXi 5.5
LOGS
==> vmware: Running post-processor: vsphere-ova
    vmware (vsphere-ova): Setting the hardware version in the vmx to version '8'
    vmware (vsphere-ova): Uploading output-vmware/disk.vmdk and output-vmware/packer-centos_7.2-x86_64.vmx to Datastore datastore1 on host 192.168.1.151
    vmware (vsphere-ova):  0 B / 553 B [-----------------]   0.00%
    vmware (vsphere-ova):  553 B / 553 B [======] 100.00% 669 B/s0
    vmware (vsphere-ova): Uploaded output-vmware/disk.vmdk
    vmware (vsphere-ova):  0 B / 2.56 KB [---------------]   0.00%
    vmware (vsphere-ova):  2.56 KB / 2.56 KB  100.00% 4.97 KB/s0
    vmware (vsphere-ova): Uploaded output-vmware/packer-centos_7.2-x86_64.vmx
    vmware (vsphere-ova): Registering packer-centos_7.2-x86_64 from [datastore1] packer-templates/packer-centos_7.2-x86_64.vmx
    vmware (vsphere-ova): Registererd VM packer-centos_7.2-x86_64
    vmware (vsphere-ova): Cloning VM packer-centos_7.2-x86_64-vm
Build 'vmware' errored: 1 error(s) occurred:

* Post-processor failed: Failed: File /vmfs/volumes/56cf089b-9799c926-bdd6-000c298f05ad/packer-templates/disk.vmdk was not found

==> Some builds didn't complete successfully and had errors:
--> vmware: 1 error(s) occurred:

* Post-processor failed: Failed: File /vmfs/volumes/56cf089b-9799c926-bdd6-000c298f05ad/packer-templates/disk.vmdk was not found

==> Builds finished but no artifacts were created.
ESXi
~ # ls -l   /vmfs/volumes/56cf089b-9799c926-bdd6-000c298f05ad/packer-templates/disk.vmdk
-rw-------    1 root     root           553 Mar 10 11:21 /vmfs/volumes/56cf089b-9799c926-bdd6-000c298f05ad/packer-templates/disk.vmdk
~ #

I am seeing the same issue here.
It is definitely uploading the file but fails at the same point.