26

I am currently running VMware Fusion 6 on 10.9. I know that in ESX, and I believe even VMware Workstation, you can export a VM to a OVF file and redeploy on VirtualBox, VMware Workstaion/Fusion, and ESX.

My question is, is there a way I can make a OVF file on Fusion for the VM I want to deploy or am I out of luck?

Jeff B
  • 8,572
  • 17
  • 61
  • 140
user181895
  • 317
  • 1
  • 4
  • 9

4 Answers4

18
cd /Applications/VMware\ Fusion.app/Contents/Library/VMware\ OVF\ Tool/

./ovftool  <PATH TO SOURCE VM's .vmx file>   <PATH TO OUTPUT ova file>

# example

./ovftool --acceptAllEulas ~/Documents/Virtual\ Machines.localized/CentOS\ 6.5.vmwarevm/CentOS\ 6.5.vmx      /tmp/CentOS6.5.ova
marathon
  • 7,881
  • 17
  • 74
  • 137
  • 1
    for Fusion 8. `sudo ln -sf /Applications/VMware\ Fusion.app/Contents/Library/VMware\ OVF\ Tool/ovftool /usr/local/bin/` – Dyno Fu Jan 18 '16 at 07:12
  • 2
    If your virtual machine has a `.vmwarevm` extension you need to reference the `.vmx` file inside when using ovf tool. Right click on the virtual machine and select 'Show Package Contents'. Inside you will find the `.vmx` file to reference with ovf tool. – GForce Feb 12 '19 at 23:57
13

./ovftool --acceptAllEulas /Users/admin/Documents/Virtual Machines.localized/IDM.vmwarevm/IDM.vmx ~/Users/admin/Documents/IDM.ova

Rk1
  • 158
  • 5
  • 1
    --acceptAllEulas eq Accepts all end user license agreement's, Then you provide path of the .vmx /.ova file to create. This process will take some time. – Rk1 Jan 02 '14 at 15:21
  • 1
    my files have extension -- .vmwarevm and it gives this error - Opening OVF source:xyz.vmwarevm.ovf Error: Failed to open OVF descriptor Completed with errors – inquisitive Feb 22 '16 at 12:49
  • You need to reference the `.vmx` file inside the `.vmwarevm` package. On Mac, right click on your virtual machine and select 'Show Package Contents'. Inside you will find the `.vmx` file that you need to reference with ovf tool. – GForce Feb 12 '19 at 23:55
2

If you have upgraded VMware Fusion, you can export ova in GUI. As of VMware Fusion 7.1.3, you can do this in File->Export to OVF, like this.

  • 2
    This does provide an answer. He has explained how to do it and provided a link for corroboration. – Inspector Squirrel Dec 21 '15 at 16:24
  • 3
    I believe you must be using VMware Fusion Pro. My just-upgraded version to 8.0 does not have a File -> Export to OVF option. – Chris K Mar 01 '16 at 14:54
  • Thank you for pointing this out. To anyone else having troubles an immediate fix may be to download a trial of vmware fusion 10 pro, which does have export built into the file menu. Saved the day for me. – Eric Jones Mar 19 '18 at 23:47
0

Download the appropriate installer from VMware's site

For my OSX setup, rather than the convoluted white spaced pathing to the tool, I created a symlink so my $PATH could pick it up

sudo ln -s /Applications/VMware\ OVF\ Tool/ovftool /usr/local/bin/ovftool

And then ran ovftool like marathon

Community
  • 1
  • 1
JimSander
  • 61
  • 8