VMware Fusion 7.1.1 OVF Tool Error + Drag & Drop

Recently I was working on a virtual machine that I wanted converted to OVA/OVF format so that I could distribute it to the field at Juniper. I downloaded the OVF Tool but note that VMware Fusion also comes with the OVF Tool. In this blogpost I will be using the OVF Tool in “/Applications/VMware Fusion.app/Contents/Library/VMware OVF Tool” directory. This blog post will cover a fancy way to convert your VM as well as looking at the errors I received.

When I ran the “ovftool” command, I received an error… “Failed to open file: /XX/XX/XX/XX.vmx”.

error g

I tried running it as sudo and received the error… “SSLLoadSharedLibraries: Failed to load OpenSSL libraries…”

sudo error

Note1: in these examples I used “–acceptAllEulas” but I was told this was not necessary.

Note2: In the sudo example, I also did not include a filename at the end of the command, but this is not what caused the error because…

Note3: I was told that if I was going to run as sudo, I need to move the libraries in my directory, up one level.

Argh… I was frustrated because I also could not run the command from the actual VMware OVF Tool download.

I posted the issue on the VMware Communities and I sent the concern out on Twitter. Thank you to @CXI & @seanluce for providing input. The @VMwareFusion twitter handle got back to me as well and allowed me to send an email to support… Talk about #PewPew! I am thankful!

What did I learn as the nice Technical Support Engineer fixed my issue…? I did not have the right path to my .vmx file. Yup… it is always the simple thing (like my grey screen of death issue Fusion issue). This also means that all the blogs I checked out also did not have it correctly.
You know what else I learned…? You can drag and drop in to the command line. Now I am sure you are saying “You didn’t know that…?” (which personally I think is one of the rudest things you can say to someone) but clearly I did not know that. I have never seen anyone do that… anywhere… anytime. Which also means that someone else out there did not know and now we have a blog post. So what do I mean by drag and drop for all those people like me that just did not know… Let me show you.

First let’s open the files in Finder. This is easily done via Fusion. You can right mouse click on the VM you want to convert and select “Show in Finder”. 

Show-in-finder

You will get the VM package, so you will need to highlight your VM and right mouse click and select “Show Package Contents”.

Show-Package-Contents

Once the package is open, proceed to the XXX.vmx file.

Highlight-the-VMX-file

Now for a second, lets go back to the terminal, and make sure we are in “/Applications/VMware Fusion.app/Contents/Library/VMware OVF Tool” directory. If you do an “ls” you will see ovftool in there.
At the CLI, type “./ovftool “

And then select the .vmx file you want converted, from Finder and drag and drop into the CLI

drag and drop

and it puts in the ENTIRE path…

correct path
If I knew this before, I would have saved an entire day!

The next step is to state where you want the OVA/OVF file to be placed and what you want it named. In this case. I created an “OVA” folder on my desktop of the MAC. I once again dragged and dropped the folder on the CLI

folder

and voila… it is there!

folder input

All I had to do was add the file name. In this case I named it “SpaceDemo.OVA”.

file name

SUCCESS!!!

Success2
And that’s it!! Pretty sweet and easy right? I hope this post helps you… it would have helped me two days ago.

#PewPew

Advertisements

, ,

  1. #1 by Inquisitive on February 22, 2016 - 08:04

    Thanks. Your post helped a lot.

  2. #2 by lonawsmax on March 18, 2016 - 11:12

    Thanks – this worked a treat. Had me stumped for ages until I found your blog.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: