Quantcast
Channel: VMware Communities : Popular Discussions - VMware vCenter Converter SDK
Viewing all 6223 articles
Browse latest View live

vCenter Converter API with Ruby

$
0
0

Hi,

 

In the SDK archive, I have seen some examples how to use the Converter API with Java and dotNet.

However, I'm not familiar with those languages and the examples are not use to me.

Still I want to automate some image converting processes (import/export images from vSphere) and for that I'm using Ruby scripts.

Is it possible to use the converter API with Ruby? If it is, some examples will be great as well.

 

Thanks


Monitor the progress of the submitted job -ConverterServerConversionManagerCreateJob

$
0
0

Hi All,

 


I am trying to  perform a p2v conversion using the converter 5.5 sdk . I was able to set all the properties and submit the job.

 


I have used ConverterServerConversionConversionJobInfo result = converterService.ConverterServerConversionManagerCreateJob(converterServerContent.conversionManager,jobSpec,null);  to submit the job.

 


I wanted to know is there a way we can monitor the progress of the task in percentage and the status of the task .

 


When i check the

 


ConverterServerConversionConversionJobInfo   class also has MOR to the job and scheduled task . but i am currently struck at how to use them to find the progress of the submitted job.

 


Thanks,

 


Kiran

Sample in sdk fails to connect to VCenter

$
0
0

Hi,

 

I tried to run the C# sample that comes with the Vmware vcenter converter SDK. But i ended up with the following error,

 

D:\GitHub\Upload\Upload>ConverterSamples.exe submitwinp2vjob.properties

Caught Exception :  Name : WebException Message : The request failed with HTTP s

tatus 400: Bad Request. Trace :    at System.Web.Services.Protocols.SoapHttpClie

ntProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream

responseStream, Boolean asyncCall)

   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodN

ame, Object[] parameters)

   at ConverterApi.ConverterService.ConverterRetrieveServiceContent(ManagedObjec

tReference _this)

   at ConverterSamples.ConverterConnection.Connect(String serverUrl, String user

name, String password)

ERROR: Failed to Connect to Converter Server.

 

Server URL and username and password are passed correctly. Please help me on this.

 

Thanks a lot

ManagedObjectNotFoundFault

$
0
0

I am trying to reconfiure a VM  using converter API.

This is code snippet

 

      ConverterComputerSpecManagedVmLocation sourceVM= new  ConverterComputerSpecManagedVmLocation();
         ConverterVimConnectionSpecLoginVimCredentials vimCredentials =
                                  new ConverterVimConnectionSpecLoginVimCredentials();
         vimCredentials.setPassword(_vcPassword);
         vimCredentials.setUsername(_vcUsername);
         ConverterVimConnectionSpec vimConnectionSpec = new  ConverterVimConnectionSpec();
         vimConnectionSpec.setHostname(_vcServerName);
         vimConnectionSpec.setCredentials(vimCredentials);
         System.out.println("_vcServerName"+vimConnectionSpec.getHostname());
         vimConnectionSpec.setVerifyPeer(false);
         vimConnectionSpec.setSslThumbprint(null);
         sourceVM.setVimConnect(vimConnectionSpec);
         com.vmware.converter.ManagedObjectReference vmMoRef= new  com.vmware.converter.ManagedObjectReference();
         vmMoRef.setType ("VirtualMachine");
        vmMoRef.set_value  (_vcVMToCreate);
        sourceVM.setVm(vmMoRef);
         //sourceVM.setUuid(getVMUUID());
        ConverterComputerSpec  liveSourceSpec = new ConverterComputerSpec();
             liveSourceSpec.setLocation(sourceVM);
        return liveSourceSpec;

 

This is the  error I get.

 

AxisFault
faultCode: ServerFaultCode
faultSubcode:
faultString: The  request refers to an object that no longer exists or has never
existed.
faultActor:
faultNode:
faultDetail:
         {urn:converter}ManagedObjectNotFoundFault:<vim25:obj  type="ManagedEntity
">P2V1</vim25:obj>

 

 

_vcVMToCreate  is passed a value P2V1

 

The VM exists but API cant find it.

Howto - Incremental conversions

$
0
0

Hi!

 

Has anybody done that with the new converter API (4.3) and likes to give me a starting point?

Documentation http://www.vmware.com/pdf/convsa_43_guide.pdf is quite poor on that one (page 25):

 

For incremental images, up to 16 incremental backups are supported.

 

and thats it ;-D

 

 

Tos2k

Error: Could not find or load main class org.apache.axis.wsdl.WSDL2Java Failed.

$
0
0



Hi,


when i'm trying to execute this comand, i'm getting the below error. i'm using VMware-converter-sdk-5.5.0-1362012


