Hi,

Apologies if this has been asked in a different guise - I have some quite a 
lot of searching (both on this message board and on the internet in general 
- sometimes it's all about the search phrase!).

Basically, I have the requirement to build multiple VMs (configured all the 
same way using the same Provisioners) but outputting in different VM 
formats - e.g. VMWare and Openstack.

The "problem" is I want to use a single common source VM in each builder 
(such as a "qcow2" image) - but each builder likes to have its own personal 
source that is already in the native format of the image being output.  
E.g. The VMWare builder needs a vmware image, the docker builder needs a 
docker image, etc, etc.

The only thing I can think of is to use a script that invokes something 
like "qemu-img" to spit out a couple of specific VM image types, that are 
then magically used by the "builder" blocks in the Packer JSON script.

Is there a "pre-builder" block that I've missed that could do this?  Or 
have I simply missed something in the general Packer docs?

Any pointers would be awesome - even if it's just agreeing with my "only 
thing..." idea above.

Thanks in advance,

Kevin Peirce


-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/212cce00-28da-463b-bb4e-cd58df607f83%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to