SungHoon_Kim

Creating OVF image from VMWare Workstation.

Blog Post created by SungHoon_Kim Employee on Aug 24, 2015

The free version of vSphere Hypervisor and Stand-alone vCenter does not allow you to create template base images.

Still there is a very good option to deploy standard images by creating OVF image which can be done from the VMWare Workstation.

This will demonstrate how to create VMWare image and export to OVF.

 

First of all, you need to create a VM Image using VMWare Workstation.

Once you have made all necessary configurations in the VMWare Image, you can shut it down.

Then at the "File" select "Export to OVF..." menu.

ScreenHunter_119.jpg

 

Then it will take some time for it to convert the whole image to OVF format.

It generates 3 files as below.

ovf1.PNG

 

In case if your VMware Image was mounting an ISO file, that ISO file will also be part of the OVF.

In that case, you will find "RHEL6.5(x64)-iso1.iso" file in this folder.

Also, the .mf file will have one more entry line with the hash of that ISO file too.

 

 

1. vmdk file. This is the virtual HDD image.

2. mf file. This contains the SHA1 hash of the vmdk and ovf file (and iso file if it was part of the image) to ensure its integrity when copied.

    SHA1(RHEL6.5(x64).ovf)= 5bb013552f6c2c85f8f73c8b060912622a018dee

    SHA1(RHEL6.5(x64)-disk1.vmdk)= bfe5286469c3cc515699fae41c22234279e3de11

3. ovf file. This is an XML file describing the virtual machine and its devices.

     <?xml version="1.0" encoding="UTF-8"?>

     <!--Generated by VMware ovftool 4.0.0 (build-2670985), UTC time: 2015-08-24T04:58:59.998504Z-->

     <Envelope vmw:buildId="build-2670985" xmlns="http://schemas.dmtf.org/ovf/envelope/1" xmlns:cim="http://schemas.dmtf.org/wbem/wscim/1/common" xmlns:ovf="http://schemas.dmtf.org/ovf/envelope/1" xmlns:rasd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_ResourceAllocationSettingData" xmlns:vmw="http://www.vmware.com/schema/ovf" xmlns:vssd="http://schemas.dmtf.org/wbem/wscim/1/cim-schema/2/CIM_VirtualSystemSettingData" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

       <References>

         <File ovf:href="RHEL6.5(x64)-disk1.vmdk" ovf:id="file1" ovf:size="5033223168"/>

       </References>

       <DiskSection>

         <Info>Virtual disk information</Info>

         <Disk ovf:capacity="120" ovf:capacityAllocationUnits="byte * 2^30" ovf:diskId="vmdisk1" ovf:fileRef="file1" ovf:format="http://www.vmware.com/interfaces/specifications/vmdk.html#streamOptimized" ovf:populatedSize="7540899840"/>

       </DiskSection>

    ...

    ...

 

You have successfully exported your VM Image in OVF format.

 

In case if you make any changes to the ovf file, you must get the SHA1 hash and upate the .mf file.

Outcomes