VMware vCenter

 View Only
  • 1.  error in submitting job to VMware converter through SDK

    Posted Sep 26, 2012 12:55 AM

    HI,

          I modified the sample java program to create a VM in F:\ drive and added couple parameters to accept directory from the properties file instead of saving the converted VM to vCenter. However, I get error saying it cannot recognize the configuration file. Anyone can help on this error? Thank you

    Error from the sample program:

    AxisFault
    faultCode: ServerFaultCode
    faultSubcode:
    faultString: The source configuration file is invalid, corrupted or not recogni
    zed.
    faultActor:
    faultNode:
    faultDetail:
            {urn:converter}ConverterImportSourceInvalidConfigInfoFault:<source>F:\VM
    Image\VM1\WIN-PC</source>
    The source configuration file is invalid, corrupted or not recognized.
            at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
            at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
            at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Sou
    rce)
            at java.lang.reflect.Constructor.newInstance(Unknown Source)
            at java.lang.Class.newInstance0(Unknown Source)
            at java.lang.Class.newInstance(Unknown Source)
            at org.apache.axis.encoding.ser.BeanDeserializer.<init>(BeanDeserializer
    .java:104)

    My properties file looks like this:

    physicalsource.address=192.168.1.121

    physicalsource.username=192.168.1.121\\administrator

    physicalsource.password=**********

    physicalsource.ostype=windowsOs

    physicalsource.agentport=9089

    physicalsource.reboot=false

    vcserver.address=WIN-PC

    vcserver.targetname=WIN-PC

    vcserver.username=192.168.1.121\\administrator

    vcserver.password=**********

    vcserver.directory=F:\\VMImage

    conversion.job.name=P2VSDKJob1

    conversion.job.description=This is a Live Windows P2V job from SDK

    conversion.vmtocreate.name=VM1

    conversion.vmtocreate.vcpu=1

    conversion.vmtocreate.memory=512

    converterserver.address=192.168.1.121

    converterserver.username=WIN-PC\\administrator

    converterserver.password=*********

    Thank you.

    ETgoh



  • 2.  RE: error in submitting job to VMware converter through SDK

    Posted Sep 26, 2012 01:54 PM

    The configuration file is the .vmx file of the source. The error contains: <source>F:\VMImage\VM1\WIN-PC</source>. I see no 'vmx' in this file path. Is it by chance "F:\VM Image\VM1\WIN-PC\WIN-PC.vmx" ?

    HTH

    Plamen



  • 3.  RE: error in submitting job to VMware converter through SDK

    Posted Sep 28, 2012 08:40 AM

    Thanks. That was the problem, i miss out the .vmx.