You can manually export a virtual machine with vTPM device from Fusion Pro to Open Virtualization Format (OVF) using the command line of OVF Tool 4.5 or later. The OVF Tool is bundled with Fusion. You can export to both .ovf and .ova files.

A virtual machine with vTPM is always encrypted. You cannot directly convert a virtual machine with vTPM device in Fusion Pro from VMware runtime (.vmx) format to OVF format because the OVF Tool does not support export of an encrypted virtual machine. Before you proceed with the manual export, you must manually remove the vTPM device and decrypt the virtual machine. After you decrypt the virtual machine, export the virtual machine to OVF with a vTPM placeholder.

The following steps guide you through the process of manually removing the vTPM, decrypting the virtual machine, and then exporting to OVF using command line.

Prerequisites

  • Remove any application in the virtual machine that uses the vTPM device.
    Note: If you do not remove an application in the virtual machine that uses the vTPM, the application might not function properly when you later import the virtual machine with the vTPM device.
  • Verify that the virtual machine is powered off.

Procedure

  1. To remove the vTPM, perform the following steps:
    1. Select the required virtual machine in the Virtual Machine Library window and click Settings.
    2. Under Removable Devices in the Settings window, click Trusted Platform Module.
    3. Click Remove Trusted Platform module.
    4. To confirm the removal of the vTPM, click Remove.
  2. To remove the virtual machine encryption, perform the following steps:
    1. Select the required virtual machine in the Virtual Machine Library window and click Settings.
    2. Under Other in the Settings window, click Encryption.
    3. Select Virtual machine is not encrypted.
    4. Type the password for the virtual machine.
    5. Click OK.
  3. To export the virtual machine to OVF with an added vTPM placeholder, use the following command in the OVF Tool bundled with Fusion:
    main % '/Applications/VMware Fusion.app/Contents/Library/VMware OVF Tool/ovftool' --X:logLevel=verbose --exportFlags=extraconfig --allowExtraConfig --addDevice:vtpm '<path of the virtual machine vmx file with the file name>' '<path to export the ovf file with the file name>'
    The following is an example command to export a virtual machine named vm:
    main % '/Applications/VMware Fusion.app/Contents/Library/VMware OVF Tool/ovftool' --X:logLevel=verbose --exportFlags=extraconfig --allowExtraConfig --addDevice:vtpm '/Users/<userid>/Virtual Machines.localized/vm.vmwarevm/vm.vmx' '/Users/<userid>/Virtual Machines.localized/ovfExportPath/vm.ovf'
    Note: Fusion does not provide a graphical user interface to export a virtual machine with a vTPM placeholder. A user must use the command line to export a virtual machine with a vTPM placeholder.
    After you export the virtual machine, the OVF file shows the added vTPM placeholder in the following format:
    <Item ovf:required="false">
     <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
     <rasd:ElementName>Virtual TPM</rasd:ElementName>
     <rasd:InstanceID>14</rasd:InstanceID>
     <rasd:ResourceSubType>vmware.vtpm</rasd:ResourceSubType>
     <rasd:ResourceType>1</rasd:ResourceType>
    </Item>