C:\P2V_Automation\VMware-converter-sdk-5.5.0-1362012\sdk\samples\Axis>build


Generating converter stubs from wsdl


Error: Could not find or load main class org.apache.axis.wsdl.WSDL2Java


Failed.


i set environment variables as 


AXISHOME  as C:\P2V_Automation\axis-src-1_4\axis-1_4;


and javahome as C:\Program Files\Java\jdk1.8.0_20;


i'm unable to figure, where i did a mistake, please help me.


i attached the batch file which i trying to run.


Thanks in advance

P2V Conversion error on VMware Converter

$
0
0

Hi,

 

I was converting a Physical Linux RHEL3.0 server to Virtual but it din't go through,i tried with all the version available & with latest VMware Converter5.0. While converting it goes upto 98% & fails with below error msg.

 

2013-03-08T11:51:11.127-08:00 [05476 verbose 'JobListDataProvider'] Adding job: (converter.server.conversion.ConversionJobInfo) {

-->    dynamicType = <unset>,

-->    key = "job-12",

-->    owner = "me(name changed)",

-->    state = "deactivated",

-->    activeTask = <unset>,

-->    creationTime = "2013-03-01T06:59:22.162599Z",

-->    lastModifiedTime = "2013-03-01T07:42:57.412599Z",

-->    mostRecentError = (converter.fault.CloneFault) {

-->       dynamicType = <unset>,

-->       faultCause = (vmodl.MethodFault) null,

-->       description = "cannot find initrd config file /mnt/p2v-src-root/etc/modules.conf in target",

-->       msg = "An error occurred during the conversion: 'cannot find initrd config file /mnt/p2v-src-root/etc/modules.conf in target'",

-->    },

-->    numConsecutiveErrors = 1,

-->    lastRunStartTime = "2013-03-01T06:59:23.287599Z",

-->    lastRunCompleteTime = "2013-03-01T07:42:57.256349Z",

-->    nextRunStartTime = <unset>,

-->    job = 'converter.server.conversion.ConversionJob:job-12',

-->    targetVm = (converter.ComputerSpec) {

-->       dynamicType = <unset>,

-->       location = (converter.ComputerSpec.ManagedVmLocation) {

-->          dynamicType = <unset>,

-->          vimConnect = (converter.VimConnectionSpec) {

-->             dynamicType = <unset>,

-->             hostname = "(host name changed)",

-->             port = <unset>,

-->             credentials = (converter.VimConnectionSpec.LoginVimCredentials) {

-->                dynamicType = <unset>,

-->                username = "root",

-->                password = (not shown),

-->             },

-->             verifyPeer = true,

-->             sslThumbprint = "3A:41:2E:D4:21:F8:F8:12:CD:B2:67:50:55:5A:40:02:B2:87:01:34",

-->          },

-->          vm = 'vim.VirtualMachine:27',

-->          uuid = "564d3835-18b2-1407-f7bf-911a99d8b50d",

-->          vmName = "VMname changed",

-->       },

-->    },

-->    scheduledTask = <unset>,

-->    source = "source machine"(machine name changed)

-->    target = "destination machine(machine name changed)

 

 

Can anyone help me on this

ConverterSSLVerificationFault with converter 5.1 even if verifyPeer == false

$
0
0

We are receiving ConverterSSLVerificationFault  when we try to re-configure a VM on a ESX host. We always use verifyPeer==false to get rid of SSL related errors and that worked fine for us with Converter 4.3.

Is it possible to disable such verification for  Converter 5.1?

 

Request:

 

<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">    <S:Body>        <ns2:ConverterServerConversionManagerCreateJob xmlns="urn:vim25" xmlns:ns2="urn:converter">            <ns2:_this type="ConverterServerConversionConversionManager">ConversionManager</ns2:_this>            <ns2:spec>                <ns2:name>foo</ns2:name>                <ns2:source>                    <ns2:location xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:ConverterComputerSpecManagedVmLocation">                        <ns2:vimConnect>                            <ns2:hostname>172.28.17.239</ns2:hostname>                            <ns2:credentials xsi:type="ns2:ConverterVimConnectionSpecLoginVimCredentials">                            </ns2:credentials>                            <ns2:verifyPeer>false</ns2:verifyPeer>                        </ns2:vimConnect>                        <ns2:uuid>ef5f86c0-ad10-41a3-aa20-2c81cedbb242</ns2:uuid>                    </ns2:location>                </ns2:source>                <ns2:conversionParams>                    <ns2:doReconfig>true</ns2:doReconfig>                    <ns2:reconfigParams/>                    <ns2:doInstallTools>true</ns2:doInstallTools>                    <ns2:doCustomize>false</ns2:doCustomize>                    <ns2:removeRestoreCheckpoints>true</ns2:removeRestoreCheckpoints>                </ns2:conversionParams>            </ns2:spec>        </ns2:ConverterServerConversionManagerCreateJob>    </S:Body></S:Envelope>

 

Response:

 

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">    <soapenv:Body>        <soapenv:Fault>            <faultcode>ServerFaultCode</faultcode>            <faultstring>A specified parameter was not correct.            </faultstring>            <detail>                <InvalidArgumentFault xmlns="urn:converter" xsi:type="vim25:InvalidArgument" xmlns:vim25="urn:vim25">                    <vim25:faultCause>                        <vim25:fault xsi:type="ConverterSSLVerificationFault">                            <selfSigned>false</selfSigned>                            <thumbprint>84:93:B6:B7:EF:D5:30:36:46:D3:70:DD:2A:DC:9C:B9:18:B3:EF:B5                            </thumbprint>                            <msg>Verification parameters:                                PeerThumbprint: 84:93:B6:B7:EF:D5:30:36:46:D3:70:DD:2A:DC:9C:B9:18:B3:EF:B5                                ExpectedThumbprint:                                ExpectedPeerName: 172.28.17.239                                The remote host certificate has these problems:                                * The host certificate chain is incomplete.                                * Host name does not match the subject name(s) in certificate.                                * unable to get local issuer certificate                            </msg>                        </vim25:fault>                        <vim25:localizedMessage>Unable to verify the authenticity of the                            SSL certificate. Peer thumbprint:                            84:93:B6:B7:EF:D5:30:36:46:D3:70:DD:2A:DC:9C:B9:18:B3:EF:B5.                        </vim25:localizedMessage>                    </vim25:faultCause>                </InvalidArgumentFault>            </detail>        </soapenv:Fault>    </soapenv:Body></soapenv:Envelope>

Trying to create a reconfig job using throws invalid argument

$
0
0

I am creating a reconfigjob for managedVM.

Here is the code snippet I am using to get the VM I want to reconfigure

 

private ConverterComputerSpec
   buildReconfigSourceVMSpec()
   {
        ConverterComputerSpecManagedVmLocation sourceVM= new ConverterComputerSpecManagedVmLocation();
        ConverterVimConnectionSpecLoginVimCredentials vimCredentials =
                                 new ConverterVimConnectionSpecLoginVimCredentials();
        vimCredentials.setPassword(_vcPassword);
        vimCredentials.setUsername(_vcUsername);
        ConverterVimConnectionSpec vimConnectionSpec = new ConverterVimConnectionSpec();
        vimConnectionSpec.setHostname(_vcServerName);
        vimConnectionSpec.setCredentials(vimCredentials);
        System.out.println("_vcServerName"+vimConnectionSpec.getHostname());
        vimConnectionSpec.setVerifyPeer(false);
        vimConnectionSpec.setSslThumbprint(null);
        sourceVM.setVimConnect(vimConnectionSpec);
      //VirtualMachine cm= new VirtualMachine();
        sourceVM.setVmName("P2V3");
        ConverterComputerSpec liveSourceSpec = new ConverterComputerSpec();
            liveSourceSpec.setLocation(sourceVM);
        return liveSourceSpec;
     
   }

 

I get the following error

 

AxisFault
faultCode: ServerFaultCode
faultSubcode:
faultString: A general system error occurred: Invalid argument
faultActor:
faultNode:
faultDetail:

Problem with duplicate volume IDs

$
0
0

I have this small block of code that goes through each disk and sets it to thin provisioned while setting up the job spec.

 

if (_vmThinProvision)
{    ConverterStorageParamsManagedTargetDiskParams targetDiskParams = new ConverterStorageParamsManagedTargetDiskParams();    converterStorageParams.targetDiskParams = new ConverterStorageParamsTargetDiskParams[_computerInfo.hardwareInfo.storage.disk.Length];    for (int diskCount = 0; diskCount < _computerInfo.hardwareInfo.storage.disk.Length; diskCount++)    {        targetDiskParams.sourceDiskId = _computerInfo.hardwareInfo.storage.disk[diskCount].diskId;        Console.WriteLine(targetDiskParams.sourceDiskId);        targetDiskParams.diskType = "vmfsMonolithicFlatThinProvisioned";        targetDiskParams.datastoreName = _vmDatastoreName;        converterStorageParams.targetDiskParams[diskCount] = targetDiskParams;     }
}

 

Lets take an example where a system has 3 disks. In the above code, if I just set up each disk manually instead of having it in a loop (same exact code, just taking the loop out and hard-coding the array index), it works fine. Each disk and volume gets its own ID and the conversion works properly.

 

For some reason when I implement the loop, it seems to pick the same disk 3 times instead of the 3 different disks and, as would be expected, confuses the heck out of the VSS service. See the log below from the source system.

 

2012-02-22T10:03:54.782-05:00 [05180 info 'task-29'] CloneTask::SetupTask
2012-02-22T10:03:54.782-05:00 [05180 info 'task-29'] CloneTask::InitializeSourceComputer
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] VolumeBasedCloneTask::CreateSubTasks: Creating SingleVolumeCloneTask subtask with used space of 122512128512 bytes and a contribution percentage of 33
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] VolumeBasedCloneTask::CreateSubTasks: Creating SingleVolumeCloneTask subtask with used space of 122512128512 bytes and a contribution percentage of 33
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] VolumeBasedCloneTask::CreateSubTasks: Creating SingleVolumeCloneTask subtask with used space of 122512128512 bytes and a contribution percentage of 33
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] SingleVolumeCloneTask: estimated time to clone volume [\WindowsBitmapDriverVolumeId=[69-A9-7F-F0-00-7E-00-00-00-00-00-00]] in seconds = 6074
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] SingleVolumeCloneTask: estimated time to clone volume [\WindowsBitmapDriverVolumeId=[69-A9-7F-F0-00-7E-00-00-00-00-00-00]] in seconds = 6074
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] SingleVolumeCloneTask: estimated time to clone volume [\WindowsBitmapDriverVolumeId=[69-A9-7F-F0-00-7E-00-00-00-00-00-00]] in seconds = 6074
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] CloneTask::InitializeTargetComputer
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] CloneTask updates, state: 1, percentage: 0, xfer rate (Bps): <unknown>
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] VolumeBasedCloneTask::StartNextTrackingBitmap: no bitmap ID specified for the next cloning iteration, will not track changes
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] VolumeBasedCloneTask::IsSnapshottingRequested: source volume snapshotting was  requested
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] VolumeBasedCloneTask::CollectVolumeIdsToSnapshot: we will try to snapshot volume \WindowsBitmapDriverVolumeId=[69-A9-7F-F0-00-7E-00-00-00-00-00-00]
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] VolumeBasedCloneTask::CollectVolumeIdsToSnapshot: we will try to snapshot volume \WindowsBitmapDriverVolumeId=[69-A9-7F-F0-00-7E-00-00-00-00-00-00]
2012-02-22T10:03:55.251-05:00 [05180 info 'task-29'] VolumeBasedCloneTask::CollectVolumeIdsToSnapshot: we will try to snapshot volume \WindowsBitmapDriverVolumeId=[69-A9-7F-F0-00-7E-00-00-00-00-00-00]
2012-02-22T10:03:56.173-05:00 [05180 error 'task-29'] Converter::AtomicVssVolumeSnapshotSet::CreateSnapshotSet: VSS snapshot failed: Unable to create a snapshot for volume \\.\Volume{db72d0dc-4b08-11de-abf5-002219c7d318}, \\.\Volume{db72d0dc-4b08-11de-abf5-002219c7d318}, \\.\Volume{db72d0dc-4b08-11de-abf5-002219c7d318}. Error code 2147754765 (0x8004230D)

 

