You can take an existing image on the ESXi host and use that as a base, but
you have to create an image from the VM first (manually), you should use
the vmware-vmx builder for this 1). The support for doing this on ESXi is
new so you will most likely not find that many examples. But the way it
works is similar to ESXi support in the vmware-iso 2) builder.

If you are new to Packer I suggest that you play around with it locally
with VirtualBox or VMware Fusion/Workstation/Player etc and use some
working examples, you can start with https://github.com/chef/bento.

1) https://packer.io/docs/builders/vmware-vmx.html
2) https://packer.io/docs/builders/vmware-iso.html

On Wed, Jan 9, 2019 at 4:12 PM Mark Conway <[email protected]> wrote:

> I am a newbie to Packer, and have a relatively basic question.  I would
> like to take an existing VM running on my ESXi host, and create a packer
> json image file from that existing vmx file.  I have not seen an example of
> this being done.  Is this possible?  And if so, does anyone have a good
> video/tutorial for 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/msgid/packer-tool/237b2bef-7809-4a66-9623-30f4ebb75822%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/237b2bef-7809-4a66-9623-30f4ebb75822%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/CALz9Rt_0p0BMsMW2BqjRO49g-O75n_O0bgg1vJQNZOxuS4M%2BCA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to