ovf transfer failed while building image on a remote host

34 views
Skip to first unread message

Jiatong Wang

unread,
Aug 19, 2019, 2:33:46 PM8/19/19
to Packer
Hi, I am trying to use `packer` to build images in a remote esxi host. The build process succeeded but error happened while transferring ovf back to my local machine.


==> centos-7: Exporting virtual machine...
    centos
-7: Executing: ovftool --noSSLVerify=true --skipManifestCheck -tt=ovf vi://username:****@hostname/centos-7 ./output/centos-7
==> centos-7: Error exporting virtual machine: exit status 1
==> centos-7: Opening VI source: vi://username@hostname:443/centos-7
==> centos-7: Opening OVF target: ./output/centos-7
==> centos-7: Writing OVF package: ./output/centos-7/centos-7/centos-7.ovf
Transfer Failed                      
==> centos-7: Error: Failed to open file stream: https://hostname:443/ha-nfc/524c1678-4260-5e2e-ce08-de46e3abcdb0/centos-7.nvram
==> centos-7: Deleting directory tree below: ./output/centos-7/centos-7
==> centos-7: Completed with errors

==> centos-7:
==> centos-7:
==> centos-7: Destroying virtual machine...

packer version: v1.4.3
I am sure that I opened 433 port in the esxi host. Anyone has some insights on this? Thanks

Rickard von Essen

unread,
Aug 19, 2019, 4:20:24 PM8/19/19
to packe...@googlegroups.com
Which builder are you using?

--
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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/fb6638a5-dc19-4ba1-82c4-bd6712a16048%40googlegroups.com.

Jiatong Wang

unread,
Aug 19, 2019, 4:52:21 PM8/19/19
to Packer
Hi, I am using vmware workstation

Rickard von Essen

unread,
Aug 20, 2019, 12:19:49 AM8/20/19
to packe...@googlegroups.com
So you are using vmware-iso? Can you please supply your template json file and and a full Packer log from running Packer with PACKER_LOG=1 packer build template.json. 

On Mon, Aug 19, 2019, 22:52 Jiatong Wang <cod...@gmail.com> wrote:
Hi, I am using vmware workstation

--
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 packer-tool...@googlegroups.com.

Jiatong Wang

unread,
Aug 20, 2019, 2:26:58 PM8/20/19
to Packer
Hi, yes. 

The issue is also opened in github https://github.com/hashicorp/packer/issues/8010 and @SwampDragons is working on this. Thanks!
Reply all
Reply to author
Forward
0 new messages