VMware Communities
xwang2713
Contributor
Contributor

Import ova from command-line

Is there a way to import ova file (created with vagrant/virtualbox) from command-line? For example VMware VIX API, etc. I read VIX API docs but cannot find related API. All the function requires *.vmx file which is not available inside ova file (tar).

Tags (1)
Reply
0 Kudos
2 Replies
WoodyZ
Immortal
Immortal

You can use ovftool and if it's not included in the product you're using then have a look at: OVF Tool Documentation

Reply
0 Kudos
xwang2713
Contributor
Contributor

I tried ovftool to generate vmx from ovf. But vagraent generated ovf based on virtualbox. ovftool cannot process the ovf.

Actually the ova can be imported to VMPlayer. But there is a warning for ovf not conformance. User can click "Retry" to workaround it. We want to eliminate the warning by repackage the ova file. The reliable solution we found so far is 1) import it to VMPlayer. 2) modify vmx file 3) recreate ova file from vmx with ovftool. We want to automate the process. If can not find a VMware API to do it we may try UI automation.

Reply
0 Kudos