Today a great client asked me how to export a VM to an OVF or OVA so he could transport the VM to another environment. Thatâ€™s a great question! It had been a while since I have done this so I researched the best way on vSphere 5.0 and 5.1 to perform this. Things have definitely gotten easier since the last time I did this!
But, letâ€™s define these two file formats first. An OVF file is a set of files (they refer to it technically as a folder), a machine definition and one or more virtual disks, that can be imported into a virtualization environment. An OVA is a single file that contains everything.
First, weâ€™ll try using the standalone VMware Converter application. It can convert VMs to OVF.
Oh wait. I canâ€™t.
vCenter Converter 5.0 does not work on a vSphere 5.1 environment, and an updated version of the vCenter Converter has not yet been released. In fact, it crashes when accessing the environment. They even have a KB article on it â€“ located here. I know they’ll get to this soon, but for now, this option is out.
OK, letâ€™s try something else. The tool we can use is called the VMware Open Virtualization Format Tool, or OVF Tool. It is available for download here.
The instructions for how to use this tool are located here.
Ok. Thatâ€™s a bit cumbersome and time consuming, but is very powerful.
Orâ€¦ letâ€™s go the easy route.
Select a virtual machine that you wish to export to an OVF or OVA.
Go to the File menu, select Export, then Export OVF Template.
Adjust the name as necessary, select a directory to save the files to, and then select either OVF or OVA. I prefer OVA since it keeps things all in one container. Enter a description if necessary. Iâ€™d probably uncheck the â€˜Include image files attached to floppy and CD/DVD devices in the OVF packageâ€™ because if I wanted to include those, Iâ€™d just copy those separately.
The process starts working and copies over the files to your save directory.Â Thatâ€™s it!
To import them, itâ€™s even simpler. Select File, Deploy OVF Template, and select your OVA file.
Walk through the wizard for VMware cluster, disk placement and configuration, and machine name, and youâ€™re good to go!