dcsimg

OVF to VM and Back Again

Do you need to deliver your appliances in smaller packages or do you have an OVF and don't know how to use it? This how-to unravels the OVF mystery.

The Open Virtualization Format (OVF) is a virtual machine standard that provides a flexible, secure, portable and efficient way to package and distribute virtual machines. While often referring to virtual appliances, you can package any virtual machine in OVF and distribute it. The OVF file is an XML file that describes a virtual machine and its configuration.

So, what’s so great about OVF? Since there are so many disparate points of view in the virtualization world, a proposal was made that there should be a way to standardize virtual machine delivery in a hypervisor agnostic fashion. In 2008, the Distributed Management Task Force (DMTF) drafted the OVF Specification V1.0.0. The DMTF is a collective effort by Dell, HP, IBM, Microsoft, VMware and XenSource. Currently, VirtualBox, XenServer and VMware support OVF. This week’s entry describes the use of VMware’s OVFTool.

Download and Install

Point your browser to OVF Tool Download and download the tool for your operating system (Windows or Linux). Unzip the tool into any folder or directory. The binary or its supplied libraries needn’t be in your path to work correctly. On Linux, depending on your install, you might have some dependent packages to install before you can use ovfTool. The potential list is too long to provide here for every distribution and possible configuration.

Using ovfTool

Once you have ovfTool downloaded, unzipped and installed into your path and library locations or just used as is, where is, it’s time to put this thing to work. The ovfTool is a command line application, which means there’s no cute little graphical application for it—you’ll have to use your Unix ninja skills on this one.

Let’s say that you’ve found and downloaded as an OVF and you need to convert it to a standard VMware ESX-style virtual machine. At the command line (Xterm, Konsole) cd to the directory where ovfTool is (If it isn’t in your path) and execute the ovfTool command with the –h (help) switch.

# ./ovftool –h

All the syntax information you’ll need for the ovfTool displays for you on the screen. The simplest invocations are to convert an OVF and its corresponding disk file(s) to VMware-usable VMX and VMDK files.

# ./ovftool /downloads/Ubuntu9.04.ovf /VM/Ubuntu9.04/Ubuntu9.04.vmx

Where /downloads is a common download location and /VM is where you store your virtual machines. You’ll receive the following messages if everything goes according to plan.

Deploying /downloads/Ubuntu9.04.ovf to /VM/Ubuntu9.04/Ubuntu9.04.vmx
Converting disk /downloads/Ubuntu9.04-disk1.vmdk: XX% done.
Deployment completed successfully!

Now open the .vmx file to automatically insert the new virtual machine into inventory. If the virtual machine doesn’t start, set the execute bit on the newly created .vmx file.

Deploying OVF

If you’re in the habit of creating your own virtual appliances (Specialized virtual machines) for public consumption, you might want to consider converting them to OVF before sharing them. VMDK to OVF conversion is a compression as well as a redefinition of your virtual machine. I downloaded a virtual appliance with a 20GB configured disk that weighed in just shy of 500MB—your mileage may vary for compression that takes place during conversion.

To convert your appliances to OVF, issue the following commands.

# ./ovftool /VM/VAppliance1.01.vmx /OVF/VAppliance.ovf
Exporting /VM/VAppliance1.01.vmx to /OVF/VAppliance.ovf
Converting disk /VM/VAppliance1.01.vmdk: XX% done.
Export completed successfully!

Take a look at the amount of compression you received during the conversion. Are you impressed? Now tar and gzip your ovf and related disk files vs what you get if you simply tar and gzip your virtual machine.

Love it or hate it, OVF is meant to make everyone’s life easier—as are all standards. For those who create and deploy portable virtual machines and appliances, OVF makes sense but from a user’s perspective, often you just want to unzip a virtual machine, open it in VI Client and get to work. This extra step might seem painful, at first, but you’ll enjoy the shortened download times due to the compression ratios. Give VMware’s ovfTool a spin for yourself and let me know how you like it.

Comments on "OVF to VM and Back Again"

hkrish

Nice article on OVF. The VMware OVF Tool download link seems to point to old experimental version.

The latest new version of OVF Tool (released on May 21, 2009) is available at:

http://communities.vmware.com/community/developer/ovf

Reply

You could certainly see your skills in the work you write. The world hopes for even more passionate writers like you who aren’t afraid to say how they believe. At all times go after your heart.

Reply

hey man, the download link is garbled!

