VMware Cloud Community
vmware_user14
Contributor
Contributor

Failed to open OVF descriptor

Hi All,

I am trying to convert vmdk file to ovf format using command line. I am using the below command:

# ovftool my_vm.vmdk new.ovf

   Opening OVF source: my_vmdk.vmdk

   Error: Failed to open OVF descriptor

   Completed with errors

Not sure whats wrong in this command. Please help!

Thanks!

0 Kudos
8 Replies
Anjani_Kumar
Commander
Commander

must follow below things before running the ovf tool.

1. Open tool wiht "Run As Administrator".

2. Provide the full path for your vm and output file.

e.g. >ovftool c:\vm\myVM.vmx c:\OVF\myVM.ovf


Follow the blog.

Terremark Worldwide

Please consider marking this answer "correct" or "helpful" if you found it useful. Anjani Kumar | VMware vExpert 2014-2015-2016 | Infrastructure Specialist Twitter : @anjaniyadav85 Website : http://www.Vmwareminds.com
vmware_user14
Contributor
Contributor

Sorry I didn't specify earlier that I am trying the above command on Linux environment.

0 Kudos
Anjani_Kumar
Commander
Commander

try it with windows or mac if you can. and see if it works.

Please consider marking this answer "correct" or "helpful" if you found it useful. Anjani Kumar | VMware vExpert 2014-2015-2016 | Infrastructure Specialist Twitter : @anjaniyadav85 Website : http://www.Vmwareminds.com
0 Kudos
vmware_user14
Contributor
Contributor

Hi,

As suggested, I followed the same steps mentioned above on windows system.

Unfortunately, it gives same error as Linux Smiley Sad


C:\Program Files\VMware\VMware OVF Tool> ovftool.exe d:\myVM.vmdk d:\myVM.ovf

Opening OVF source: d:\myVM.vmdk

Error: Failed to open OVF descriptor

Completed with errors

Thanks!

0 Kudos
Anjani_Kumar
Commander
Commander

seems like your ovf descriptor file is missing that is the reason for this erro.

Did you tried creating the ovf via using wokrstation or esxi. ?

Please consider marking this answer "correct" or "helpful" if you found it useful. Anjani Kumar | VMware vExpert 2014-2015-2016 | Infrastructure Specialist Twitter : @anjaniyadav85 Website : http://www.Vmwareminds.com
0 Kudos
vmware_user14
Contributor
Contributor

Using ESX it works. I am basically trying to automate file conversion process from vmdk to ovf format using ovftool.

Any idea how ovf descriptor file can be created?

It would be of great help if you can share some other possible ways to do this!

Thanks!

0 Kudos
Anjani_Kumar
Commander
Commander

The VMDK file is the actual virtual disk, an ovf file is just a settings file (plain text), that VMWare products (like ESXi Server) and other virtualization software (like Virtualbox) can use when importing the VM.

You may have an existing settings file (like a .vmx) which you can convert into ovf format using VMware's tool 'ovftool': http://communities.vmware.com/community/vmtn/vsphere/automationtools/ovf

There's quite a lot of options, which are detailed here in the user guide:http://www.vmware.com/support/developer/ovf/ovf20/ovftool_201_userguide.pdf

Please consider marking this answer "correct" or "helpful" if you found it useful. Anjani Kumar | VMware vExpert 2014-2015-2016 | Infrastructure Specialist Twitter : @anjaniyadav85 Website : http://www.Vmwareminds.com
anand_punjabi
Contributor
Contributor

Thanks. It worked for me

Tags (1)
0 Kudos