See my answer here https://groups.google.com/d/msg/packer-tool/
19A46jg1rGw/cg7PjMXIAAAJ

And https://github.com/hashicorp/packer/pull/4882

On Jun 16, 2017 16:52, "murali U" <[email protected]> wrote:

Hi Rodrigo/Jon,

Did either of you figure our creating vmtx files or templates using packer.
If so, can you advise on how to do this please?

cheers


On Wednesday, October 19, 2016 at 7:55:21 PM UTC+1, Rodrigo P. wrote:
>
> Hi Jon,
>
> I was wondering how you got to work the combination of vmware-iso on
> remote esxi and vsphere post-processor. I couldn't get this to work, and I
> assumed it was because the vsphere post-processor expects the VM files in
> some output directory where packer was executed, but instead it's on the
> ESXi datastore. Can you offer some hint about it?
>
> thanks in advance,
> rodrigo
>
> On Wednesday, August 3, 2016 at 10:38:36 PM UTC+1, Jon Hittner wrote:
>>
>> 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-expor
>>> t-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]> 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].
>>>> To view this discussion on the web visit https://groups.google.com/d/ms
>>>> gid/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/e251e2ff-911f-4511-81c6-2973601876f2%40googlegroups.com
<https://groups.google.com/d/msgid/packer-tool/e251e2ff-911f-4511-81c6-2973601876f2%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/CALz9Rt9NzkU7P7ew2kXzW%2BySyjKysQwOrzn%2Bqwd5V%2B05hmjnfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to