Reply

guys,

I am trying the same stuff in my local environment. The scenario is:
I have Virtual Box and VMWare Workstation. I have successfully exported a VirtualBox image to VMWare and it is working fine. Next I downloaded the OVF Tool and ran the command:

$ovftool

It converted and created 4 filed:
1. mf file
2. ovf file
3. vmdk file
4. disk image.

When I tried importing the ovf file in Virtual Box, it failed with the following error:
Failed to import appliance Debianexport.ovf.

Error reading "Debianexport.ovf": unknown element "Config" under Item element, line 48.

Result Code: VBOX_E_FILE_ERROR (0x80BB0004)
Component: Appliance
Interface: IAppliance {3059cf9e-25c7-4f0b-9fa5-3c42e441670b}

Regards

Reply

Hello would you mind letting me know which webhost you’re utilizing? I’ve loaded your blog in 3 different web browsers and I must say this blog loads a lot faster then most. Can you recommend a good hosting provider at a fair price? Cheers, I appreciate it!

Reply

I have been examinating out some of your articles and i can claim pretty clever stuff. I will make sure to bookmark your site.

Reply

Hmm it seems like your website ate my first comment (it was super long) so I guess I’ll just sum it up what I had written and say, I’m thoroughly enjoying your blog. I as well am an aspiring blog writer but I’m still new to the whole thing. Do you have any recommendations for newbie blog writers? I’d really appreciate it.

Reply

Its like you read my thoughts! You seem to know a lot about this, such as you wrote the ebook in it or something. I feel that you can do with a few p.c. to drive the message home a bit, however other than that, that is wonderful blog. A fantastic read. I’ll certainly be back.

Reply

I visited a lot of website but I believe this one contains something special in it in it

Reply

I truly appreciate this post. I have been looking everywhere for this! Thank goodness I found it on Bing. You have made my day! Thank you again

Reply

Very interesting information!Perfect just what I was looking for!

Reply

naturally like your web-site but you need to take a look at the spelling on several of your posts. A number of them are rife with spelling problems and I find it very bothersome to tell the truth however I will certainly come back again.

Reply

Below you?ll uncover the link to some websites that we feel you need to visit.

Reply

Y5KVzd I simply could not depart your web site prior to suggesting that I extremely enjoyed the standard info a person provide on your guests? Is going to be again often in order to check out new posts

Reply

Wonderful story, reckoned we could combine several unrelated information, nevertheless definitely worth taking a look, whoa did one discover about Mid East has got far more problerms as well.

Reply

Hey there. I found your website by the use of Google whilst looking for a comparable subject, your site came up. It seems to be good. I have bookmarked it in my google bookmarks to come back then.

Reply

We prefer to honor a lot of other world wide web web pages around the net, even though they aren?t linked to us, by linking to them. Under are some webpages really worth checking out.

Reply

Check beneath, are some totally unrelated internet sites to ours, having said that, they’re most trustworthy sources that we use.

Reply

Undeniably believe that which you stated. Your favorite justification appeared to be on the net the easiest thing to be aware of. I say to you, I definitely get irked while people consider worries that they just don’t know about. You managed to hit the nail upon the top and defined out the whole thing without having side-effects , people could take a signal. Will likely be back to get more. Thanks

Reply

Sites of interest we’ve a link to.

Reply

