I have worked out that this must be possible because of the inclusion of converter-cli.exe with Converter 5.0.1 Build 875114, plus I've got very close but not quite close enough! I have vCenter 5.0 and ESXi 5.0.0 hosts.
I am using the following XML and it's submitting the job to Converter with what looks like to be the correct details but fails straight away with the error:
FAILED: The source configuration file is invalid, corrupted or not recognized.
I've checked logs in the following locations but nothing gives me any clues as to what isn't quite right:
C:\ProgramData\VMware\VMware vCenter Converter Standalone\logs
C:\Users\All Users\VMware\VMware vCenter Converter Standalone\logs
C:\Users\XXAdmin\AppData\Local\VMware\VMware vCenter Converter Standalone Client\Logs
Anywhere else I can look?
My XML file (p2v.xml):
xsi:schemaLocation="http://www.vmware.com/v2/sysimage/p2v p2vJob.xsd" xsi:type="P2VJob">
<hostedSpec networkPassword="domainpassword" networkUsername="domain\username" path="PHYSICALSERVER"/>
<managedSpec datastore="Datastore XXXX" folder="Temp" host="HOST1" resourcePool="" vmName="NEWVM">
<creds host="VCENTER" port="0" type="sessionId" username="domain\username" password="domainpassword" />
<importParams diskType="VMFS" preserveHWInfo="true" removeSystemRestore="false" targetProductVersion="PRODUCT_MANAGED">
I'm running the command: C:\Program Files (x86)\VMware\VMware vCenter Converter Standalone>converter-cli -s C:\Temp\p2v.xml
I feel sure that this is just a minor issue with the xml input configuration file and if I knew the correct syntax or had an example file I could get it working. I can't find one anywhere. Should the datastore be the name vSphere/ESXi knows it as rather than the name I see in the vSphere Client?
That's not going to be easy then is it, without any experience of .NET / Java. I wouldn't even know where to start and I do have this way working now, I just want to know more about the syntax so I can fine tune it.
When you say no more supported is it removed from Converter 5.1 and 5.5 then?
If you write a command line tool that uses Converter SDK, you could. There is no such binary coming with the installation.
There is sample code in Java and C# which can be used as a basis for such a tool.
There is. It's in the C:\Program Files (x86)\VMware\VMware vCenter Converter Standalone folder. I'm using it and it works, it's just I want to customise it a little more and don't know the syntax for the xml file.