Banno / packer-post-processor-vsphere-ova

This post-processor will upload a VMDK and vmware template to a datastore on VSphere 5.5
Apache License 2.0
33 stars 13 forks source link

Post Processor fails to find disk on ESXi #11

Open vikas027 opened 8 years ago

vikas027 commented 8 years ago

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
==> 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
~ #
rendhalver commented 8 years ago

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