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.
Procedure
- To remove the vTPM, perform the following steps:
- Select the required virtual machine in the Virtual Machine Library window and click Settings.
- Under Removable Devices in the Settings window, click Trusted Platform Module.
- Click Remove Trusted Platform module.
- To confirm the removal of the vTPM, click Remove.
- To remove the virtual machine encryption, perform the following steps:
- Select the required virtual machine in the Virtual Machine Library window and click Settings.
- Under Other in the Settings window, click Encryption.
- Select Virtual machine is not encrypted.
- Type the password for the virtual machine.
- Click OK.
- 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>