Clarification in packer json file with Virtualbox as builder and V-Sphere as Post-processor?

28 views
Skip to first unread message

valli nayagam

unread,
Oct 3, 2017, 8:23:12 AM10/3/17
to Packer
Hi All,

I'm newbie to Packer. Before start trying the packer, i have some basic doubts. It would be helpful if someone clarifies the same.


Requirement:

My requirement is to automatically install Operating system (Debian/Ubuntu) using ISO image with some additional packages in Virtualbox and export it to ESXI using V-Sphere.


My Question:

To achieve my requirement, Can I create packer json file with Virtualbox--ISO as builder and vsphere  as postprocessor  or any challenges in this?

Regards
Vallinayagam.K

Alvaro Miranda Aguilera

unread,
Oct 3, 2017, 9:23:28 AM10/3/17
to packe...@googlegroups.com
hello

packer can create a VB in a Virtualbox and in VMWARE ESXI directly

the idea behind packer is to buikd VM/AMI/Droplet/docker/etc that has been provisioned in the same way

so they look/behabe/have the same packages, etc.

You can have 1 packer template with an specific provisioning step for virtualbox (to install vbox tools) and for the vmware other for the vmware tools.

that is the best packer way.

You could create a virtualbox image, use then some tools like ovftool to deploy the OVA/OVF into ESXI/vcenter but not sure if the best for the long run in case there are issues.

You can use this repo as example/starting point.


Alvaro.


--
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+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/packer-tool/94434a59-661c-4665-aabd-5d83e02f66ff%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

Reply all
Reply to author
Forward
0 new messages