VMware Cloud Community
dsearcy11
Contributor
Contributor

Convert ovf template to vsx

Hello ,

I used the vcenter 4.1 console to Export OVF Template.  We need to be able to load this template in vmware player.  I downloaded ovftool and tried to convert the OVF template so that it could be run in Vmware player.

This is the command I am issuing to convert the template based off of the OVFTOOL PDF.  This, to my understanding should convert the OVF to a VMX and drop it in the D:\vms folder.  There are 4 disks in this VM server

Input

C:\Program Files\VMware\VMware OVF Tool>ovftool -tt=vmx D:\server_name\server_name.ovf D:\vms\

Output:

Opening OVF source: D:\server\server.ovf
The manifest validates
Opening VMX target: D:\vms\
Warning:
- Target does not support CPU validation.
Error:
-
Completed with errors

Needless to say the VMS folder is getting created but nothing else is being converted. 

Any help would be greatly appreciated.

Thanks,

DS

Reply
0 Kudos
8 Replies
admin
Immortal
Immortal

could you try run ovftool with debug log. Add "--X:logFile=C:\PATH_TO_WHERE_LOG_WILL_BE_PLACED --X:logLevel=trivia"
and attached it here?
eske
Reply
0 Kudos
dsearcy11
Contributor
Contributor

Thanks for your quick reply. The log file is attached.

C:\Program Files\VMware\VMware OVF Tool>ovftool -tt=vmx --X:logFile=C:\logs --X:logLevel=trivia D:\server_name\server_name.ovf D:\vms\
Opening OVF source: D:\server_name\server_name.ovf
The manifest validates
Opening VMX target: D:\vms\
Warning:
- Target does not support CPU validation.
Error:
-
Completed with errors
Reply
0 Kudos
admin
Immortal
Immortal

could you try to remove this from the OVF by adding "<!--" before and "-->" after the CpuCompatibilitySection. It should look like:

<!-- <vmw:CpuCompatibilitySection>

       <Info>CPU compatibility constraints</Info>
       <vmw:Level vmw:ecx="R---:-R--:--R-:-R-0:----:----:---H:-R--" vmw:level="1" />
       <vmw:Level vmw:ecx="R---:----:----:----:----:----:----:R---" vmw:level="1" vmw:vendor="amd" />
       <vmw:Level vmw:edx="----:R---:----:----:----:----:----:----" vmw:level="-2147483647" />
       <vmw:Level vmw:ecx="----:----:----:----:--RR:-RR-:----:----" vmw:edx="----:----:----:----:----:----:----:----" vmw:level="-2147483647" vmw:vendor="amd" />
     </vmw:CpuCompatibilitySection> -->

then delete the *.mf file and retry.

eske

Reply
0 Kudos
dsearcy11
Contributor
Contributor

This is the new output and log file.

Error:
- Line 29: Could not parse the document: 'not well-formed (invalid token)'.
Completed with errors
Thanks for your help!
Reply
0 Kudos
MrDuggan
Contributor
Contributor

Commenting the section out caused the "invalid token" error.

make a backup of the .ovf

Delete the CpuCompatibilitySection section instead

run sha1sum on the .ovf file

Update the .mf file to have the correct checksum value for the line that has the ovf.

Then run the ovtool and it should work.

Reply
0 Kudos
khuphuc
Contributor
Contributor

thanx, work for me on Mac Lion Smiley Happy

Reply
0 Kudos
Zafer
Contributor
Contributor

Thank you very much (MrDuggan), your remedy worked for us as well (on 64bit Linux)

Best regards

Zafer

Reply
0 Kudos
cartmigration
Contributor
Contributor

Thank you Mr. Duggan, your help supported me a lot!

Reply
0 Kudos