You may noticed I put a little console.writeline in there to show me the ID. They are different at that point. Sometime between there and the job submission process the IDs get all fudged up.

 

Again, if I just take out the loop and hard-code the indexes, it works fine. Any ideas? This one has really stumped me.

 

Thanks,

Unable to SSH to the source machine

$
0
0

I'm receiving a "ssh connection was refused" error while trying to conduct a Linux P2V with the SDK.   I checked that that SSH is running on the source machine and that root is in the AllowUsers for SSHD.  I'm beginning to believe that this error may have to with something other than SSH?   Any ideas would be wonderful. 

 

Thanks!

 

C:\_cd\sdk\samples\DotNet\cs\SubmitWinP2VJob\bin\Debug>ConverterSamples.exe crai

g-vm.properties

Caught SoapException -

Actor :

Code : ServerFaultCode

Detail XML : <detail><InvalidArgumentFault xmlns="urn:converter" xsi:type="vim2

5:InvalidArgument" xmlns:vim25="urn:vim25" xmlns:xsi="http://www.w3.org/2001/XML

Schema-instance"><vim25:faultCause><vim25:fault xsi:type="ConverterSysinfoQueryC

onnRefusedFault"><description>[Converter Agent SysinfoQuery] ssh connection was

refused</description></vim25:fault><vim25:localizedMessage>Unable to SSH to the

source machine. Make sure that the SSH daemon is running on the source machine.<

/vim25:localizedMessage></vim25:faultCause></InvalidArgumentFault></detail>

ERROR: Failed to submit P2V Conversion Job.

Which version of Java could successfully run the converter SDK Java samples?

$
0
0

Hi All,

 

I have set up the VMware-converter-sdk-5.1.0-1087880  sample Java and run it based on java 1.6, and it keep throwing NoClassFound errors.

 

1. I have added javaMail.jar to fix the build.bat complains.

2. put rt.jar from JDK1.4.2 to fix the missing class error" sun.security.provider.Sun"

3. Now I hit the new error "com.sun.net.ssl.internal.ssl.Provider "

I am kind of give up for keep adding new jars, Anyone have an idea or hit the similar problem before?

If you have successfully run the Sample java, could you please let me know which version of Java you have used? Thanks very much for your help.

 

 

Java -verison: 1.6.0

Axis : 1.4

OS:   windows 2003

 

If the solution will be grab a new rt.jar, could I just copy over the rt.jar instead of upgrade the java ? My other applications somehow need the java to stay in 1.6.0.

 

Update: add C:\j2sdk1.4.2_08\jre\lib\rt.jar to local classpath, which has the sun class, but show me the new missing class: com.sun.net.ssl.internal.ssl.Provider  -_-

 

