Two questions about use a virtualbox-iso builder

1,064 views
Skip to first unread message

CesarJ M

unread,
Nov 8, 2017, 12:39:16 PM11/8/17
to Packer
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



Alvaro Miranda Aguilera

unread,
Nov 10, 2017, 4:45:16 AM11/10/17
to packe...@googlegroups.com
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 (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.


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


alvaro


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



--
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/ee08ceb7-fdc6-4ed4-a3b9-888b63d24fe9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Alvaro

CesarJ M

unread,
Apr 25, 2018, 4:03:26 AM4/25/18
to packe...@googlegroups.com
Hi,

Many thank to your help!
The whole picture is this:
https://github.com/cesarjorgemartinez/automatevmimages

Here (when I have a bit of time), I build Linux image minimal with Windows. Only by now build centos images, I would like to be able to build other types of Linux, Ubuntu, etc.

Regards,
Cesar Jorge


Libre de virus. www.avast.com

You received this message because you are subscribed to a topic in the Google Groups "Packer" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/packer-tool/IoijvyOgixk/unsubscribe.
To unsubscribe from this group and all its topics, 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/CAHqq0ezL7uwucRY6t0F_6SXNLjbyKD%2BM9b7Vs--dVf%3DT9R7_%2Bg%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages