Generating OVA from img via Packer

447 views
Skip to first unread message

ksac...@gmail.com

unread,
Aug 30, 2018, 5:43:54 AM8/30/18
to Packer
I have a mypacker.json file that takes my raw disk image with CentOS already on it and in provisioner runs my bash script and gives me a new raw image as output. I am trying to generate an OVA via packer. That is, read the raw image from disk, run my bash script under provisioner and then output an OVA. I am aware I can use qemu to convert raw image to OVA but can packer do the whole thing for me? When in my json file i say "format":"ova", packer says only qcow2 or raw are supported
"

ksac...@gmail.com

unread,
Aug 30, 2018, 5:45:00 AM8/30/18
to Packer
Also, when I say type:vmware, I get the following error
Failed to initialize build 'vmware': builder type not found: vmware

Megan Marsh

unread,
Aug 30, 2018, 12:44:20 PM8/30/18
to packe...@googlegroups.com
I suspect the issue is that the "type" for a vmware build is either "vmware-iso" or "vmware-vmx" not "vmware"

Rickard von Essen

unread,
Aug 30, 2018, 12:58:21 PM8/30/18
to packe...@googlegroups.com
And regarding qemu builder output ova, it can't do that directly. It only supports raw and qcow2 disks, see the format option.

But you can use the shell-local post-processor to run a command on the artifact. 

On Thu, Aug 30, 2018, 18:44 Megan Marsh <megan....@gmail.com> wrote:
I suspect the issue is that the "type" for a vmware build is either "vmware-iso" or "vmware-vmx" not "vmware"

--
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/CAGPV1uqOdLa_j8tByGj0FGa2ZNNY5kCi2etEwnYFvOUMyzJkkg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages