Thanks, but unfortunately that doesn't work in my case as we don't use 
virtualbox/vagrant.   We are using the vmware-iso builder to build the 
image using a remote esxi box (remote_type esx5) and the the vsphere 
post-processor to upload to our vcenter.   Unless Im missing it, I don't 
think the ovftool has the ability to convert a vmware virtual machine on a 
vsphere to a vmware template.   

Maybe there is a way to do it during the builder phase after the machine is 
shutdown as a final step.   The esxi shell has a "vim-cmd 
vmsvc/convert.toTemplate" although I havent figured out how to get the 
builder to run a command on the remote esxi machine that the image is being 
built, or how to pass it the vmid that that command would need.

any ideas?

-Jon

On Wednesday, August 3, 2016 at 4:48:45 PM UTC-4, Stan Dorsett wrote:
>
> I've posted some blog posts around the approach the team I work on uses:
>
> https://sdorsett.github.io/2015/12/27/using-ovftool-to-export-packer-generated-virtual-machines/
> https://sdorsett.github.io/2015/12/28/scripted-packer-build-and-export/
>
> Stan
>
> On Wed, Aug 3, 2016 at 2:52 PM, Jon Hittner <[email protected] 
> <javascript:>> wrote:
>
>> I'm using the vsphere post-provisioner to upload the vmx output from the 
>> vmware-iso builder to my vcenter.   It works well, but the result is a 
>> virtual machine.   Is there any way to have the provisioner convert the 
>> virtual machine to a template, or does anyone have a workflow that already 
>> does this?
>>
>> -- 
>> 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/7947f7e7-45c6-43bc-9e0c-7dace856daa4%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/packer-tool/7947f7e7-45c6-43bc-9e0c-7dace856daa4%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/566fc6c6-89ea-4489-8cab-0a2c4e0e93d0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to