Le lundi 11 mars 2019 15:52:37 UTC+1, [email protected] a écrit : > > Hi, > I've been struggling with Packer and the vsphere post-processor. > Packer can create my VM, run the provisionner and exporting as vmx to my > packer server, but when it comes to upload it to a vcenter, it just stops > without much of an explanation why. > I've been through a lot a tickets on this group and onto the github as > well but couldnt find anything that could help. but I can't find anything > in packerlog that could help me, it just says : > > > > > > > > > > > > > > > > > > > > > > > *2019/03/11 14:32:39 packer_1.3.5: 2019/03/11 14:32:39 Starting ovftool > with parameters: --acceptAllEulas --name=Windows_Server_2016_EN_Packer_Test > --datastore=VOL_ISO --noSSLVerify=true --diskMode=thin --network="VM > Network" output-vmware-iso/windows_Server_2016/windows_Server_2016.vmx > vi://user:<password>@cloud-vc-z00r.net/z00r/host/CLOUD-z00r-CL/?dns=cloud-esx-z01r.net > > <http://cloud-vc-z00r.net/z00r/host/CLOUD-z00r-CL/?dns=cloud-esx-z01r.net>2019/03/11 > > 14:32:42 [INFO] (telemetry) ending vsphere2019/03/11 14:32:42 Deleting > original artifact for build 'vmware-iso'2019/03/11 14:32:43 ui error: > [1;31mBuild 'vmware-iso' errored: 1 error(s) occurred:* Post-processor > failed: Error uploading virtual machine: exit status 1 [0m2019/03/11 > 14:32:43 Builds completed. Waiting on interrupt barrier...2019/03/11 > 14:32:43 machine readable: error-count []string{"1"}2019/03/11 14:32:43 ui > error: ==> Some builds didn't complete successfully and had > errors:2019/03/11 14:32:43 machine readable: vmware-iso,error []string{"1 > error(s) occurred:\n\n* Post-processor failed: Error uploading virtual > machine: exit status 1\n\n"}2019/03/11 14:32:43 ui error: --> vmware-iso: 1 > error(s) occurred:* Post-processor failed: Error uploading virtual machine: > exit status 12019/03/11 14:32:43 ui: ==> Builds finished but no artifacts > were created.2019/03/11 14:32:43 [INFO] (telemetry) Finalizing.2019/03/11 > 14:32:44 waiting for all plugin processes to complete...2019/03/11 14:32:44 > /usr/bin/packer_1.3.5: plugin process exited* > > > I've been using Packer 1.3.5 on Ubuntu 16.04 LTS. > > Any help would be much appreciated. >
UPDATE : I tried removing the post-processor bloc at the end of json, and launch the ovftool command that was failing (the one I posted) manually and it's working well.. My guess is some characters in the password are not being read by packer...Is there any informations about that anywhere ? -- 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/edc58c9c-43c8-46b1-9e80-debfcb2c37cc%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