Anyone

 

Error message:

 

D:\VMware-converter-sdk-5.1.0-1087880\sdk\samples\Axis>java -cp %LOCALCLASSPATH%

SubmitWinP2VJob/Program submitwinp2vjob.properties

 

 

Exception in thread "main" java.lang.NoClassDefFoundError: sun.security.provider

.Sun

        at java.lang.J9VMInternals.verifyImpl(Native Method)

        at java.lang.J9VMInternals.verify(J9VMInternals.java:72)

        at java.lang.J9VMInternals.verify(J9VMInternals.java:70)

        at java.lang.J9VMInternals.initialize(J9VMInternals.java:134)

        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

 

 

        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstruct

orAccessorImpl.java:41)

        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingC

onstructorAccessorImpl.java:39)

        at java.lang.reflect.Constructor.newInstance(Constructor.java:515)

        at org.apache.commons.discovery.tools.ClassUtils.newInstance(ClassUtils.

java:160)

        at org.apache.axis.AxisProperties$1.run(AxisProperties.java:183)

        at java.security.AccessController.doPrivileged(AccessController.java:202

)

        at org.apache.axis.AxisProperties.newInstance(AxisProperties.java:166)

        at org.apache.axis.components.net.SocketFactoryFactory.getFactory(Socket

FactoryFactory.java:75)

        at org.apache.axis.transport.http.HTTPSender.getSocket(HTTPSender.java:1

87)

        at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.ja

va:404)

        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:138)

 

 

        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrateg

y.java:32)

        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)

        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)

        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)

        at org.apache.axis.client.Call.invokeEngine(Call.java:2784)

        at org.apache.axis.client.Call.invoke(Call.java:2767)

        at org.apache.axis.client.Call.invoke(Call.java:2443)

        at org.apache.axis.client.Call.invoke(Call.java:2366)

        at org.apache.axis.client.Call.invoke(Call.java:1812)

        at com.vmware.converter.ConverterBindingStub.converterRetrieveServiceCon

tent(ConverterBindingStub.java:32608)

        at SubmitWinP2VJob.ConverterConnection.connect(ConverterConnection.java:

70)

        at SubmitWinP2VJob.Program.run(Program.java:73)

        at SubmitWinP2VJob.Program.main(Program.java:48)

Caused by: java.lang.ClassNotFoundException: sun.security.provider.Sun

        at java.lang.Throwable.<init>(Throwable.java:80)

        at java.lang.ClassNotFoundException.<init>(ClassNotFoundException.java:7

6)

        at java.net.URLClassLoader.findClass(URLClassLoader.java:381)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:643)

        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:345)

        at java.lang.ClassLoader.loadClass(ClassLoader.java:609)

        ... 29 more

Target Disk Cloning API vs Client

$
0
0

Hello. I am working with the vCenter Converter Standalone Server API and have ran in to an odd issue when performing the cloning using the API that I can not replicate with the Client.

 

When cloning with the client I am breaking out the source physical machine's volumes to separate virtual disks: I.E. C: and D: where on one physical disk and are now being put on their own thin provisioned virtual disk.

This works no problem from the client and I get a working vm in the end.

 

When cloning with the API it appears I am performing the same exact task from what I have been able to compare. Based off SDK dotnet example I expanded the BuildCloningParams method under the Programs class with the following code using hardcoded values:

 

      List<ConverterStorageParamsVolumeCloningParams> targetvolumes1 = new List<ConverterStorageParamsVolumeCloningParams>();
      List<ConverterStorageParamsVolumeCloningParams> targetvolumes2 = new List<ConverterStorageParamsVolumeCloningParams>();
      List<ConverterStorageParamsTargetDiskParams> targetdisks = new List<ConverterStorageParamsTargetDiskParams>();

 

      ConverterStorageParamsVolumeCloningParams targetVolume1 = new ConverterStorageParamsVolumeCloningParams();
      ConverterStorageParamsTargetDiskParams targetDisk1 = new ConverterStorageParamsTargetDiskParams();

 

      ConverterStorageParamsVolumeCloningParams targetVolume2 = new ConverterStorageParamsVolumeCloningParams();
      ConverterStorageParamsTargetDiskParams targetDisk2 = new ConverterStorageParamsTargetDiskParams();

 

      targetVolume1.sourceVolumeId = "\\WindowsBitmapDriverVolumeId=[C8-BA-43-2A-00-80-00-00-00-00-00-00]";
      targetvolumes1.Add(targetVolume1);
      targetDisk1.volumesToClone = targetvolumes1.ToArray();
      targetDisk1.sourceDiskId = "disk-1002";

 

      targetVolume2.sourceVolumeId = "\\WindowsBitmapDriverVolumeId=[C8-BA-43-2A-00-80-00-00-0A-00-00-00]";
      targetvolumes2.Add(targetVolume2);
      targetDisk2.volumesToClone = targetvolumes2.ToArray();
      targetDisk2.sourceDiskId = "disk-1002";

 

      targetdisks.Add(targetDisk1);
      targetdisks.Add(targetDisk2);

 

      converterStorageParams.targetDiskParams = targetdisks.ToArray();
      converterStorageParams.vmxDatastoreName = "********-datastore01";

 

The job is successfully created and it goes through the same steps from the client Tasks view. I also check vCenter to be sure the right volumes are broken out to separate virtual disks on the target vm.

Once the progress hits 98% the Task view shows the following errors:

 

Error: An error occurred during reconfiguration.

Warning: Unable to update drive letters for the destination volume layout.

Warning: Unable to update BCD on the destination machine's system volume.

 

I have perused vmware's KB articles and the best match I have found is this:

http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1037507

 

Exporting the logs does show a match to what that article describes. However, when checking the source machine's boot config through bcedit I get the following:

 

Windows Boot Manager

--------------------

identifier              {bootmgr}

device                  partition=C:

description             Windows Boot Manager

locale                  en-US

inherit                 {globalsettings}

default                 {current}

displayorder            {current}

toolsdisplayorder       {memdiag}

timeout                 30

resume                  No

 

Windows Boot Loader

-------------------

identifier              {current}

device                  partition=C:

path                    \Windows\system32\winload.exe

description             Microsoft Windows Server 2008

locale                  en-US

inherit                 {bootloadersettings}

osdevice                partition=C:

systemroot              \Windows

resumeobject            {2a1e1d63-0b44-11dd-9c71-dce6a05ee2b0}

nx                      AlwaysOff

 

This looks correct. Also the cloning job issued by the client works just fine. It's just issuing what appears to be the same job from the API is causing a problem.

Creating VM of Physical Desktop machine through vmware Converter

$
0
0

I am trying to convert the Physical Destop machine through vmware converter 5.0 buitl -470252 but i received following error message

durring the connecting physical machine.

 

"A general system error occurred:Crypto exception: error:02001005:system library:fopen:input/output error:unable to load c:\prograpData\VMware\Vmware vCetner Converter Standalone\ssl\rul.crt"

 

Error message is also attached with this post for referance. Please help out..

ConverterSSLVerificationFault with converter 5.1 even if verifyPeer == false

$
0
0

We are receiving ConverterSSLVerificationFault  when we try to re-configure a VM on a ESX host. We always use verifyPeer==false to get rid of SSL related errors and that worked fine for us with Converter 4.3.

Is it possible to disable such verification for  Converter 5.1?

 

Request:

 

<?xml version='1.0' encoding='UTF-8'?><S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">    <S:Body>        <ns2:ConverterServerConversionManagerCreateJob xmlns="urn:vim25" xmlns:ns2="urn:converter">            <ns2:_this type="ConverterServerConversionConversionManager">ConversionManager</ns2:_this>            <ns2:spec>                <ns2:name>foo</ns2:name>                <ns2:source>                    <ns2:location xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ns2:ConverterComputerSpecManagedVmLocation">                        <ns2:vimConnect>                            <ns2:hostname>172.28.17.239</ns2:hostname>                            <ns2:credentials xsi:type="ns2:ConverterVimConnectionSpecLoginVimCredentials">                            </ns2:credentials>                            <ns2:verifyPeer>false</ns2:verifyPeer>                        </ns2:vimConnect>                        <ns2:uuid>ef5f86c0-ad10-41a3-aa20-2c81cedbb242</ns2:uuid>                    </ns2:location>                </ns2:source>                <ns2:conversionParams>                    <ns2:doReconfig>true</ns2:doReconfig>                    <ns2:reconfigParams/>                    <ns2:doInstallTools>true</ns2:doInstallTools>                    <ns2:doCustomize>false</ns2:doCustomize>                    <ns2:removeRestoreCheckpoints>true</ns2:removeRestoreCheckpoints>                </ns2:conversionParams>            </ns2:spec>        </ns2:ConverterServerConversionManagerCreateJob>    </S:Body></S:Envelope>

 

Response:

 

<?xml version="1.0" encoding="UTF-8"?><soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"    xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">    <soapenv:Body>        <soapenv:Fault>            <faultcode>ServerFaultCode</faultcode>            <faultstring>A specified parameter was not correct.            </faultstring>            <detail>                <InvalidArgumentFault xmlns="urn:converter" xsi:type="vim25:InvalidArgument" xmlns:vim25="urn:vim25">                    <vim25:faultCause>                        <vim25:fault xsi:type="ConverterSSLVerificationFault">                            <selfSigned>false</selfSigned>                            <thumbprint>84:93:B6:B7:EF:D5:30:36:46:D3:70:DD:2A:DC:9C:B9:18:B3:EF:B5                            </thumbprint>                            <msg>Verification parameters:                                PeerThumbprint: 84:93:B6:B7:EF:D5:30:36:46:D3:70:DD:2A:DC:9C:B9:18:B3:EF:B5                                ExpectedThumbprint:                                ExpectedPeerName: 172.28.17.239                                The remote host certificate has these problems:                                * The host certificate chain is incomplete.                                * Host name does not match the subject name(s) in certificate.                                * unable to get local issuer certificate                            </msg>                        </vim25:fault>                        <vim25:localizedMessage>Unable to verify the authenticity of the                            SSL certificate. Peer thumbprint:                            84:93:B6:B7:EF:D5:30:36:46:D3:70:DD:2A:DC:9C:B9:18:B3:EF:B5.                        </vim25:localizedMessage>                    </vim25:faultCause>                </InvalidArgumentFault>            </detail>        </soapenv:Fault>    </soapenv:Body></soapenv:Envelope>

Specify destination datastore

$
0
0

Can anyone tell me how to specify the destinaion datastore for a conversion task.  For now, it is choosing a (seemingly random) default datastore based on the host (also a seemingly random default selection).

 

I can't seem to find anything about a datastore in the target definition.

 

Thanks,

William

File copy to ESX/ESXi improving throughput?

$
0
0

On a 10Gbps network I can't get file transfers any better throughput than on a 1Gbps network to either ESX 4 or ESXi 5 hosts using either scp or the SDK provided fileaccess.pl perl script.  I noticed in both environments during a transfer that the limitation seems to be the processing power of a core.  On ESX core 0 went to 100% and found out through the SR that is working by design ESX uses only core 0 for system management.  On ESXi v5 it had a similar problem with using a core to 100% but simply moved the processing thread from core to core.  This is because these two methods employ encryption and the single threaded receive/decryption is limited to a single core.  FYI I had sniffed the network (no issues) and confirmed all NICs and switch settings were set to max speed and full duplex.  I'm not a networking novice.  Also, I can scp the same 12G vmdk file to a file server on the network and achieve throughput more than double to the ESX/ESXi hosts.

 

The tech support person then confirmed this is a limitation of scp/fileaccess.pl and that both methods are not supported methods to transfer files to ESX and I need to use "network file copy" to get better throughput (or go through VCenter however not all my ESX hosts are fronted by VCenter so I still need a solution for my standalone hosts).  I downloaded the Converter Standalone and it is a Windows binary.  I need to do this on Linux.  The "open source" version is simply a collection of oss libraries used.  Not a binary that can be run.  I was then told to use the Converter SDK to use "network file copy" protocol APIs.  My SR was transfered to the SDK group and they said this is the only forum for support.  Seems bizarre this is the only forum to get support for an SDK (the VCenter SDK has support).

 

Therefore, how do I utilize "network file copy" protocol through the Converter SDK APIs?  In reading the Converter SDK documentation I came across this page which is the same API fileaccess.pl uses.

http://www.vmware.com/support/developer/converter-sdk/conv50_apireference/vim.FileManager.html

Therefore I assume this is not using the "network file copy" protocol because it doesn't perform any better than an scp file transfer.

 

