Packer Build - vmx to json

16 views
Skip to first unread message

Mark Conway

unread,
Jan 9, 2019, 10:12:44 AM1/9/19
to Packer
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?

Rickard von Essen

unread,
Jan 9, 2019, 11:11:20 AM1/9/19
to packe...@googlegroups.com
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.


On Wed, Jan 9, 2019 at 4:12 PM Mark Conway <mcon...@gmail.com> 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 packer-tool...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/237b2bef-7809-4a66-9623-30f4ebb75822%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages