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"

Check beneath, are some entirely unrelated websites to ours, having said that, they may be most trustworthy sources that we use.

Although web-sites we backlink to beneath are considerably not connected to ours, we feel they may be really really worth a go through, so have a look.

Every after in a though we decide on blogs that we study. Listed below are the most recent web pages that we decide on.

Although sites we backlink to below are considerably not associated to ours, we really feel they’re truly really worth a go via, so possess a look.

Just beneath, are many absolutely not connected web pages to ours, however, they are certainly worth going over.

Just beneath, are quite a few totally not associated internet sites to ours, however, they may be certainly worth going over.

Here is an excellent Blog You might Locate Intriguing that we encourage you to visit.

Here are some links to web pages that we link to due to the fact we consider they are really worth visiting.

I simply want to tell you that I am just newbie to weblog and actually liked this blog site. Most likely I’m planning to bookmark your site . You amazingly come with fantastic article content. Many thanks for sharing your blog.

Please check out the web-sites we comply with, such as this a single, because it represents our picks in the web.

Paragraph writing is yet another fun, when you be familiar with then you may write if not it can be difficult to write.

Also visit my blog post: SuziEZabek

Every after in a though we decide on blogs that we study. Listed beneath are the most recent web-sites that we opt for.

Every the moment inside a even though we opt for blogs that we study. Listed beneath would be the latest web pages that we decide on.

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

We came across a cool web-site which you may possibly love. Take a appear if you want.

The time to read or take a look at the content or web-sites we’ve linked to beneath.

Here are a few of the websites we advise for our visitors.

Every the moment inside a when we opt for blogs that we read. Listed beneath would be the newest sites that we decide on.

That will be the end of this article. Right here you will locate some internet sites that we believe you?ll appreciate, just click the links.

Wonderful story, reckoned we could combine a couple of unrelated information, nevertheless genuinely really worth taking a search, whoa did one master about Mid East has got extra problerms also.

Check below, are some completely unrelated sites to ours, nonetheless, they are most trustworthy sources that we use.

Wonderful story, reckoned we could combine a handful of unrelated information, nonetheless genuinely worth taking a look, whoa did a single find out about Mid East has got more problerms at the same time.

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

Below you?ll come across the link to some sites that we consider you’ll want to visit.

Here are some hyperlinks to web-sites that we link to due to the fact we believe they may be worth visiting.

Very handful of internet websites that transpire to become detailed beneath, from our point of view are undoubtedly effectively worth checking out.

That could be the end of this report. Right here you?ll discover some sites that we feel you will enjoy, just click the links.

Here are a number of the web pages we advocate for our visitors.

Check below, are some completely unrelated web-sites to ours, having said that, they may be most trustworthy sources that we use.

The information talked about within the post are several of the most effective accessible.

Always a massive fan of linking to bloggers that I appreciate but do not get a good deal of link love from.

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

Usually posts some very fascinating stuff like this. If you are new to this site.

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

Here are some links to web-sites that we link to for the reason that we assume they may be really worth visiting.

Wonderful story, reckoned we could combine a number of unrelated data, nonetheless truly really worth taking a search, whoa did one particular find out about Mid East has got a lot more problerms also.

Here are some of the websites we advocate for our visitors.

Please go to the websites we comply with, like this one, as it represents our picks from the web.

That will be the finish of this write-up. Here you will find some internet sites that we believe you?ll value, just click the links.

We like to honor numerous other internet web sites on the web, even if they aren?t linked to us, by linking to them. Underneath are some webpages worth checking out.

Check beneath, are some completely unrelated web sites to ours, even so, they’re most trustworthy sources that we use.

Please visit the internet sites we follow, which includes this 1, because it represents our picks in the web.

We prefer to honor many other internet internet sites on the web, even when they aren?t linked to us, by linking to them. Below are some webpages worth checking out.

Always a big fan of linking to bloggers that I really like but really don’t get a lot of link appreciate from.

I’d perpetually want to be update on new articles on this website , bookmarked! .

Here are some hyperlinks to websites that we link to because we assume they are worth visiting.

Usually posts some extremely fascinating stuff like this. If you?re new to this site.

Below you will obtain the link to some web-sites that we believe it is best to visit.

Just beneath, are quite a few absolutely not connected internet sites to ours, having said that, they’re surely really worth going over.

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

Leave a Reply