In addition, I found an Intel/VMware white paper that documents problems with secure file transfer to ESX and how they resolved it.  The problem is that this solution reqiures maintaining a VM image on the ESX host to do the file transfer which is not desireable or easily maintainable.


http://download.intel.com/support/network/sb/fedexcasestudyfinal.pdf

 

Any other thoughts on how to get better throughput on a 10Gbps network secure file transfer other than the "network file copy" protocol?

 

I've searched these forums and not found an answer.

Error: Failed to Connect to Converter Server

$
0
0

I'm trying to do a basic P2V conversion with the Converter SDK for .Net; however I keep receiving Failed to Connect to Converter Server.  I'm running the SDK on the Converter Server.  Any help would greatly be appreciated.

 

my properties file is pretty basic:

 

physicalsource.address=192.168.1.32
physicalsource.username=192.168.1.32\rootcd
physicalsource.password=**********
physicalsource.ostype=linux
physicalsource.agentport=9089
physicalsource.reboot=false
vcserver.address=192.168.80.2
vcserver.username=192.168.80.2\administrator
vcserver.password=**********
conversion.job.name=P2VConversionJob1
conversion.job.description=MyNewVMTest
conversion.vmtocreate.name=MyNewVM
conversion.vmtocreate.vcpu=1
conversion.vmtocreate.memory=4096
converterserver.address=192.168.80.5
converterserver.username=192.168.80.5\administrator
converterserver.password=**********

 

Below is the results.  And I'm not sure what else I need included.  I disabled all server firewalls for now as well to ensure they weren't getting in the way.

 

C:\_cd\sdk\samples\DotNet\cs\SubmitWinP2VJob\bin\Debug>ConverterSamples.exe cd.p
roperties
Caught Exception :  Name : WebException Message : Unable to connect to the remot
e server Trace :    at System.Net.HttpWebRequest.GetRequestStream(TransportConte
xt& context)   at System.Net.HttpWebRequest.GetRequestStream()   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodN
ame, Object[] parameters)   at ConverterApi.ConverterService.ConverterRetrieveServiceContent(ManagedObjec
tReference _this)   at ConverterSamples.ConverterConnection.Connect(String serverUrl, String user
name, String password) in c:\_cd\sdk\samples\DotNet\cs\SubmitWinP2VJob\Converter
Connection.cs:line 51
ERROR: Failed to Connect to Converter Server.
C:\_cd\sdk\samples\DotNet\cs\SubmitWinP2VJob\bin\Debug>

Unable to SSH to the source machine

$
0
0

I'm receiving a "ssh connection was refused" error while trying to conduct a Linux P2V with the SDK.   I checked that that SSH is running on the source machine and that root is in the AllowUsers for SSHD.  I'm beginning to believe that this error may have to with something other than SSH?   Any ideas would be wonderful. 

 

Thanks!

 

C:\_cd\sdk\samples\DotNet\cs\SubmitWinP2VJob\bin\Debug>ConverterSamples.exe crai

g-vm.properties

Caught SoapException -

Actor :

Code : ServerFaultCode

Detail XML : <detail><InvalidArgumentFault xmlns="urn:converter" xsi:type="vim2

5:InvalidArgument" xmlns:vim25="urn:vim25" xmlns:xsi="http://www.w3.org/2001/XML

Schema-instance"><vim25:faultCause><vim25:fault xsi:type="ConverterSysinfoQueryC

onnRefusedFault"><description>[Converter Agent SysinfoQuery] ssh connection was

refused</description></vim25:fault><vim25:localizedMessage>Unable to SSH to the

source machine. Make sure that the SSH daemon is running on the source machine.<

/vim25:localizedMessage></vim25:faultCause></InvalidArgumentFault></detail>

ERROR: Failed to submit P2V Conversion Job.

Sample in sdk fails to connect to VCenter

$
0
0

Hi,

 

I tried to run the C# sample that comes with the Vmware vcenter converter SDK. But i ended up with the following error,

 

D:\GitHub\Upload\Upload>ConverterSamples.exe submitwinp2vjob.properties

Caught Exception :  Name : WebException Message : The request failed with HTTP s

tatus 400: Bad Request. Trace :    at System.Web.Services.Protocols.SoapHttpClie

ntProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream

responseStream, Boolean asyncCall)

   at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodN

ame, Object[] parameters)

   at ConverterApi.ConverterService.ConverterRetrieveServiceContent(ManagedObjec

tReference _this)

   at ConverterSamples.ConverterConnection.Connect(String serverUrl, String user

name, String password)

ERROR: Failed to Connect to Converter Server.

 

Server URL and username and password are passed correctly. Please help me on this.

 

Thanks a lot

Viewing all 6223 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>