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”.
I tried running it as sudo and received the error… “SSLLoadSharedLibraries: Failed to load OpenSSL libraries…”
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.
You will get the VM package, so you will need to highlight your VM and right mouse click and select “Show Package Contents”.
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
and it puts in the ENTIRE path…
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
and voila… it is there!
All I had to do was add the file name. In this case I named it “SpaceDemo.OVA”.