Merely a smiling visitor here to share the love (:, btw outstanding style. “Individuals may form communities, but it is institutions alone that can create a nation.” by Benjamin Disraeli.

Reply

That could be the finish of this article. Here you will come across some internet sites that we consider you will enjoy, just click the links.

Reply

The time to study or visit the subject material or internet sites we have linked to beneath.

Reply

I’ll immediately grab your rss as I can’t in finding your email subscription link or e-newsletter service. Do you’ve any? Kindly permit me realize in order that I may subscribe. Thanks.

Reply

The time to study or stop by the content or web pages we’ve linked to beneath.

Reply

Although internet sites we backlink to below are considerably not connected to ours, we feel they may be essentially worth a go as a result of, so have a look.

Reply

One of our guests a short while ago advised the following website.

Reply

We came across a cool web-site that you could take pleasure in. Take a appear in the event you want.

Reply

The information and facts talked about inside the report are a few of the ideal obtainable.

Reply

Here are some hyperlinks to web sites that we link to because we assume they may be worth visiting.

Reply

We like to honor numerous other world wide web sites around the net, even though they aren?t linked to us, by linking to them. Beneath are some webpages really worth checking out.

Reply

Very handful of internet websites that happen to be comprehensive beneath, from our point of view are undoubtedly effectively really worth checking out.

Reply

The time to read or pay a visit to the content or web pages we’ve linked to beneath.

Reply

The time to read or visit the material or websites we’ve linked to below.

Reply

One of our visitors a short while ago recommended the following website.

Reply

Sites of interest we have a link to.

Reply

Here are some links to internet sites that we link to since we feel they may be worth visiting.

Reply

Very interesting info !Perfect just what I was looking for! “Oh, I don’t blame Congress. If I had 600 billion at my disposal, I’d be irresponsible, too.” by Lichty and Wagner.

Reply

Just beneath, are several completely not related web sites to ours, on the other hand, they are surely worth going over.

Reply

We like to honor several other web web sites on the web, even when they aren?t linked to us, by linking to them. Beneath are some webpages worth checking out.

Reply

Although sites we backlink to beneath are considerably not related to ours, we really feel they may be essentially really worth a go by way of, so possess a look.

Reply

That will be the finish of this post. Here you?ll find some websites that we think you?ll enjoy, just click the links.

Reply

What i do not realize is in truth how you’re now not actually a lot more neatly-favored than you might be right now. You are so intelligent. You recognize therefore significantly in relation to this subject, made me in my view believe it from a lot of numerous angles. Its like men and women don’t seem to be involved except it’s something to accomplish with Girl gaga! Your individual stuffs outstanding. Always maintain it up!

Reply

Very handful of internet sites that come about to become in depth beneath, from our point of view are undoubtedly very well worth checking out.

Reply

The details mentioned inside the post are some of the best available.

Reply

Just beneath, are several totally not associated internet sites to ours, nonetheless, they are surely really worth going over.

Reply

Just beneath, are several absolutely not connected web-sites to ours, on the other hand, they may be certainly worth going over.

Reply

Below you?ll locate the link to some websites that we feel you need to visit.

Reply

Although web-sites we backlink to beneath are considerably not related to ours, we really feel they’re really really worth a go through, so possess a look.

Reply

Below you?ll discover the link to some websites that we consider you’ll want to visit.

Reply

Lovely just what I was looking for.Thanks to the author for taking his time on this one.

Reply

We came across a cool web-site that you just might delight in. Take a appear in the event you want.

Reply

Always a large fan of linking to bloggers that I enjoy but do not get a whole lot of link appreciate from.

Reply

Your house is valueble for me. Thanks!…

Reply

We came across a cool site that you just might love. Take a search should you want.

Reply

Here is a good Blog You might Uncover Intriguing that we encourage you to visit.

Reply

Here are some hyperlinks to web pages that we link to due to the fact we feel they’re worth visiting.

Reply

Always a significant fan of linking to bloggers that I appreciate but really don’t get lots of link love from.

Reply

One of our visitors just lately encouraged the following website.

Reply

One of our guests not long ago recommended the following website.

Reply

We came across a cool internet site which you might enjoy. Take a search in case you want.

Reply

One of our visitors recently encouraged the following website.

Reply

Although internet sites we backlink to beneath are considerably not related to ours, we really feel they’re actually really worth a go by way of, so have a look.

Reply

The time to read or visit the content or internet sites we’ve linked to below.

Reply

The time to study or pay a visit to the content material or websites we have linked to below.

Reply

Just beneath, are numerous completely not associated websites to ours, even so, they may be certainly worth going over.

Reply

Wonderful story, reckoned we could combine a few unrelated information, nonetheless seriously worth taking a appear, whoa did a single learn about Mid East has got extra problerms at the same time.

Reply

The information and facts talked about in the write-up are a number of the ideal available.

Reply

Very handful of web-sites that transpire to be detailed below, from our point of view are undoubtedly properly worth checking out.

Reply

We came across a cool internet site which you could love. Take a search if you want.

Reply

Usually posts some really exciting stuff like this. If you are new to this site.

Reply

That would be the end of this write-up. Here you?ll find some web-sites that we consider you will value, just click the hyperlinks.

Reply

Very couple of internet websites that take place to become in depth below, from our point of view are undoubtedly very well worth checking out.

Reply

Wonderful story, reckoned we could combine a couple of unrelated data, nonetheless genuinely worth taking a search, whoa did a single master about Mid East has got extra problerms at the same time.

Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>