Yes getting the same error in debug mode also...I couldnt find more details..here is the snippet of it.
: : 2018/08/02 04:18:06 ui: ==> vmware-iso: Cleaning VMX prior to finishing up... 2018/08/02 04:18:06 ui: vmware-iso: Unmounting floppy from VMX... 2018/08/02 04:18:06 packer: 2018/08/02 04:18:06 Deleting key: floppy0.present 2018/08/02 04:18:06 ui: vmware-iso: Detaching ISO from CD-ROM device... 2018/08/02 04:18:06 ui: vmware-iso: Disabling VNC server... 2018/08/02 04:18:06 packer: 2018/08/02 04:18:06 Writing VMX to: /tmp/packer-vmx189680565/packer-vmware-iso.vmx 2018/08/02 04:18:06 packer: 2018/08/02 04:18:06 [DEBUG] Opening new ssh session 2018/08/02 04:18:06 packer: 2018/08/02 04:18:06 [DEBUG] Starting remote scp process: scp -vt /vmfs/volumes/data_store1/packer-vmware-iso 2018/08/02 04:18:06 packer: 2018/08/02 04:18:06 [DEBUG] Started SCP session, beginning transfers... 2018/08/02 04:18:06 packer: 2018/08/02 04:18:06 [DEBUG] Copying input data into temporary file so we can read the length 2018/08/02 04:18:06 packer: 2018/08/02 04:18:06 [DEBUG] scp: Uploading packer-vmware-iso.vmx: perms=C0644 size=2884 2018/08/02 04:18:06 packer: 2018/08/02 04:18:06 [DEBUG] SCP session complete, closing stdin pipe. 2018/08/02 04:18:06 packer: 2018/08/02 04:18:06 [DEBUG] Waiting for SSH session to complete. 2018/08/02 04:18:06 packer: 2018/08/02 04:18:06 [DEBUG] scp stderr (length 39): Sink: C0644 2884 packer-vmware-iso.vmx 2018/08/02 04:18:06 packer: 2018/08/02 04:18:06 [DEBUG] Opening new ssh session 2018/08/02 04:18:06 packer: 2018/08/02 04:18:06 [DEBUG] starting remote command: vim-cmd vmsvc/reload 302 2018/08/02 04:18:07 ui: ==> vmware-iso: Exporting virtual machine... 2018/08/02 04:18:07 ui: vmware-iso: Executing: ovftool --noSSLVerify=true --skipManifestCheck -tt=ova vi://root:****@ IP/packer-vmware-iso <http://10.135.128.94/packer-vmware-iso> output-vmware-iso 2018/08/02 04:18:08 ui error: ==> vmware-iso: Error exporting virtual machine: exit status 1 ==> vmware-iso: Error: cURL error: SSL connect error ==> vmware-iso: Completed with errors ==> vmware-iso: ==> vmware-iso: 2018/08/02 04:18:08 packer: 2018/08/02 04:18:08 [DEBUG] Opening new ssh session 2018/08/02 04:18:08 packer: 2018/08/02 04:18:08 [DEBUG] starting remote command: vim-cmd vmsvc/power.getstate 302 2018/08/02 04:18:09 ui: ==> vmware-iso: Destroying virtual machine... 2018/08/02 04:18:09 packer: 2018/08/02 04:18:09 [DEBUG] Opening new ssh session 2018/08/02 04:18:09 packer: 2018/08/02 04:18:09 [DEBUG] starting remote command: vim-cmd vmsvc/destroy 302 2018/08/02 04:18:09 packer: 2018/08/02 04:18:09 [DEBUG] Opening new ssh session 2018/08/02 04:18:09 packer: 2018/08/02 04:18:09 [DEBUG] starting remote command: test ! -e /vmfs/volumes/data_store1/packer-vmware-iso 2018/08/02 04:18:09 packer: 2018/08/02 04:18:09 [ERROR] Remote command exited with '1': test ! -e /vmfs/volumes/data_store1/packer-vmware-iso 2018/08/02 04:18:09 packer: 2018/08/02 04:18:09 [DEBUG] Opening new ssh session 2018/08/02 04:18:10 packer: 2018/08/02 04:18:10 [DEBUG] starting remote command: test ! -e /vmfs/volumes/data_store1/packer-vmware-iso 2018/08/02 04:18:10 packer: 2018/08/02 04:18:10 [ERROR] Remote command exited with '1': test ! -e /vmfs/volumes/data_store1/packer-vmware-iso 2018/08/02 04:18:10 packer: 2018/08/02 04:18:10 [DEBUG] Opening new ssh session 2018/08/02 04:18:10 packer: 2018/08/02 04:18:10 [DEBUG] starting remote command: test ! -e /vmfs/volumes/data_store1/packer-vmware-iso 2018/08/02 04:18:10 packer: 2018/08/02 04:18:10 [DEBUG] Opening new ssh session 2018/08/02 04:18:10 packer: 2018/08/02 04:18:10 [DEBUG] starting remote command: test -e /vmfs/volumes/data_store1/packer-vmware-iso 2018/08/02 04:18:10 packer: 2018/08/02 04:18:10 [ERROR] Remote command exited with '1': test -e /vmfs/volumes/data_store1/packer-vmware-iso 2018/08/02 04:18:10 [INFO] (telemetry) ending vmware-iso 2018/08/02 04:18:10 ui error: Build 'vmware-iso' errored: Error exporting virtual machine: exit status 1 Error: cURL error: SSL connect error Completed with errors 2018/08/02 04:18:10 Builds completed. Waiting on interrupt barrier... 2018/08/02 04:18:10 machine readable: error-count []string{"2"} 2018/08/02 04:18:10 ui error: ==> Some builds didn't complete successfully and had errors: 2018/08/02 04:18:10 machine readable: virtualbox-iso,error []string{"Output directory exists: output-rhel75\n\nUse the force flag to delete it prior to building."} 2018/08/02 04:18:10 ui error: --> virtualbox-iso: Output directory exists: output-rhel75 Use the force flag to delete it prior to building. 2018/08/02 04:18:10 machine readable: vmware-iso,error []string{"Error exporting virtual machine: exit status 1\nError: cURL error: SSL connect error\nCompleted with errors\n\n"} 2018/08/02 04:18:10 ui error: --> vmware-iso: Error exporting virtual machine: exit status 1 Error: cURL error: SSL connect error Completed with errors 2018/08/02 04:18:10 ui: ==> Builds finished but no artifacts were created. 2018/08/02 04:18:10 [INFO] (telemetry) Finalizing. 2018/08/02 04:18:11 waiting for all plugin processes to complete... 2018/08/02 04:18:11 /usr/bin/packer: plugin process exited 2018/08/02 04:18:11 /usr/bin/packer: plugin process exited 2018/08/02 04:18:11 /usr/bin/packer: plugin process exited 2018/08/02 04:18:11 /usr/bin/packer: plugin process exited : : Yes tried command manually like below. The source ovf file is the one created on ESX machine when packer is run from vmware VM. Transferred the files to Azure VM and ran like below. [root@server_name output-vmware-iso]# ls disk-flat.vmdk disk.vmdk packer-s2.nvram packer-s2.vmsd packer-s2.vmx packer-s2.vmxf [root@server_name output-vmware-iso]# ovftool packer-s2.vmx packer-s2.ova Opening VMX source: packer-s2.vmx Opening OVA target: packer-s2.ova Writing OVA package: packer-s2.ova Transfer Completed Completed successfully Note: I am running virtualbox also along with it. On Thursday, 2 August 2018 15:54:50 UTC+5:30, Rickard von Essen wrote: > > What does the log say if you run with PACKER_LOG=1? > > Have you tried running the command manually? What's the output of that? > > On Thu, Aug 2, 2018, 11:51 Shyam J <[email protected] <javascript:>> > wrote: > >> Correction for the error posted I used format, but without "format" alos >> getting same error. >> >> vmware-iso: Executing: ovftool --noSSLVerify --noSSLVerify=true >> --skipManifestCheck -tt=ovf vi://root:****@ >> 10.135.128.94/packer-vmware-iso output-vmware-iso >> ==> vmware-iso: Error exporting virtual machine: exit status 1 >> ==> vmware-iso: Error: cURL error: SSL connect error >> ==> vmware-iso: Completed with errors >> ==> vmware-iso: >> >> >> >> On Thursday, 2 August 2018 15:02:44 UTC+5:30, Shyam J wrote: >>> >>> Hi, >>> >>> I have a code which creates image in ESX machine in ESX machine(not in >>> the VM where I run code). It works without any problem. This code I am >>> running from a vmware VM. >>> The same code when I am running from a Azure VM its looking for ovftool >>> to export for the same ESX machine. So when I installed ovftool I am >>> getting below error. >>> >>> vmware-iso: Executing: ovftool --noSSLVerify=true >>> --skipManifestCheck -tt=ova vi://root:****@IP/packer-vmware-iso >>> output-vmware-iso >>> ==> vmware-iso: Error exporting virtual machine: exit status 1 >>> ==> vmware-iso: Error: cURL error: SSL connect error >>> ==> vmware-iso: Completed with errors >>> >>> I have not passed the "format" parameter, but it looks for ovftool. >>> Please help >>> >>> Thanks >>> Shyam >>> >> -- >> 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] <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/packer-tool/ffeb0774-a5c3-40be-9c27-a3a6c3e7617d%40googlegroups.com >> >> <https://groups.google.com/d/msgid/packer-tool/ffeb0774-a5c3-40be-9c27-a3a6c3e7617d%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > -- 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/eab1ba36-f11c-4cb6-80db-a45d801561dd%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
