Hello

If you would share more information on what you will be doing, how you will
be using those files, perhaps that will help to see the whole picture.

Out  of the box packer takes an iso, create a VM with a VDI disk and OVF
definition, then at the end, it export the VM and creates a OVF file and a
VMDK file.

format <https://www.packer.io/docs/builders/virtualbox-iso.html#format>
(string)
- Either "ovf" or "ova", this specifies the output format of the exported
virtual machine. This defaults to "ovf".

I don't think there is a way to set the name of the disk as its created
automatically.

https://www.packer.io/docs/builders/virtualbox-iso.html

the VDI disk is done with the name of the box, but the export add the num
of the disk:

https://github.com/hashicorp/packer/blob/master/builder/virtualbox/iso/step_create_disk.go#L26

alvaro


You could override this last part and tell packer to export as OVA instead
of OVF.



On Wed, Nov 8, 2017 at 6:39 PM, CesarJ M <[email protected]>
wrote:

> Hi,
>
> I'm a beginner in use packer.
>
> I have managed to create my image using vitualbox-iso.
> Generates two files:
> imagename.ovf
> imagename-disk001.vmdk
>
> One questions is:
> How do I get a filename like imagename.vmdk? The VirtualBox does this when
> I create a VM manually.
>
> And second question:
> How do I generate a vdi file directly?
> Example: generate in output-virtualbox-iso the file imagename.vdi
>
>
> Regards
>
>
>
> --
> 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/ee08ceb7-fdc6-4ed4-a3b9-888b63d24fe9%40googlegroups.com
> <https://groups.google.com/d/msgid/packer-tool/ee08ceb7-fdc6-4ed4-a3b9-888b63d24fe9%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/CAHqq0ezL7uwucRY6t0F_6SXNLjbyKD%2BM9b7Vs--dVf%3DT9R7_%2Bg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to