-
Notifications
You must be signed in to change notification settings - Fork 11
vmware_ovf Box Format
We recently introduced a new Vagrant Box format called vmware_ovf
to our provider suite for VMware that is now comprised of vagrant-vcloud
, vagrant-vcenter
and the new vagrant-vcloudair
.
This Box format is now the preferred and default format for all our providers, legacy vcloud
and vcenter
boxes format are still accepted but please consider moving to the new format as soon as possible.
Having a single Box for ALL our VMware providers enables much better portability with less builds and images.
Boxes built for vmware_ovf
are supported starting from:
-
vagrant-vcloud version
≥ v0.4.2
. -
vagrant-vcenter version
≥ v0.3.0
. -
vagrant-vcloudair version
≥ v0.5.0
.
The current format for our box is the following:
- OVF export of a VM (including manifest).
- Metadata file with
{"provider": "vmware_ovf"}
. - Default Vagrantfile for the box.
A typical export of a vmware_ovf
box looks like this:
Vagrantfile
metadata.json
precise32-disk-0.vmdk
precise32.mf
precise32.ovf
All the VMs built for vmware_ovf
must have VMware Tools installed, that is paramount for the correct behavior of the Vagrant provider.
The best option is to use Packer, Packer is a tool that enables you to build multiple operating system images from a single source.
We created a post-processor to automatically build vmware_ovf Vagrant Boxes using Packer, the post processor is available on GitHub at gosddc/packer-post-processor-vagrant-vmware-ovf.
If you want to create the VM manually, it can be easily converted to OVF using ovftool
that is downloadable from the VMware website.
The recommended command usage is:
ovftool --sourceType=VMX --targetType=OVF source.vmx target.ovf
Please do not use compression while creating the OVF as it is not supported at the moment.